{{-- DTHospital - book or edit an appointment. Copyright (c) ICT Innovations Part of DTHospital Licensed under the GNU General Public License v3.0. --}} @extends('layouts.master') @section('style') @stop @section('content') @php($editing = (bool) $appointment->id) @php($startValue = old('start', $appointment->s_time ? \Carbon\Carbon::parse($appointment->s_time)->format('H:i') : '')) @php($minutesValue = old('minutes', $appointment->s_time && $appointment->e_time ? \Carbon\Carbon::parse($appointment->s_time)->diffInMinutes(\Carbon\Carbon::parse($appointment->e_time)) : 15))

{{ $editing ? 'Edit appointment' : 'Book appointment' }}

@if (count($errors) > 0)
Check the form.
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{{ csrf_field() }} @if ($editing) @endif
@if ($patientList->isEmpty()) No patients yet. Register one first. @endif
The patient joins from a link; the doctor starts the call from the queue.
Minutes. The end time is worked out from this, so the slot and the times cannot disagree.

Vitals recorded at the visit, optional

Cancel
@stop @section('script') @stop