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

REF # {{$referral->referral_no}}

@endsection @section('content')
PRINT
@if ($referral->ref_status == 1 && Auth::user()->role != 1)
@method('PUT') @csrf @endif

REF # {{$referral->referral_no}}

@if ($referral->ref_status == 1) ON-PROCESS @elseif ($referral->ref_status == 2) INCOMING @elseif ($referral->ref_status == 3) ADMITTED @elseif ($referral->ref_status == 4) RELEASED @endif

@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 (session()->has('referral.store')) @if (session()->get('referral.store'))
Success!
New referral successfully added!
@endif @endif
@if ($referral->is_internal) @else @if ($referral->ref_from_hospital != null ) @foreach ($hospitals as $item) @if ($item->id == $referral->ref_from_hospital) @endif @endforeach @else @foreach ($drrmos as $item) @if ($item->id == $referral->ref_from_drrmo) @endif @endforeach @endif @endif
@if ($referral->ref_to_hospital != null)
@foreach ($hospitals as $item) @if ($item->id == $referral->ref_to_hospital) @endif @endforeach
@if ($referral->ref_status != 4 && $referral->ref_status != 1)
@isset($dept_bed) @if (Auth::user()->role == 2 || Auth::user()->role == 3 || $referral->ref_to_hospital == Auth::user()->hospital_id) View Hospital @endif @else @if (Auth::user()->role == 2 || Auth::user()->role == 3 || $referral->ref_to_hospital == Auth::user()->hospital_id) View Hospital @endif @endisset
@endif @endif
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>
referral_type === 'Pedia') checked @endif>
referral_type === 'Medicine') checked @endif>
referral_type === 'OB Gyne') checked @endif>
referral_type === 'Surgery') checked @endif>
referral_type === 'COVID 19') checked @endif>

rat === 1) checked @endif>
rat === 0) checked @endif>
rat === null) checked @endif>

rtpcr === 1) checked @endif>
rtpcr === 0) checked @endif>
rtpcr === null) checked @endif>

vaccine_1st_dose == true) checked @endif>
vaccine_2nd_dose == true) checked @endif>
@if ($referral->ref_status == 1 && Auth::user()->role == 2)
@if (session()->has('transfer')) @if (session()->get('transfer'))
Transfer to different hospital.
{{session()->get('transfer')}}
@endif @endif @error('ref_from_hospital') {{ $message }} @enderror
@endif @if ($referral->remarks != null)
@endif
@if ($referral->ref_status == 1 && Auth::user()->role != 1) @endif @if ($referral->ref_status == 1 || $referral->ref_status == 2) @endif @if (Auth::user()->role == 2 && $referral->ref_status == 2) @endif
{{count($referral->comments)}} comments
@endsection @if ($referral->ref_to_hospital == null && Auth::user()->role != 1) @section('script') @endsection @endif