{{-- 대시보드 달력 그리드 (HTMX로 로드) --}} @php use Carbon\Carbon; use App\Models\System\Schedule; $firstDay = Carbon::create($year, $month, 1); $lastDay = $firstDay->copy()->endOfMonth(); $startOfWeek = $firstDay->copy()->startOfWeek(Carbon::SUNDAY); $endOfWeek = $lastDay->copy()->endOfWeek(Carbon::SATURDAY); $today = Carbon::today(); $prevMonth = $firstDay->copy()->subMonth(); $nextMonth = $firstDay->copy()->addMonth(); @endphp {{-- 달력 헤더 --}}
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
|
{{-- 날짜 헤더 --}}
{{ $currentDate->day }}
@if($isHoliday && $isCurrentMonth)
{{ $holidayName }}
@endif
@if($isCurrentMonth)
@endif
@foreach($dayLeaves as $leave)
@endif
{{-- 일정 목록 --}}
[{{ $leave['type_label'] }}]
{{ $leave['user_name'] }}
@if(!empty($leave['reason']))
{{ $leave['reason'] }}
@endif
@endforeach
@foreach($daySchedules as $schedule)
@endforeach
|
@php
$currentDate->addDay();
@endphp
@endfor