@extends('layouts.master') @section('title', 'All Patients | Proxima - Medical Management app') @section('title-topbar', __('basic.all patients')) @section('css') @endsection @section('content') @section('fixedcontent') @if (Session::has('success'))

Sent Successfully

{{ Session::get('success') }}

@endif @endsection
{{ __('basic.dashboard') }} | {{ __('basic.patients') }} | {{ __('basic.all patients') }}
{{ __('basic.search filter') }}

get('type_srch') == 1) checked @endif>
get('type_srch') == 2) checked @endif>
get('type_srch') == 3) checked @endif>
get('type_srch') == 4) checked @endif>
get('type_srch') == 5) checked @endif>

get('reco_srch') == 1) checked @endif>
get('reco_srch') == 2) checked @endif>
get('reco_srch') == 3) checked @endif>

@foreach ($ask_for as $item)
get('askfor_srch') == $item->id) checked @endif>
@endforeach

@foreach ($specialty as $item)
get('specialty_srch') == $item->id) checked @endif>
@endforeach

@role('Super-admin|Branch-manager') @if (Auth::user()->branch_id == 0)

@foreach ($branch as $item)
get('branch_srch') == $item->id) checked @endif>
@endforeach
@endif @endrole

{{ __('basic.reset') }}

{{ __('patientappo.total patients') }} {{ $patients->total() }}

{{ __('basic.new appointment') }} {{ __('basic.sms') }}
@foreach ($patients as $item) @if ($item->type == 1) @php $type = __('basic.patient'); $type_color = 'main-color'; @endphp @elseif ($item->type == 2) @php $type = __('basic.leads no action'); $type_color = 'text-petroleum-light'; @endphp @elseif ($item->type == 3) @php $type = __('basic.leads interested'); $type_color = 'text-green-ligh'; @endphp @elseif ($item->type == 4) @php $type = __('basic.leads not interested'); $type_color = 'text-red'; @endphp @elseif ($item->type == 5) @php $type = __('basic.vip_patient'); $type_color = 'text-gold'; @endphp @endif

{{ date('d M Y', strtotime($item->created_at)) }}

{{ $item->name }}

{{ $type }} | @if ($item->branch) {{ $item->branch->name }} @else No branch @endif

{{ __('patientappo.phone number') }}
{{ $item->phone_number }}
{{ __('basic.address') }}
{{ $item->city->name }}, {{ $item->country->name }}
{{ __('patientappo.age') }}
{{ \Carbon\Carbon::parse($item->birthday)->diff(\Carbon\Carbon::now())->format('%y Years') }}
{{ __('basic.invoie-total') }}
{{ $item->sums? $item->sums:0 }}
@endforeach
{{ $patients->appends(request()->input())->links() }}
@endsection @section('js') @endsection