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

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

@include('flash::message') {{ Form::open(['route' => 'patients.search', 'method' => 'ANY', 'role' => 'search']) }}
{{ Form::text('number', '', ['class' => 'form-control typeahead', 'placeholder' => 'Patient number', 'autocomplete' => 'off', 'spellcheck' => false]) }}
{{ Form::text('full_name', '', ['class' => 'form-control typeahead', 'placeholder' => 'Patient Name', 'autocomplete' => 'off', 'spellcheck' => false]) }}
{{ Form::text('village', '', ['class' => 'form-control typeahead', 'placeholder' => 'Village', 'autocomplete' => 'off', 'spellcheck' => false]) }}
{{ $patientCount }} {{ __('patients.patients_registered') }}
@if(isset($criteria) && isset($resultCount))

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

@endif {{ Form::close() }}
@if(count($patients) > 0) @foreach($patients as $patient) @endforeach @else @endif
{{ __('patients.patient_number') }} {{ __('patients.full_names') }} {{ __('patients.gender') }} {{ __('patients.age') }} {{ __('patients.phone') }} {{ __('patients.category') }} {{ __('patients.village') }}
{{ $patient->number }} {!! insurance_flag($patient->id) !!} @if($patient->gender == 1) {{ __('patients.male') }} @else {{ __('patients.female') }} @endif {{ get_patients_age($patient->date_of_birth) }} {{ $patient->phone }} category_id]) ? $categories[$patient->category_id] : "N/A"; ?> {{ isset($patient_villages[$patient->village_id]) ? $patient_villages[$patient->village_id] : '' }} {{ __('patients.details') }} {{ __('patients.edit') }} {{ __('patients.select') }}
{{ __('patients.no_records_found') }}
{{ $patients->links() }}
@endsection @push('scripts') @endpush @push('styles') @endpush