<?php

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

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

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

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

    <p>
        <?= Html::a('Create Frapl012b', ['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_2B_UUID',
            'FRAPL01_2B_KODE',
            'FRAPL01_2B_JUDUL',
            'FRAPL01_2B_SKK',
            //'CREATED',
            //'USERNAME',
            [
                'class' => ActionColumn::className(),
                'urlCreator' => function ($action, Frapl012b $model, $key, $index, $column) {
                    return Url::toRoute([$action, 'FRAPL01_2B_UUID' => $model->FRAPL01_2B_UUID]);
                 }
            ],
        ],
    ]); ?>


</div>
