予約待ち
1
is_reserved ? 'class="visited"' : '' !!}>予約確認
2
is_date_confirmed ? 'class="visited"' : '' !!}>メンテナンス実施
3
is_completed ? 'class="visited"' : '' !!}>メンテナンス完了
4
{{ $supportMonth->number_of_time }}
{{ $supportMonth->month->format('Y.m') }}
{{ $supportMonth->sfaSaleRelation->maintenanceSurvey->name }}
@if($supportMonth->is_parts_procured)
実施済
@else
@php
$diff = $supportMonth->month->diff(new DateTime('first day of this month midnight'));
@endphp
未実施
@include('productpromotion::admin.supportSchedule.modal.parts_procurement', ['supportMonth' => $supportMonth])
@endif
@if($supportMonth->is_datetime_requested)
{{ $supportMonth->requested_start_at->format('Y-m-d H:i') }}~{{ $supportMonth->requested_end_at->format('Y-m-d H:i') }}
@else
希望日時なし
@endif
{{ !empty($supportMonth->employee) ? $supportMonth->employee->name : '未設定' }}
@if($supportMonth->is_date_confirmed)
{{ $supportMonth->scheduled_start_at->format('Y-m-d H:i') }}~{{ $supportMonth->scheduled_end_at->format('Y-m-d H:i') }}
@else
@if($supportMonth->is_reserved && !$supportMonth->is_datetime_requested)
@endif
未定
@endif
@if(!$supportMonth->is_completed)
@include('productpromotion::admin.supportSchedule.modal.back', ['supportMonth' => $supportMonth])
@if($supportMonth->is_date_confirmed)
@php
$disabled = '';
if(!$supportMonth->is_parts_procured || (!Gate::forUser(\Auth::user())->allows('employeeOperation', 'maintenance|4') && !Gate::forUser(\Auth::user())->allows('employeeOperation', 'maintenance|2'))){
$disabled = 'disabled="disabled"';
}
@endphp
@else
@include('productpromotion::admin.supportSchedule.modal.schedule_confirm', ['supportMonth' => $supportMonth])
@endif
@endif