{{-- DTHospital - appointment day view. Copyright (c) ICT Innovations Part of DTHospital Licensed under the GNU General Public License v3.0. --}} @extends('layouts.master') @section('style') @stop @section('content') @if (Session::get('success'))
{{ Session::get('success') }}
@endif

Appointments

@if (\App\Support\Permissions::allows('appointment_add')) @endif

@if ($appointments->isEmpty())

Nothing booked for {{ $date }}.

@else @foreach ($appointments as $appointment) @endforeach
Time Patient Doctor Status Remarks Actions
{{ $appointment->time_slot }} {{ $patients[$appointment->patient] ?? 'Unknown patient' }} {{ optional($doctors->firstWhere('id', $appointment->doctor))->name ?? '-' }} @php($label = ['cancelled' => 'danger', 'completed' => 'success', 'no show' => 'warning'][$appointment->status] ?? 'info') {{ ucfirst($appointment->status) }} {{ $appointment->remarks }} Vitals @if (\App\Support\Permissions::allows('appointment_cancel'))
{{ csrf_field() }}
@endif

{{ $appointments->count() }} appointment(s).

@endif
@stop @section('script') @stop