@extends('layouts.app') @section('title', __('Days off')) @section('content')

{{ __('Days off & extra hours') }}

@csrf
@error('date')
{{ $message }}
@enderror
@error('start_time')
{{ $message }}
@enderror
@error('end_time')
{{ $message }}
@enderror

{{ __('Leave times empty on a day off to block the whole day.') }}

@forelse($exceptions as $e) @empty @endforelse
{{ __('Date') }}{{ __('Dentist') }}{{ __('Type') }}{{ __('Hours') }}{{ __('Reason') }}
{{ $e->date->format('D, d M Y') }} {{ $e->dentist?->name ?? __('Whole clinic') }} {{ $e->type === 'off' ? __('Off') : __('Extra') }} {{ $e->isWholeDay() ? __('All day') : substr($e->start_time, 0, 5).'–'.substr($e->end_time, 0, 5) }} {{ $e->reason }}
@csrf @method('DELETE')
{{ __('No exceptions scheduled.') }}
{{ $exceptions->links() }}
@endsection