{{ __('app.pilates_calendar') }}

@php $prevDate = match($calendarView ?? 'monthly') { 'daily' => $currentDate->copy()->subDay(), 'weekly' => $currentDate->copy()->subWeek(), 'monthly' => $currentDate->copy()->subMonth(), 'yearly' => $currentDate->copy()->subYear(), default => $currentDate->copy()->subMonth() }; $nextDate = match($calendarView ?? 'monthly') { 'daily' => $currentDate->copy()->addDay(), 'weekly' => $currentDate->copy()->addWeek(), 'monthly' => $currentDate->copy()->addMonth(), 'yearly' => $currentDate->copy()->addYear(), default => $currentDate->copy()->addMonth() }; @endphp {{ __('app.previous') }} {{ __('app.today') }} {{ __('app.next') }}
@switch($calendarView ?? 'monthly') @case('daily') {{ $currentDate->format('l, F j, Y') }} @break @case('weekly') {{ $currentDate->startOfWeek()->format('M j') }} - {{ $currentDate->endOfWeek()->format('M j, Y') }} @break @case('monthly') {{ $currentDate->format('F Y') }} @break @case('yearly') {{ $currentDate->format('Y') }} @break @endswitch
@php $viewFile = match($calendarView ?? 'monthly') { 'daily' => 'admin.classes.calendar.daily', 'weekly' => 'admin.classes.calendar.weekly', 'monthly' => 'admin.classes.calendar.monthly', 'yearly' => 'admin.classes.calendar.yearly', default => 'admin.classes.calendar.monthly' }; @endphp @include($viewFile, ['classes' => $classes, 'currentDate' => $currentDate])
@if(isset($templates) && $templates->count() > 0)

{{ __('app.quick_template_actions') }}

@foreach($templates->take(4) as $template)

{{ $template->name }}

{{ $template->instructor->name ?? __('app.no_instructor') }}

{{ __('app.generate') }}
@endforeach
@endif @push('scripts') @endpush @push('styles') @endpush