@extends('admin.layout.index') @section('content')
@if ($doctors->isNotEmpty())

{{$doctors->count()}}

@endif
Medical Officers
@if ($patients->isNotEmpty())

{{$patients->count()}}

@endif
Patients

{{$appointments->count()}}

Appointment

{{$appointment->count()}}

Pending Appointment
{{--

Revenue

Status

--}}

Appointment List

@if ($appointment->isNotEmpty()) @foreach ($appointment ?? '' as $appointment) @if($appointment->status == 'completed') @elseif($appointment->status =='scheduled') @elseif($appointment->status =='accepted') @else @endif @endforeach @endif
Doctor Name 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

Doctors List

@if ($doctors ?? ''->isNotEmpty()) @foreach ($doctors ?? '' ?? '' as $user) @endforeach @endif
Doctor Name Contact Reviews

{{$user->name}}

{{ $user->userDetails ? $user->userDetails->contact_person : 'N/A' }}

Patients Birthday List

@if ($doBPatients ?? ''->isNotEmpty()) @foreach ($doBPatients ?? '' ?? '' as $user) @endforeach @endif
Patient Name Phone Date of Birth Appointment Status

{{$user->name}}

{{$user->userDetails->contact_person}} {{$user->userDetails->dob}} Upcoming
@endsection @if ($modalAppointment->isNotEmpty()) @foreach ($modalAppointment ?? '' as $appoint) @endforeach @endif