{extends file=$smarty.current_dir|cat:'/../extends.tpl'} {use class="yii\helpers\Url"} {use class="yii\grid\GridView"} {use class="yii\widgets\Pjax" type="block"} {use class="app\assets\LogsAsset"} {LogsAsset::register($this)|void} {block name='content'}
{Pjax id="staff-list"} {GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'layout'=> \app\helpers\CommonGrid::getLayout(), 'tableOptions' => [ 'class' => 'table table-striped table-bordered table-hover', 'style' => 'background:#fff;min-width:700px;' ], 'columns' => [ [ 'class' => 'yii\grid\SerialColumn', 'contentOptions' => ['class' => 'text-center'], 'headerOptions' => ['class' => 'text-center', 'style' => 'width:3%'] ], 'code', 'name', [ 'attribute' => 'department_id', 'filter' => $departmentArray, 'value' => \app\helpers\StaffGrid::department($departmentArray) ], [ 'attribute' => 'time_in', 'value' => \app\helpers\StaffGrid::timeIn($staffLogs) ], [ 'attribute' => 'time_out', 'value' => \app\helpers\StaffGrid::timeOut($staffLogs) ], [ 'attribute' => 'man_hour', 'contentOptions' => ['class' => 'text-center'], 'value' => \app\helpers\StaffGrid::manHour($staffLogs) ], [ 'attribute' => 'man_day', 'contentOptions' => ['class' => 'text-center'], 'value' => \app\helpers\StaffGrid::manDay($staffLogs) ] ] ])} {/Pjax}
{/block}