<?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel app\models\HasilVotingSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = 'Hasil Votings';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="hasil-voting-index">

    <h1><?= Html::encode($this->title) ?></h1>

    <p>
        <?= Html::a('Create Hasil Voting', ['create'], ['class' => 'btn btn-success']) ?>
    </p>

    <?php // echo $this->render('_search', ['model' => $searchModel]); ?>

    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            'id_voting',
            'id_user',
            'pilihan',
            'status_voting',
            'created_at',
            //'created_by',
            //'updated_at',
            //'updated_by',
            //'active',

            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>


</div>
