@php $last_month = 'w-full font-thin uppercase flex items-center p-4 my-2 transition-colors duration-200 justify-start text-blue-500 bg-gradient-to-r from-white to-blue-100 border-r-4 border-blue-500 dark:from-gray-700 dark:to-gray-800 border-r-4 border-blue-500 lalalalaalal'; $next_month = 'w-full font-thin uppercase flex items-center p-4 my-2 transition-colors duration-200 justify-start text-blue-500 bg-gradient-to-r from-white to-blue-100 border-r-4 border-blue-500 dark:from-gray-700 dark:to-gray-800 border-r-4 border-blue-500 lalalalaalal'; $full_stack = 'event bg-blue-400 text-white rounded p-1 text-sm mb-1'; @endphp
{{$month}}. {{$year}} @if(!Auth::user()->hasRole(['student'])) @endif
|
@foreach ($days_week as $day)
{{$day->day}}
@endforeach @php $iteration = 0 @endphp @while($startOfCalendar <= $endOfCalendar) @php $i = $startOfCalendar->dayOfWeek; $day = $startOfCalendar->format('d') @endphp
{{$day}}
@if(isset($time_schedule[$i]))
@foreach ( $time_schedule[$i] as $schedule) @livewire('calendar.partials.schedule', ['schedule' => $schedule, 'startOfCalendar' => $startOfCalendar, 'show_courses' => $show_courses, 'show_teachers' => $show_teachers, 'show_groups' => $show_groups], key( $iteration.$time)) @php $iteration++; @endphp @endforeach
@endif @if($checkDateVariable->checkDate($startOfCalendar) && count($checkDateVariable->checkDate($startOfCalendar)) > 0) @foreach ($checkDateVariable->checkDate($startOfCalendar) as $holiday)
{{$holiday->title}}
@endforeach @endif
@php $startOfCalendar->addDay(); @endphp @endwhile
@livewire('calendar.partials.popup')