@extends('dashboard.layouts.app') @section('title', __('Edit Availability for') . ' ' . $teacher->name) @section('page_heading', __('Edit Availability for') . ' ' . $teacher->name) @section('breadcrumb') @endsection @section('content')

{{ __('Edit Availability') }}

{{-- Add Show Availability Button --}} {{ __('Show Availability') }}
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PUT')
@error('timezone')
{{ $message }}
@enderror
@foreach (['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] as $dayIndex => $day) @endforeach @for ($hour = 0; $hour < 24; $hour++) @for ($day = 0; $day < 7; $day++) @endfor @endfor
{{ __('Hour') }}{{ __($day) }}
{{ sprintf('%02d:00', $hour) }} - {{ sprintf('%02d:00', $hour + 1) }} {{-- Button to select all slots for this hour --}}
{{__('Back')}}
{{-- Shift Availability Form --}}

{{ __('Shift Availabilities') }}

@csrf
{{__('Hours')}}
{{ __('Enter a positive number to shift forward, negative to shift backward.') }}
@endsection @section('scripts') @endsection