@extends('backend.layouts.app')
@section('content')
@include('backend.layouts.flash-message')
@if (isset($is_confirm))
@if(isset($params->id))
{{ Form::open(["route"=>"backend.{$department}.products.save_checksheet", 'parts'=>$params->id, "method"=>"post"]) }}
@else
{{ Form::open(["route"=>"backend.{$department}.products.save_checksheet", "method"=>"post"]) }}
@endif
@else
{{ Form::open(["route"=>"backend.{$department}.products.confirm_checksheet", "method"=>"post"]) }}
@endif
@if(isset($params->id))
@endif
@php
$vehicle_van = isset($ushiparts->target_vehicle()->vehicle_check_van->id) ? $ushiparts->target_vehicle()->vehicle_check_van : null;
$vehicle_parts = isset($ushiparts->target_vehicle()->vehicle_check_parts->id) ? $ushiparts->target_vehicle()->vehicle_check_parts : null;
@endphp
{{ isset($is_confirm) ? '部品情報【確認】' : '部品情報【編集】' }}
@if(isset($is_confirm) && $is_confirm)
@include('backend.parts.products.confirm._t_basic_info')
@else
@include('backend.parts.products.form._t_basic_info', [
'is_ushiparts' => 1
])
@endif
@if($sub_category->code && $sub_category->code != 'mission_automatic')
@php
if(isset($check_object) && is_object($check_object)){
$checksheet = $check_object->toArray();
} else {
$checksheet = null;
}
if(isset($check_object) && is_array($check_object) && $sub_category->code == 'body'){
foreach (config('const.parts_van_type') as $key => $value) {
if(isset($check_object[$key])){
$checksheet[$key - 1] = $check_object[$key];
}
}
}
$sub_category_id = $sub_category->id;
@endphp
@include('backend.parts.products.checksheet.special._p_'.$sub_category->code, ['checksheet'=>$checksheet])
@endif
{{ Form::close() }}
@endsection
@section('modals')
@include('backend.parts.products.checksheet.special._m_kizu_check')
@endsection
@section('page_css')
@endsection
@section('page_js')
@endsection