@extends('layouts.admin') @section('title', 'Appointments') @section('header', 'Appointments') @section('content')
| Patient | Doctor | Date | Time | Status | Actions |
|---|---|---|---|---|---|
|
{{ $appointment->patient_name }} {{ $appointment->phone }} |
{{ $appointment->doctor->name ?? 'N/A' }} | {{ \Carbon\Carbon::parse($appointment->appointment_date)->format('d M Y') }} | {{ $appointment->time_slot }} | {{ ucfirst($appointment->status) }} |
@if($appointment->status === 'pending')
@endif
@if($appointment->status === 'approved')
@endif
@if(in_array($appointment->status, ['pending', 'approved']))
@endif
View
|
| No appointments found | |||||