@extends('layouts.main') @push('styles') @endpush @section('content')

{{ __('wards.select_ward') }}

@include('flash::message') @include ('errors.list')
{{ Form::open(['route' => 'wards.select', 'class' => 'typeahead', 'method' => 'ANY', 'role' => 'search']) }} {{ Form::hidden('patient_id', 0, ['id' => 'patient_id']) }}
{{ Form::label('ward_id', __('wards.wards')) }} {{ Form::select('ward_id', $wards, '', ['class' => 'form-control compulsory', 'required']) }}
{{ Form::label('search_by', __('wards.date')) }} {{ Form::select('search_by', ['' => '--select--', 0 => 'All Records', 1 => __('wards.today'), 2 => __('wards.yesterday'), 3 => __('wards.custom_date'), 4 => __('wards.custom_range')], '', ['class' => 'form-control','id'=>'search_by', 'required']) }}
{{ Form::label('search_patient', __('investigations.search_by_patient')) }}

{{ Form::button(__('wards.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10', 'id'=>'select_patient']) }}

{{ $search_text }}

{{ Form::close() }}
{{ Form::open(['route' => 'wards.route_patient_episode']) }}
@foreach($inpatients as $inpatient) @if(\Streamline\Models\PatientEpisode::find($inpatient->episode_id)) @endif @endforeach
{{ __('wards.bed') }} {{ __('wards.bed') }} {{ __('wards.bed_category') }} {{ __('wards.admission') }} {{ __('wards.names') }} {{ __('wards.sex') }} {{ __('wards.age') }} {{ __('wards.triage') }} {{ __('wards.primary_diagnosis') }} {{ __('wards.comments') }} {{ __('wards.comments') }}  

{{ $inpatient->bed_no }}

{{ $inpatient->bed_no }}

{{ $inpatient->bed_category }}

admitted_on); echo streamline_date($inpatient->admitted_on) . '
'; echo "" . $admitted_on->diffInDays(Carbon\Carbon::now()) . ' days'; ?>
patient_id) . '
'; echo "" . $inpatient->number . ''; ?>
{{ $inpatient->gender == 1 ? __('wards.male') : __('wards.female') }} {{ get_patients_age($inpatient->date_of_birth) }} @php $severe_grade = !empty($inpatient->severe_grade)? severe_grade($inpatient->severe_grade):'N/A'; echo $severe_grade; @endphp {{ $inpatient->primary_diagnosis_name ?? 'N/A' }}

{{ $inpatient->comments }}

{{ $inpatient->comments }}

@if($inpatient->slug == "maternity") @else @endif
@endsection @push('scripts') @endpush