{{-- パラメーター --}} {{-- $cell_task => $carender_tasks[$vehicle->id] or $carender_extra_task --}} {{-- $cell_position => top or bottom --}} {{-- $cell_display_type => label or date --}} @php $is_link_cell = true; if(!empty($cell_task[$date->format('Ymd')])){ if($shed_id=='all' || in_array($shed_id, $cell_task[$date->format('Ymd')]['shed_id_array'])){ $is_link_cell = false; } } $holiday_class = in_array($date->format('Y-m-d'), $holidays) ? "holiday" : ""; $current_day_class = ""; if($date->format('Y-m-d') == Carbon::now()->format('Y-m-d')) { $current_day_class = "current-day"; } @endphp {{-- 予約が存在しない時 --}} @if($is_link_cell) リンク {{-- 予約が存在する時 --}} @else @php $param = $cell_task[$date->format('Ymd')]; @endphp @if($param['status']=='display') {{-- レンタル予約の時 --}} @if(!empty($param["rental_reservation_id"])) @if($cell_display_type == "label")

{{ $param['partner_name'] }}

{{ $param['tel'] }}

@else {{ isset($param['display_start_time']) ? $param['display_start_time'] : '-' }} {{ $param['end_time'] }} @endif
{{-- レンタル予約以外の予約の時 --}} @elseif(!empty($param["rental_other_reservation_id"])) @if($cell_display_type == "label")

{{ $param['display_label'] }}

@endif
@endif @endif @endif