$model, 'condensed' => true, 'hover' => true, 'mode' => DetailView::MODE_VIEW, 'panel' => [ 'heading' => $this->title, 'type' => DetailView::TYPE_SUCCESS, ], 'enableEditMode' => false, 'attributes' => [ [ 'columns' => [ [ 'attribute' => 'operate_id', 'label' => 'ผู้รับงาน', 'format' => 'raw', 'value' => $model->operate_id > 1 ? $model['operate']['realname'].'
'.$model['in_at'] : '', 'valueColOptions' => ['style' => 'width:30%'] ], [ 'attribute' => 'send_id', 'label' => 'ผู้ส่งงาน', 'format' => 'raw', 'value' => $model->operate_id > 1 ? $model['send']['realname'].'
'.$model['send_at'] : '', 'valueColOptions' => ['style' => 'width:30%'] ] ], ], [ 'columns' => [ [ 'attribute' => 'id_case', 'label' => 'Case ID', 'valueColOptions' => ['style' => 'width:30%'] ], [ 'format' => 'raw', 'label' => 'พยาธิแพทย์', 'value' => isset($model->patientCase) ? $model->patientCase->pathologist : null, 'valueColOptions' => ['style' => 'width:30%'] ] ] ], [ 'columns' => [ [ //'attribute' => 'patientCase.pathologist', 'format' => 'raw', 'label' => 'โรงพยาบาล', 'value' => isset($model->patientCase) ? $model->patientCase->hospital : null, 'valueColOptions' => ['style' => 'width:30%'] ], [ 'label' => 'ประเภท', 'value' => Yii::$app->iop->getPrivateText($model['patientCase']['hospitals']['is_private']), 'valueColOptions' => ['style' => 'width:30%'] ], ] ], [ 'columns' => [ [ //'attribute' => 'patientCase.pathologist', 'format' => 'raw', 'label' => 'ชื่อ', 'value' => isset($model->patientCase) ? $model->patientCase->name : null, 'valueColOptions' => ['style' => 'width:30%'] ], [ 'label' => 'อายุ', 'value' => (isset($model->patientCase) ? $model->patientCase->age : 0) > 0 ? intval(isset($model->patientCase) ? $model->patientCase->age : 0).' '.(isset($model->patientCase) ? $model->patientCase->age_unit : null) : '', 'valueColOptions' => ['style' => 'width:30%'] ], ] ], ] ])?>

Fish Staining

$fish, 'summary' => false, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], 'block_no', 'financeServiceCharge.charge.name', 'note', 'financeServiceCharge.charge.code', 'financeServiceCharge.price', [ 'attribute' => 'is_able', 'value' => function($model){ return $model->is_able == 1 ? 'Dis.' : null; } ], 'disable_comment', 'in_at', 'receive_at', 'send_at' ] ])?>
receive_at){?>