@extends('backend.layouts.app') @section('content') @if (isset($params) && is_object($params))

事故・修理情報【編集】

@else

事故・修理情報【登録】

@endif {{ Form::open(["route"=>"backend.{$department}.orders.confirm_reception", "method"=>"post"]) }}
@php $images = old('image', (isset($images) && is_object($images)) ? $images->toArray() : null ); @endphp @foreach (range(0, 9) as $item) @endforeach
登録者
@error('register_id') {{ $message }} @enderror
車両ID @include('backend.share._parts._vehicle_search_part', ['vehicle_id'=>old('vehicle_id', isset($params->vehicle_id) ? $params->vehicle_id : ''), 'search_type'=>config('const.vehicle_search_type.partner')]) @error('vehicle_id') {{ $message }} @enderror
登録番号
車台番号
事故日
@error('accident_date') {{ $message }} @enderror
事故種別
@foreach (config('const.accident_type') as $key=>$accident) accident_type) ? $params->accident_type : '') == $key ? 'checked' : '' }}> @endforeach
@error('accident_type') {{ $message }} @enderror
事故内容 @error('accident_content') {{ $message }} @enderror
修理箇所画像
@if(isset($images[$item]['file_path']) && !empty($images[$item]['file_path']) && Storage::disk('temp')->has($images[$item]['file_path'])) @elseif(isset($params->id) && isset($images[$item]['file_path']) && !empty($images[$item]['file_path']) && Storage::disk('vehicle_reception_work_request')->has($params->id.'/'.$images[$item]['file_path'])) @else @endif
免責金額 @error('deductible_amount') {{ $message }} @enderror
修理見積合計 @error('repaire_estimate_amount') {{ $message }} @enderror
見積書
@if(!empty(old('estimate_file_path', isset($params->estimate_file_path) ? $params->estimate_file_path : "")) && Storage::disk('temp')->has(old('estimate_file_path', isset($params->estimate_file_path) ? $params->estimate_file_path : ""))) {{ isset($params->estimate_file) ? old('estimate_file', $params->estimate_file) : old('estimate_file') }} @elseif(!empty(old('estimate_file_path', isset($params->estimate_file_path) ? $params->estimate_file_path : "")) && isset($params->id) && Storage::disk('vehicle_reception_work_request')->has($params->id.'/'.old('estimate_file_path', isset($params->estimate_file_path) ? $params->estimate_file_path : ""))) {{ isset($params->estimate_file) ? old('estimate_file', $params->estimate_file) : old('estimate_file') }} @else @endif
@error('estimate_file') {{ $message }} @enderror
請求書合計 @error('invoice_doc_amount') {{ $message }} @enderror
請求額合計 @error('invoice_amount') {{ $message }} @enderror
実際修理費 @error('real_repaire_amount') {{ $message }} @enderror
コメント @error('comment') {{ $message }} @enderror
ステータス
@error('reception_status') {{ $message }} @enderror
{{ Form::close() }} {{ Form::open(["route"=>"backend.{$department}.orders.download_image", "method"=>"get", "id"=>"download_submit", "target"=>"_blank"]) }} {{ Form::close() }} @endsection @section('page_css') @endsection @section('page_js')