@extends('layouts.app') @section('title', 'Dental Visits') @section('content') {{-- Stats --}}

Today's Dental

{{ $stats['total_today'] }}

Waiting

{{ $stats['waiting'] }}

In Progress

{{ $stats['in_progress'] }}

Completed

{{ $stats['completed'] }}

{{-- Actions + Filters --}}
@if(request()->hasAny(['search','status','date']))Clear@endif
{{-- Dental Visits Table --}}
@forelse($visits as $v) @empty @endforelse
Patient MRN Age/Gender Visit # Check-in Status Actions
{{ $v->patient->full_name ?? '' }} {{ $v->patient->mrn ?? '' }} {{ $v->patient->age ?? '-' }} · {{ ucfirst($v->patient->gender ?? '') }} {{ $v->visit_number }} {{ $v->check_in_at?->format('H:i') ?? '-' }} @if($v->status === 'completed') Completed @elseif(in_array($v->status, ['waiting', 'urgent'])) {{ $v->status === 'urgent' ? 'Urgent' : 'Waiting' }} @elseif($v->status === 'in_consultation') In Progress @else {{ ucfirst(str_replace('_',' ',$v->status)) }} @endif

No dental visits {{ request('date') ? 'on ' . request('date') : 'today' }}.

Create a dental visit →
@if($visits->hasPages())
{{ $visits->links() }}
@endif
{{-- ═══ NEW DENTAL VISIT MODAL ═══ --}} @endsection