|
@php $startOfCalendarCopy = $startOfCalendar->copy(); $endOfCalendarCopy = $endOfCalendar->copy(); @endphp @while($startOfCalendarCopy <= $endOfCalendarCopy) @php $i = $startOfCalendarCopy->dayOfWeek; $day = $startOfCalendarCopy->format('d') @endphp @php $startOfCalendarCopy->addDay(); @endphp @endwhile @while($start <= $end) @php $startOfCalendarCopy = $startOfCalendar->copy(); $endOfCalendarCopy = $endOfCalendar->copy(); @endphp @while($startOfCalendarCopy <= $endOfCalendarCopy) @php $startOfCalendarCopy->addDay(); @endphp @endwhile @php $start->addHour(); @endphp @endwhile
{{$startOfCalendarCopy->format('l')}} {{$day}}
@if($checkDateVariable->checkDate($startOfCalendarCopy) && count($checkDateVariable->checkDate($startOfCalendarCopy)) > 0) @foreach ($checkDateVariable->checkDate($startOfCalendarCopy) as $holiday)
{{$holiday->title}}
@endforeach @endif
{{$start->format('H:i')}} @php $i = $startOfCalendarCopy->dayOfWeek; @endphp @if(isset($time_schedule[$i]))
@foreach ( $time_schedule[$i] as $schedule) @livewire('calendar.partials.schedule', ['schedule' => $schedule, 'startOfCalendar' => $startOfCalendarCopy, 'show_courses' => 1, 'show_teachers' => 1, 'show_groups' => 1, 'start' =>$start], key($start->format('H:i').$i.$time)) @endforeach
@endif