@extends('layouts.layout_nurse') @section('style') {{-- --}} {{-- --}} @endsection @section('content')
@foreach ($room_all as $room)
{{$room->room_name}}
H.N.
Name
Procedure
 
@php $job = DB::table('tb_casemonitor') ->wherein('monitor_procedure',$procedure_in) ->where('monitor_room',$room->room_id) ->where('monitor_status','!=','Booking') ->where('monitor_status','!=','Register') ->where('monitor_status','!=','Recovery') ->where('monitor_status','!=','Success') ->where('monitor_status','!=','Cancel') ->get(); unset($arr); $arr = array(); foreach($job as $book){ $arr[$book->monitor_hn]['hn'] = $book->monitor_hn; $arr[$book->monitor_hn]['caseuniq'] = $book->caseuniq; $arr[$book->monitor_hn]['timevisit'] = $book->monitor_timevisit; $arr[$book->monitor_hn]['room'] = $book->monitor_room; $arr[$book->monitor_hn]['location'] = $book->monitor_location; $arr[$book->monitor_hn]['procedure'][] = $book->monitor_procedure; $arr[$book->monitor_hn]['patientname'] = $book->monitor_patientname; $arr[$book->monitor_hn]['doctorname'] = $book->monitor_doctorname; if($book->monitor_status=="Waiting") {$arr[$book->monitor_hn]['color'][]= "warning";} if($book->monitor_status=="Operation") {$arr[$book->monitor_hn]['color'][]= "info";} if($book->monitor_status=="Reporting") {$arr[$book->monitor_hn]['color'][]= "success";} } @endphp @forelse ($arr as $a)
{{$a['hn']}}
{{$a['patientname']}}
@foreach($a['procedure'] as $key=>$value) {{$value}} @endforeach
{{--
--}}
@empty
No Operation !!
@endforelse


 
@php $job = DB::table('tb_casemonitor') ->wherein('monitor_procedure',$procedure_in) ->where('monitor_room',$room->room_id) ->where('monitor_status','!=','Success') ->where('monitor_status','!=','Cancel') ->where('monitor_status','!=','Operation') ->where('monitor_status','!=','Reporting') ->orderby('monitor_status','desc') ->orderby('monitor_order') ->get(); unset($arr); $arr = array(); foreach($job as $book){ $arr[$book->monitor_hn]['hn'] = $book->monitor_hn; $arr[$book->monitor_hn]['caseuniq'] = $book->caseuniq; $arr[$book->monitor_hn]['timevisit'] = $book->monitor_timevisit; $arr[$book->monitor_hn]['room'] = $book->monitor_room; $arr[$book->monitor_hn]['location'] = $book->monitor_location; $arr[$book->monitor_hn]['procedure'][] = $book->monitor_procedure; $arr[$book->monitor_hn]['patientname'] = $book->monitor_patientname; $arr[$book->monitor_hn]['prediagnostic']= $book->monitor_prediagnostic; $arr[$book->monitor_hn]['doctorname'] = $book->monitor_doctorname; $arr[$book->monitor_hn]['remark'] = $book->monitor_remark; } $ii=1; @endphp @foreach ($arr as $a)
@if($a['timevisit']==0) Check in @else {{$a['timevisit']}} @endif
{{$a['hn']}}
{{$a['patientname']}}
@foreach($a['procedure'] as $key=>$value) {{$value}} @endforeach
 
{{$a['doctorname']}}
{{$a['location']}}
@if($a['prediagnostic']!="") {{$a['prediagnostic']}} @if($a['remark']!="")
@endif @endif {{$a['remark']}}
@endforeach
@endforeach

Remaining

{{$count_operation}}/{{$count_all}}

{{$date}}    00:00:00

{{$full_date}}

No Room

H.N.
Name
Location
 
@foreach ($list_room_unselect as $job) {{-- @dd($job) --}}
@if($job['timevisit']=="0") Check @else {{$job['timevisit']}} @endif
{{$job['hn']}}
{{$job['patientname']}}
@foreach($job['procedure'] as $key=>$value) {{$value}} @endforeach
{{$job['location']}}
{{$job['remark']}}
 
{{$job['doctorname']}}
@endforeach
@endsection @section('script') @endsection