surat/frontend/modules/register/views/case/_patient_detail.php

26 lines
458 B
PHP
Raw Normal View History

2025-04-01 08:05:43 +00:00
<?php
use yii\widgets\DetailView;
use yii\helpers\Html;
echo DetailView::widget([
'model' => $model,
'attributes' => [
2025-04-02 10:06:28 +00:00
'hn',
'title',
'first_name',
'last_name',
'sex',
2025-04-01 08:05:43 +00:00
'race',
2025-04-02 10:06:28 +00:00
'nation',
'card_id',
2025-04-01 08:05:43 +00:00
'birthdate',
2025-04-02 10:07:17 +00:00
//'age',
2025-04-01 08:05:43 +00:00
],
2025-04-02 10:06:28 +00:00
])?>
2025-04-01 08:05:43 +00:00
2025-04-02 10:06:28 +00:00
<?= Html::button('เลือกผู้ป่วย', [
'class' => 'btn btn-success select-patient-btn',
'data-json' => json_encode($model, JSON_UNESCAPED_UNICODE),
2025-04-02 10:07:17 +00:00
]) ?>