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

{{ __('patients.search_results') }}

@include('flash::message') @include ('errors.list')

{{ __('patients.search_results') }}

@if(isset($criteria) && isset($patient_count))

{{ __('patients.search_criteria') }} : {{ $criteria }}    {{ __('patients.total_results') }} : {{ count($patients) }}    {{ __('patients.clear_search') }}

@if(count($patients ) > 0) @foreach($patients as $patient) @endforeach @else @endif
{{ __('patients.patient_number') }} {{ __('patients.full_names') }} {{ __('patients.gender') }} {{ __('patients.age') }} {{ __('patients.next_of_kin') }} {{ __('patients.marital_status') }} {{ __('patients.phone') }} {{ __('patients.occupation') }} {{ __('patients.category') }}
{{ $patient->number }} {{ $patient->first_name." ".$patient->last_name }} {{ $patient->gender == 2 ? "Female" : "Male" }} {{ get_patients_age($patient->date_of_birth) }} {{ $patient->next_of_kin }} {{ array_key_exists($patient->marital_status, $marital_statuses) ? $marital_statuses[$patient->marital_status] : "N/A" }} {{ $patient->phone }} {{ array_key_exists($patient->occupation_id, $occupations) ? $occupations[$patient->occupation_id] : "N/A" }} {{ array_key_exists($patient->category_id, $categories) ? $categories[$patient->category_id] : "N/A" }} {{ __('patients.select') }} @if(is_fingerprint_enabled() && !is_null($patient->fingerprint_template))

{{ __('patients.confirm_fingerprint') }} @endif
{{ __('patients.no_records_found') }}
@endif
@endsection @push('scripts') @endpush @push('styles') @endpush