{extends file=$smarty.current_dir|cat:'/../extends.tpl'} {use class="yii\helpers\Url"} {use class="yii\grid\GridView"} {use class="app\assets\LogsAsset"} {LogsAsset::register($this)|void} {block name='content'}
Từ
Đến
Xe khác

{GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'layout'=> \app\helpers\LogsGrid::getLayout(), 'tableOptions' => [ 'class' => 'table table-striped table-bordered', 'style' => 'background:#fff;min-width:700px;' ], 'columns' => [ ['class' => 'yii\grid\SerialColumn'], [ 'attribute' => 'type', 'value' => 'vehicle.type' ], [ 'attribute' => 'company', 'value' => 'vehicle.company' ], [ 'attribute' => 'driver', 'format' => 'raw', 'value' => \app\helpers\LogsGrid::driver() ], [ 'attribute' => 'telephone', 'format' => 'raw', 'value' => \app\helpers\LogsGrid::telephone() ], [ 'attribute' => 'cmt', 'format' => 'raw', 'value' => \app\helpers\LogsGrid::cmt() ], [ 'attribute' => 'factory', 'format' => 'raw', 'value' => \app\helpers\LogsGrid::factory() ], [ 'attribute' => 'seal_no', 'format' => 'raw', 'value' => \app\helpers\LogsGrid::sealNo() ], [ 'attribute' => 'plate', 'value' => 'vehicle.plate' ], [ 'attribute' => "plate_image_in", 'format' => 'raw', 'contentOptions' => ['class' => 'text-center'], 'value' => \app\helpers\LogsGrid::plateIn() ], [ 'attribute' => "time_in", 'format' => 'raw', 'contentOptions' => ['class' => 'text-center'], 'headerOptions' => ['style' => 'width:5%'], 'value' => \app\helpers\LogsGrid::timeIn() ], [ 'attribute' => "plate_image_out", 'format' => 'raw', 'contentOptions' => ['class' => 'text-center'], 'value' => \app\helpers\LogsGrid::plateOut() ], [ 'attribute' => "time_out", 'format' => 'raw', 'contentOptions' => ['class' => 'text-center'], 'headerOptions' => ['style' => 'width:5%'], 'value' => \app\helpers\LogsGrid::timeOut() ], [ 'attribute' => 'note', 'format' => 'raw', 'value' => \app\helpers\LogsGrid::note() ] ] ])} {/block}