@extends('layouts.admin') @section('title', 'Appointment Details') @section('content')
Appointment #{{ $appointment->id }}

Scheduled: {{ $appointment->scheduled_at?->format('Y-m-d H:i') }}

Status: {{ $appointment->status }}

Doctor: {{ $appointment->doctor?->name }} ({{ $appointment->doctor?->email }})

Patient: {{ $appointment->patient?->name }} ({{ $appointment->patient?->email }})

Reason: {{ $appointment->reason ?? '-' }}

Doctor Notes: {{ $appointment->doctor_notes ?? '-' }}

@csrf
@if (!in_array($appointment->status, ['cancelled','completed'], true))
@csrf
@endif
@endsection