{{-- ICTHospital - a doctor's weekly booking slots and blocked dates. Copyright (c) DEVtrust Part of ICTHospital Licensed under the GNU General Public License v3.0. --}} @extends('layouts.master') @section('content') @include('app.partials._alerts')

Booking slots: {{ $doctor->name }}

Once a doctor has slots, bookings must fall inside them. A doctor with no slots can be booked at any time.

@forelse ($slots as $s) @empty @endforelse
DayFromToSlot lengthStatus
{{ \App\Models\DoctorSlot::DAYS[$s->weekday] }}{{ $s->start_time }}{{ $s->end_time }}{{ $s->slot_minutes }} min {{ $s->active ? 'Active' : 'Disabled' }}
{{ csrf_field() }}
{{ csrf_field() }}
No slots yet: this doctor can be booked at any time.

Create slots

{{ csrf_field() }}
@foreach (\App\Models\DoctorSlot::DAYS as $i => $day)@endforeach

Blocked dates leave, a half day, a conference

    @forelse ($blocks as $b)
  • {{ \Carbon\Carbon::parse($b->date)->format('D d M Y') }}: {{ $b->start_time ? $b->start_time . '-' . $b->end_time : 'whole day' }}{{ $b->reason ? ' (' . $b->reason . ')' : '' }}
    {{ csrf_field() }}
  • @empty
  • None coming up.
  • @endforelse
{{ csrf_field() }}

Free today

@forelse ($preview as $f){{ $f['start'] }}@emptyNothing free today.@endforelse

@stop