@extends('adminlte::page') @section('title', '定期メンテナンス予約確認・実施') @section('content_header')
@stop @section('content')
  • 予約待ち
    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
    @stop @section('css') @stop @section('js') @stop