@extends('layouts.app') @section('bread-crumb')

REF # {{$referral->referral_no}}

@endsection @section('content')

Created by: {{ucfirst(Auth::user()->fname)}} {{ucfirst(Auth::user()->lname)}}

@method('PUT') @csrf

REF # {{$referral->referral_no}}

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if (session()->has('referral.update')) @if (session()->get('referral.update'))
Success!
REF # {{$referral->referral_no}} successfully sent to selected hospital!
@endif @endif @if ($referral->ref_to_hospital == null)
@error('ref_from_hospital') {{ $message }} @enderror
@else
@foreach ($hospitals as $item) @if ($item->id == $referral->ref_to_hospital) @endif @endforeach
@endif
@foreach ($hospitals as $item) @if ($item->id == $referral->ref_from_hospital) @endif @endforeach
state == 'pwd') checked @endif>
state == 'sc') checked @endif>
state == 'ic') checked @endif>
reason == 'Further evaluation and management') checked @endif>
reason == 'For Work-up') checked @endif>
reason == 'For Medico-legal') checked @endif>
reason == 'Isolation') checked @endif>
reason == "Patient's Request") checked @endif>
reason == 'OPD Consult') checked @endif>
{{--
--}} @error('reason') {{ $message }} @enderror
@if (Auth::user()->role == 1)
{{$station->station}} - {{$room->room}} - {{$bed->bed}} View Bed
@endif
@endsection @section('script') @endsection