2024-12-25 03:04:59 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
use yii\helpers\Html;
|
|
|
|
|
use yii\widgets\DetailView;
|
|
|
|
|
|
|
|
|
|
/* @var $this yii\web\View */
|
|
|
|
|
/* @var $model common\models\CasePap */
|
|
|
|
|
|
2026-02-16 07:32:27 +00:00
|
|
|
$this->title = $model->id_case;
|
2024-12-25 03:04:59 +00:00
|
|
|
$this->params['breadcrumbs'][] = ['label' => 'Case Paps', 'url' => ['index']];
|
|
|
|
|
$this->params['breadcrumbs'][] = $this->title;
|
|
|
|
|
\yii\web\YiiAsset::register($this);
|
|
|
|
|
?>
|
2026-02-16 07:32:27 +00:00
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-header d-flex align-items-center justify-content-between">
|
|
|
|
|
<h5 class="card-title"><i class="ri-file-text-line"></i> <?= Html::encode($this->title) ?></h5>
|
|
|
|
|
<div class="d-flex gap-2 justify-content-end mt-4">
|
|
|
|
|
<?= Html::a('<i class="ri-edit-box-line"></i> แก้ไขสถานะ', ['update', 'id' => $model->id], ['class' => 'btn btn-warning']) ?>
|
|
|
|
|
<?= Html::a('<i class="ri-arrow-left-box-line"></i> กลับหน้าหลัก', ['index', 'id' => $model->id], ['class' => 'btn btn-info']) ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
<?= DetailView::widget([
|
|
|
|
|
'model' => $model,
|
|
|
|
|
'attributes' => [
|
|
|
|
|
'id_case',
|
|
|
|
|
[
|
|
|
|
|
'attribute' => 'status',
|
|
|
|
|
'format' => 'raw',
|
|
|
|
|
'value' => function ($model) {
|
|
|
|
|
return Yii::$app->pathology->getStatus($model->status_id);
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-12-25 03:04:59 +00:00
|
|
|
],
|
|
|
|
|
]) ?>
|
2026-02-16 07:32:27 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|