<?php

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

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

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

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

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

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

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

            'FRAPL01_UUID',
            'FRAPL01_2A_UUID',
            'FRAPL01_2A_SKEMA_JENIS',
            'FRAPL01_2A_SKEMA_NAMA',
            'FRAPL01_2A_SKEMA_NOMOR',
            //'FRAPL01_2A_SERTIFIKASI',
            //'FRAPL01_2A_PKT',
            //'FRAPL01_2A_RPL',
            //'FRAPL01_2A_LAINNYA',
            //'CREATED',
            //'USERNAME',
            [
                'class' => ActionColumn::className(),
                'urlCreator' => function ($action, Frapl012a $model, $key, $index, $column) {
                    return Url::toRoute([$action, 'FRAPL01_2A_UUID' => $model->FRAPL01_2A_UUID]);
                 }
            ],
        ],
    ]); ?>


</div>
