@extends('layouts.app') @section('form-title') {{ __('Settings agenda') }} @endsection @section('breadcrumb') @endsection @section('content') @include('free-hours.edit-modal')
{{-- Start add free hours --}} @if(canViewUpdate('add free hours / days'))
{{ __("Add Free hour") }}
@csrf
{!! freeHourUsers('free_hour_user', old('free_hour_user', $user->uuid)) !!} @if($errors->has('free_hour_user'))

{{ $errors->first('free_hour_user') }}

@endif
@if($errors->has('free_hour_date'))

{{ $errors->first('free_hour_date') }}

@endif
@if($errors->has('start_time'))

{{ $errors->first('start_time') }}

@endif
@if($errors->has('end_time'))

{{ $errors->first('end_time') }}

@endif
{!! driverTimeBlocks('time_blocks[]', old('time_blocks', [])) !!} @if($errors->has('time_blocks'))

{{ $errors->first('time_blocks') }}

@endif
@if($errors->has('reason'))

{{ $errors->first('reason') }}

@endif
@if(canViewUpdate('free-hours-edit'))
@endif
@endif {{-- Start listing free hours --}}
{{ __("Free hours") }}
{!! freeHourUsers('free_hour_user_list', old('free_hour_user_list', $user->uuid)) !!}
@include('free-hours.lists')
@endsection @push('child-scripts') @endpush