@extends('layouts.master') @section('title', 'All Patients | Alboosh - Timeless authenticity, born of the desert') @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('reco_srch') == 1) checked @endif>
get('reco_srch') == 2) checked @endif>
get('reco_srch') == 3) checked @endif>

@foreach ($ask_for as $item)
@endforeach

@foreach ($specialty as $item)
@endforeach

@foreach ($branch as $item)
@endforeach

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

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

{{ __('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.website'); $type_color = 'text-green-ligh'; @endphp @endif

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

{{ $item->full_name }}

{{ $type }} | @if ($item->branch) {{ $item->branch->name }} @else {{ __('basic.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') }}
@endforeach
{{ $patients->appends(request()->input())->links() }}
@endsection @section('js') @endsection