{{ $statuses[$appointment->status] ?? $appointment->status }}

{{ $appointment->patient->fullName() }}

{{ $appointment->scheduled_at?->format('d M Y H:i') ?? 'Walk-in' }} @if ($appointment->practitioner) · {{ $appointment->practitioner->name }} @endif

@if ($canManage && $appointment->status === \App\Models\Appointment::STATUS_SCHEDULED)
@csrf
@csrf No show
@endif @if ($appointment->queue_ticket_status === 'called')
@csrf
@endif @if (($canStartConsultation ?? $canConsult) && in_array($appointment->status, [\App\Models\Appointment::STATUS_WAITING, \App\Models\Appointment::STATUS_CHECKED_IN], true))
@csrf
@endif @if ($canConsult && in_array($appointment->status, [\App\Models\Appointment::STATUS_WAITING, \App\Models\Appointment::STATUS_CHECKED_IN, \App\Models\Appointment::STATUS_IN_CONSULTATION], true)) @if ($appointment->meet_join_url) Join video visit @else
@csrf
@endif @endif @if ($canManage && $appointment->status === \App\Models\Appointment::STATUS_SCHEDULED && ! $appointment->meet_join_url)
@csrf
@endif @if ($canManage && in_array($appointment->status, [\App\Models\Appointment::STATUS_WAITING, \App\Models\Appointment::STATUS_CHECKED_IN], true)) @if ($appointment->consultation) View consultation @endif @endif @if ($canManage && ! in_array($appointment->status, [\App\Models\Appointment::STATUS_COMPLETED, \App\Models\Appointment::STATUS_CANCELLED], true)) Cancel @endif
@if ($workflowEnabled ?? false)

Patient journey

{{ $currentAdvance?->stage?->name ?? 'Workflow not started' }}

@if ($currentAdvance)

{{ $currentAdvance->isBlocked() ? 'Blocked — financial clearance required' : 'Ready for service' }}

@endif @if ($currentObligation)

{{ $currentObligation->label }} · {{ config('care.billing.currency') }} {{ number_format($currentObligation->amount_minor / 100, 2) }} · {{ ucfirst($currentObligation->status) }}

@endif
@if ($currentAdvance?->isBlocked() && ($canViewBills ?? false)) Open financial gates @endif @if ($canAdvanceWorkflow ?? false)
@csrf
@endif
@if (($workflowHistory ?? collect())->isNotEmpty())
    @foreach ($workflowHistory as $step)
  1. {{ $step->stage?->name ?? $step->stage_code }} · {{ str_replace('_', ' ', $step->status) }}
  2. @endforeach
@endif
@endif

Details

Patient
{{ $appointment->patient->fullName() }}
Branch
{{ $appointment->branch?->name ?? '—' }}
Department
{{ $appointment->department?->name ?? '—' }}
Type
{{ str_replace('_', ' ', $appointment->type) }}
@if ($appointment->meet_join_url)
Video visit
Join link
@endif
Reason
{{ $appointment->reason ?? '—' }}
@if ($appointment->notes)
Notes
{{ $appointment->notes }}
@endif

Timeline

Checked in
{{ $appointment->checked_in_at?->format('d M Y H:i') ?? '—' }}
Waiting since
{{ $appointment->waiting_at?->format('d M Y H:i') ?? '—' }}
Queue position
{{ $appointment->queue_position ?? '—' }}
Started
{{ $appointment->started_at?->format('d M Y H:i') ?? '—' }}
Completed
{{ $appointment->completed_at?->format('d M Y H:i') ?? '—' }}