@php $is_display_add_calendar_remark = true; if(!empty($day_num) && $day_num > 7){ $is_display_add_calendar_remark = false; } @endphp
@if($is_display_add_calendar_remark) @endif @php $base_month=$dates[0]->month; $count=0; @endphp @foreach($dates as $key => $date) @if($base_month != $date->month) @php $count=0; $base_month = $date->month; @endphp @endif @php $count++; @endphp @endforeach @foreach($dates as $date) @php $class = ''; $holiday_class = ""; if($date->dayOfWeek == 6){ $class = 'Sat'; }elseif($date->dayOfWeek == 0){ $class = 'Sun'; } if(in_array($date->format('Y-m-d'), $holidays)){ $holiday_class = "holiday"; } $current_day_class = ""; if($date->format('Y-m-d') == Carbon::now()->format('Y-m-d')) { $current_day_class = "current-day"; } @endphp @endforeach @foreach($dates as $date) @php $class = ''; $holiday_class = ""; if($date->dayOfWeek == 6){ $class = 'Sat'; }elseif($date->dayOfWeek == 0){ $class = 'Sun'; } if(in_array($date->format('Y-m-d'), $holidays)){ $holiday_class = "holiday"; } $current_day_class = ""; if($date->format('Y-m-d') == Carbon::now()->format('Y-m-d')) { $current_day_class = "current-day"; } @endphp @endforeach @foreach($vehicles as $vehicle) @php if($shed_id!='all' && $vehicle->vehicle_info->vehicle_info_basic->rental_shed != $shed_id){ continue; } @endphp @if($is_display_add_calendar_remark) @foreach($dates as $date) @include('backend.rental.reserve.components._carender_cell',['cell_task' => $carender_tasks[$vehicle->id], 'cell_position' => 'bottom', 'cell_display_type' => 'date']) @endforeach {{-- 同日付に複数の予約がある分 --}} @if(isset($carender_extra_tasks[$vehicle->id])) @php $last_flg = false; @endphp @foreach ($carender_extra_tasks[$vehicle->id] as $carender_extra_task) @php $last_flg = false; if(end($carender_extra_tasks[$vehicle->id]) == $carender_extra_task){ $last_flg = true; } @endphp @if($is_display_add_calendar_remark) @endif @foreach($dates as $date) @include('backend.rental.reserve.components._carender_cell',['cell_task' => $carender_extra_task, 'cell_position' => 'top', 'cell_display_type' => 'label']) @endforeach @if($is_display_add_calendar_remark) @endif @foreach($dates as $date) @include('backend.rental.reserve.components._carender_cell',['cell_task' => $carender_extra_task, 'cell_position' => 'bottom', 'cell_display_type' => 'date']) @endforeach @endforeach @endif @endforeach
車番 1日料金 保険加入日備考【{{ $dates[$key-1]->year }}年{{ $dates[$key-1]->month }}月】【{{ end($dates)->year }}年{{ end($dates)->month }}月】
{{ $date->day }}
サイズ 車種 1ヵ月料金{{ config('const.jp_week')[$date->dayOfWeek] }}
$vehicle->id, 'home'=>'list_new']) }}" target='_blank'> {{ $vehicle->register_no ? $vehicle->register_no : '未登録' }} {{ $vehicle['day_price'] }} @if($vehicle->vehicle_info->vehicle_info_basic->insurance_status==1) ○ @else × @endif {{--
詳細--}}
{!! nl2br(e($vehicle->add_calendar_remark)) !!} @endif @foreach($dates as $date) @include('backend.rental.reserve.components._carender_cell',['cell_task' => $carender_tasks[$vehicle->id], 'cell_position' => 'top', 'cell_display_type' => 'label']) @endforeach
{{ config('const.vehicle_size.'.$vehicle->vehicle_info->vehicle_info_basic->size) }} {{ $vehicle['body_category_name'] }} {{ $vehicle['month_price'] }}