@if ($appointment ?? ''->isNotEmpty()) @foreach ($appointment ?? '' ?? '' as $appoint) @endforeach @endif @extends('admin.layout.index') @section('content') Doccure
patient
Total Patient

{{$patients->count()}}

Till Today

Patient
Pending Task

{{$pendingAppointment->count()}}

Patient
Appointments

{{$appointment->count()}}

Today

Patient Appointment

Appointment List

@if ($pendingApproval ?? ''->isNotEmpty()) @foreach ($pendingApproval ?? '' ?? '' as $appointment)
User Image

{{DB::table('users')->where('id',$appointment->patient_id)->value('name')}}

{{ date('d-M-Y', strtotime($appointment->appointment_date ))}} - {{$appointment->appointment_time}}
{{$appointment->userDetails ? $appointment->userDetails->location : 'N/A'}}
{{$appointment->user->email}}
{{$appointment->userDetails ? $appointment->userDetails->contact_person : 'N/A'}}
View
@method('put') @csrf
@method('put') @csrf
@endforeach @endif

Appointment List

@if ($pendingAppointment->isNotEmpty()) @foreach ($pendingAppointment ?? '' as $appointment) @if($appointment->status == 'completed') @elseif($appointment->status =='scheduled') @elseif($appointment->status =='accepted') @else @endif @endforeach @endif
Accepted By Date scheduled Patient Name Appointment Date Status Details

{{DB::table('users')->where('id',$appointment->doctor_id)->value('name')}}

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

{{DB::table('users')->where('id',$appointment->patient_id)->value('name')}}

{{ date('d-M-Y', strtotime($appointment->appointment_date ))}} {{$appointment->appointment_time}}{{$appointment->status}}{{$appointment->status}}{{$appointment->status}}{{$appointment->status}} View
@endsection