<?php

use backend\models\Frapl02;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\grid\ActionColumn;
use yii\grid\GridView;

/** @var yii\web\View $this */
/** @var backend\models\Frapl02Search $searchModel */
/** @var yii\data\ActiveDataProvider $dataProvider */

$this->title = 'Frapl02s';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="frapl02-index">

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

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

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

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

            'ASESMEN_UUID',
            'FRAPL02_UUID',
            'FRAPL02_LSP_REKOMENDASI',
            'FRAPL02_LSP_USERNAME',
            'FRAPL02_NOREG',
            //'FRAPL02_LSP_TGL',
            //'FRAPL02_LSP_TTD',
            //'FRAPL02_USER_USERNAME',
            //'FRAPL02_USER_TGL',
            //'FRAPL02_USER_TTD',
            [
                'class' => ActionColumn::className(),
                'urlCreator' => function ($action, Frapl02 $model, $key, $index, $column) {
                    return Url::toRoute([$action, 'FRAPL02_UUID' => $model->FRAPL02_UUID]);
                 }
            ],
        ],
    ]); ?>


</div>
