@extends('layouts.app') @section('content')

Appointments

Book Appointment
@forelse($appointments as $appointment) @empty @endforelse
AppointmentDate & TimeDoctorPatientTypeStatusPaymentAction
{{ $appointment->appointment_number }} {{ $appointment->appointment_date->format('d M Y') }}
{{ substr($appointment->start_time,0,5) }} - {{ substr($appointment->end_time,0,5) }}
{{ $appointment->doctor->user->name }} {{ $appointment->patient->user->name }} {{ ucfirst($appointment->consultation_type) }} {{ ucfirst($appointment->status) }} @if($appointment->payment_status === 'success') Paid @elseif($appointment->status === 'confirmed') Pay @else {{ ucfirst($appointment->payment_status) }} @endif @if($appointment->consultation_type === 'online' && $appointment->status !== 'cancelled') Video @endif Prescription @if(!in_array($appointment->status, ['cancelled','completed'])) Reschedule
@csrf
@endif
No appointments found.
{{ $appointments->links() }}
@endsection