@extends('layouts.doctor') @section('title', 'Doctor Dashboard') @section('content')
Today's Schedule
@forelse($today as $a) {{ $a->appointment_time ? \Illuminate\Support\Carbon::parse($a->appointment_time)->format('h:i A') : '—' }} {{ $a->patient->full_name }}
{{ $a->patient->phone }} {{ $a->diagnosis?->name ?? $a->reason ?? '—' }} @if($a->consultation) Resume @elseif(! in_array($a->status, ['cancelled', 'completed']))
@csrf
@else — @endif @empty No appointments today. @endforelse
@if($upcoming->count())
Upcoming
@foreach($upcoming as $a) {{ $a->appointment_date->format('d M Y') }} {{ $a->patient->full_name }} {{ $a->diagnosis?->name ?? '—' }} @endforeach @endif @endsection