@php function check_null($val) { if ($val == null || $val == '') { echo 'ไม่มีข้อมูล'; } else { echo $val; } } function placeholder($data) { if (!isset($data) || @$data == '') { echo "placeholder='ไม่มีข้อมูล'"; } } @endphp
{!! editcard('patient_detail', 'patient_detail.blade.php') !!}
@if (Auth::user()->user_type == 'admin') @endif
@php if (isset($case->patient_json)) { $pt_json = json_decode($case->patient_json); } else { $pt_json = null; } @endphp @if ($case->case_hn != 'VIP')
@if ($case->pic == '') @else pic?a=") }}{{ date('Y-m-dH:i:s') }}" width="100px" /> @endif

HN : {{ $case->hn }}


AN : {{ check_null($case->an) }}

@else
@if ($case->pic == '') @else pic?a=") }}{{ date('Y-m-dH:i:s') }}" width="100px" /> @endif

AN :

@endif
CASE ID :
Procedure :
Room :
{{ select_users($room, @$json->room, 'room_name', ['room_name'], 'room', 'เลือกห้อง', 'editroom form-control form-control-sm savejson ') }}
Appointment :
Ward :
ward) }}>
OPD :
opd) }}>
Refer :
refer) }}>
Treatment Coverage (สิทธิการรักษา) :
{!! Form::select( 'righttotreatment', ['' => 'ไม่มีข้อมูล'] + array_pluck(@$righttotreatment, 'name', 'name'), @$json->righttotreatment, ['class' => 'form-control form-control-sm savejson', 'id' => 'righttotreatment'], ) !!}
@php $status="Registered"; if ($case->case_status == 0) { $status="Registered"; $class="label label-warning label-pill label-inline"; } if ($case->case_status == 1) { $status="Operation"; $class="label label-info label-pill label-inline"; } if ($case->case_status == 2) { $status="Finished"; $class="label label-success label-pill label-inline"; } @endphp