<?php

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

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

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

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

    <p>
        <?= Html::a('Create Frapl01', ['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',
            'FRAPL01_UUID',
            'FRAPL01_LSP_REKOMENDASI',
            'FRAPL01_LSP_CATATAN',
            'FRAPL01_LSP_USERNAME',
            //'FRAPL01_LSP_TGL',
            //'FRAPL01_LSP_TTD',
            //'FRAPL01_USER_USERNAME',
            //'FRAPL01_USER_TGL',
            //'FRAPL01_USER_TTD',
            [
                'class' => ActionColumn::className(),
                'urlCreator' => function ($action, Frapl01 $model, $key, $index, $column) {
                    return Url::toRoute([$action, 'FRAPL01_UUID' => $model->FRAPL01_UUID]);
                 }
            ],
        ],
    ]); ?>


</div>
