@extends('layouts.app') @section('title', 'EndoCapture') @section('content')

Capture

@php $patient = DB::table('tb_case') ->join('patient','patient.hn','=','tb_case.case_hn') ->where('case_id','=',$id) ->first(); @endphp
@php $nurse = DB::table('users')->where('user_type', '=', 'nurse')->get(); $register = DB::table('users')->where('user_type', '=', 'register')->get(); $room = DB::table('tb_room')->get(); $anes = DB::table('users')->where('user_type', '=', 'anesthesia')->get(); $casedata = DB::table('tb_case')->where('case_id', '=', $id)->first(); @endphp

@csrf

{!! Form::select('case_room',array(''=>'เลือกห้อง')+array_pluck($room,'name','id'),@$casedata->case_room,['class'=>'form-control','id'=>'']) !!}

{!! Form::select('case_nurse01',array(''=>'เลือกพยาบาล')+array_pluck($nurse,'name','id'),@$casedata->case_nurse01,['class'=>'form-control','id'=>'']) !!}

{!! Form::select('case_nurse02',array(''=>'เลือกพยาบาล')+array_pluck($nurse,'name','id'),@$casedata->case_nurse02,['class'=>'form-control','id'=>'']) !!}

{!! Form::select('case_nurse03',array(''=>'เลือกผู้ช่วยพยาบาล')+array_pluck($register,'name','id'),@$casedata->case_nurse03,['class'=>'form-control','id'=>'']) !!}

{!! Form::select('case_nurse04',array(''=>'เลือกผู้ช่วยพยาบาล')+array_pluck($register,'name','id'),@$casedata->case_nurse04,['class'=>'form-control','id'=>'']) !!}
{{ Form::close()}}
@endsection