<?php

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

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

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

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

    <p>
        <?= Html::a('Create Frapl013a', ['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_3A_UUID',
            'FRAPL01_3A_FILE',
            'FRAPL01_3A_BUKTI',
            'FRAPL01_3A_SYARAT',
            //'CREATED',
            //'USERNAME',
            [
                'class' => ActionColumn::className(),
                'urlCreator' => function ($action, Frapl013a $model, $key, $index, $column) {
                    return Url::toRoute([$action, 'FRAPL01_3A_UUID' => $model->FRAPL01_3A_UUID]);
                 }
            ],
        ],
    ]); ?>


</div>
