@php $rightto = DB::table('patient') //->leftjoin('dd_righttotreatment','dd_righttotreatment.id','patient.righttotreatment') ->where('patient.hn',$casedata->case_hn)->first(); $ward = "-"; $refer= "-"; if($rightto->patient_json!=''){ $json_pt = jsonDecode($rightto->patient_json); }else{ $json_pt = null; } if(isset($this_json->ward)){ if($this_json->ward != ''){ $ward = $this_json->ward; } } if(isset($this_json->refer)){ if($this_json->refer != ''){ $refer = $this_json->refer; } } @endphp {{-- @dd('','','','','','','','','','','','','','','','','','','',$json); --}}
{{$hospital->hospital_name}}
{{$hospital->hospital_address}}
HN {{ $casedata->hn }} AN {{ $casedata->an }}
ชื่อ {{$casedata->prefix.$casedata->firstname." ".@$casedata->middlename." ".$casedata->lastname}}
อายุ {{age($casedata->birthdate)}} วันเกิด {{swapDATE($casedata->birthdate)}}
หน่วยส่องกล้องทางเดินอาหาร วันที่เข้ารับบริการ {{swapDATE($casedata->case_dateappointment)}}
Digestive Endoscopy Department Allergy {{@$json_pt->allergic}}
Digestive Endoscopy Report ({{$casedata->procedure_name}}) RIGHT TO TREATMENT (สิทธิการรักษา) {{@$json->righttotreatment}}