@extends('layouts.app') @section('content')
| Appointment | Date & Time | Doctor | Patient | Type | Status | Payment | Action |
|---|---|---|---|---|---|---|---|
| {{ $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 @endif |
| No appointments found. | |||||||