{{-- パラメーター --}} {{-- $reserve_calender_vehicle => ReserveCalenderVehicleインスタンス --}} {{-- $date => Carbon --}} {{-- $row => int --}} @foreach($dates as $date) @php $calender_task = $reserve_calender_vehicle->getCalenderTask($date, $shed_id, $row); $holiday_class = in_array($date->format('Y-m-d'), $holidays) ? "holiday" : ""; $current_day_class = $date->isToday() ? "current-day" : ""; @endphp {{-- 予約が存在する時 --}} @if($calender_task) @if($calender_task->status=='display') {{-- レンタル予約の時 --}} @if($calender_task->rental_reservation) {!! $calender_task->createRentalTdContent() !!} {{-- レンタル予約以外の予約の時 --}} @elseif($calender_task->rental_other_reservation)

{{ config('const.rental_status_others_name.' . $calender_task->rental_other_reservation->reservation_kb) }}

@endif @endif {{-- 予約が存在しない時 --}} @else リンク @endif @endforeach