@extends('hms.layout') @section('title','Appointments') @section('content')

Reception schedules patients directly with a general practitioner or a specialist. Referrals may also be scheduled here.

Upcoming appointments

@forelse($appointments as $a) @php($patient=$patients->firstWhere('id',$a->patient_id)) @php($doctor=$physicians->firstWhere('user_id',$a->physician_user_id)) @empty@endforelse
Date & timePatientPractitionerStatusAction
{{ $a->scheduled_at->format('d M Y, H:i') }}{{ $patient?->first_name }} {{ $patient?->last_name }}{{ $doctor?->user?->name??'Unassigned' }} {{ $doctor?->specialty }}{{ str_replace('_',' ',$a->status) }} @if(($a->modality??'in_person')==='telemedicine')Remote@endif
Visit@if(($a->modality??'in_person')==='telemedicine')Telemedicine@endif @if($canBook) @foreach($failedEmails->get($a->id,collect()) as $email)
@csrf
@endforeach @endif @if($canBook && $a->status==='scheduled')
@csrf
@csrf
@endif @if($canCheckIn && $a->status==='scheduled')
@csrf
@endif
No appointments scheduled.
{{ $appointments->links() }}
@if($canBook)

New appointment

@csrf @if($referrals->isNotEmpty())@endif
@endif
@include('hms.appointments.booking-management') @endsection