@extends('layouts.admin') @section('title', 'Appointments') @section('header', 'Appointments') @section('content')
Reset
@forelse($appointments as $appointment) @empty @endforelse
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')
@csrf @method('PUT')
@endif @if($appointment->status === 'approved')
@csrf @method('PUT')
@endif @if(in_array($appointment->status, ['pending', 'approved']))
@csrf @method('PUT')
@endif View
No appointments found
@if($appointments->hasPages())
{{ $appointments->links() }}
@endif
@endsection