@extends('backend.layouts.app') @section('content')

書類管理(販売)【編集】

@include('backend.share.document._vehicle_info') @include('backend.layouts.flash-message') {{ Form::open(['route'=>"backend.{$department}.document.confirm_for_sale", 'method'=>'post', 'id'=>'submit_form']) }} @if (isset($params)) @endif @php $doc_sale_purpose_id = old('doc_sale_purpose_id', isset($params->doc_sale_purpose_id) ? $params->doc_sale_purpose_id : ""); @endphp

登録書類

用途
@error('doc_sale_purpose_id') {{ $message }} @enderror
{{-- 自家用・所有使用一緒 or 事業用・所有使用一緒--}}
所有者・使用者名 @error('c_owner_name') {{ $message }} @enderror
所有者
所有者名 @error('owner_name') {{ $message }} @enderror
@if (old('additions') == null && isset($params->additions)) @for ($i = 0; $i < $params->additions->count(); $i++) @if ($params->additions[$i]->doc_kind == config('const.doc_sale_type_code.owner')) @include('backend.share.document._addition_sale_part', ['doc_type'=>'register']) @endif @endfor @endif @if (old('additions') != null && count(old('additions')) > 0 ) @foreach(old('additions') as $i => $addition) @if (old('additions.'.$i.'.doc_kind') == config('const.doc_sale_type_code.owner')) @include('backend.share.document._addition_sale_part', ['doc_type'=>'register']) @endif @endforeach @endif
委任状
ower_power_attorney) ? $params->ower_power_attorney : "") == 1 ? "checked" : "" }}>
受取日:
印鑑証明書
owner_stamp_cert) ? $params->owner_stamp_cert : "") == 1 ? "checked" : "" }}>
受取日:
発行日:
使用者
使用者名 @error('user_name') {{ $message }} @enderror
@if (old('additions') == null && isset($params->additions)) @for ($i = 0; $i < $params->additions->count(); $i++) @if ($params->additions[$i]->doc_kind == config('const.doc_sale_type_code.user')) @include('backend.share.document._addition_sale_part', ['doc_type'=>'register']) @endif @endfor @endif @if (old('additions') != null && count(old('additions')) > 0 ) @foreach(old('additions') as $i => $addition) @if (old('additions.'.$i.'.doc_kind') == config('const.doc_sale_type_code.user')) @include('backend.share.document._addition_sale_part', ['doc_type'=>'register']) @endif @endforeach @endif
委任状
user_power_attorney) ? $params->user_power_attorney : "") == 1 ? "checked" : "" }}>
受取日:
印鑑証明書(コピー)
user_stamp_cert) ? $params->user_stamp_cert : "") == 1 ? "checked" : "" }}>
受取日:
発行日:
車庫証明書(申請書・自認書OR承諾書
・配置図・公共料金領収書)
user_garage_cert) ? $params->user_garage_cert : "") == 1 ? "checked" : "" }}>
受取日:
事業用自動車連絡表
(事前届出書・アンケート用紙)
user_contact_doc) ? $params->user_contact_doc : "") == 1 ? "checked" : "" }}>
受取日:
@if (old('additions') == null && isset($params->additions)) @for ($i = 0; $i < $params->additions->count(); $i++) @if ($params->additions[$i]->doc_kind == config('const.doc_sale_type_code.combine')) @include('backend.share.document._addition_sale_part', ['doc_type'=>'register']) @endif @endfor @endif @if (old('additions') != null && count(old('additions')) > 0 ) @foreach(old('additions') as $i => $addition) @if (old('additions.'.$i.'.doc_kind') == config('const.doc_sale_type_code.combine')) @include('backend.share.document._addition_sale_part', ['doc_type'=>'register']) @endif @endforeach @endif
委任状
ower_power_attorney) ? $params->ower_power_attorney : "") == 1 ? "checked" : "" }}>
受取日:
印鑑証明書
owner_stamp_cert) ? $params->owner_stamp_cert : "") == 1 ? "checked" : "" }}>
受取日:
発行日:
車庫証明書(申請書・自認書OR承諾書
・配置図・公共料金領収書)
user_garage_cert) ? $params->user_garage_cert : "") == 1 ? "checked" : "" }}>
受取日:
事業用自動車連絡表
(事前届出書・アンケート用紙)
user_contact_doc) ? $params->user_contact_doc : "") == 1 ? "checked" : "" }}>
受取日:

所有者書類追加

使用者書類追加

書類追加


{{--@if(!(isset($params->doc_receipt_status) && $params->doc_receipt_status == config('const.doc_receipt_status_code.finish')))--}} {{--@endif--}} {{-- --}}

@php $comments = old('comment', isset($params->comment) ? $params->comment->toArray() : null); $rowcount = (is_array($comments) && count($comments)) ? count($comments) : 1; @endphp {{--@if(!is_null($comments) && is_array($comments) && count($comments) > 1) @foreach($comments as $key => $comment) @if($key == 0) @continue @endif @endforeach @endif--}}
備考 @error('comment.0.content') {{ $message }} @enderror
コメント

削除

{{--

コメント追加

--}} {{--
備考

削除

--}}

発送書類

状態1
@error('doc_purchase_status_id') {{ $message }} @enderror @error('doc_purchase_sub_status_id') {{ $message }} @enderror
@if (old('additions') == null && isset($params->additions)) @for ($i = 0; $i < $params->additions->count(); $i++) @if ($params->additions[$i]->doc_kind == config('const.doc_sale_type_code.send')) @include('backend.share.document._addition_sale_part', ['doc_type'=>'send']) @endif @endfor @endif @if (old('additions') != null && count(old('additions')) > 0 ) @foreach(old('additions') as $i => $addition) @if (old('additions.'.$i.'.doc_kind') == config('const.doc_sale_type_code.send')) @include('backend.share.document._addition_sale_part', ['doc_type'=>'send']) @endif @endforeach @endif
予備検査証
pre_inspection_cert) ? $params->pre_inspection_cert : "") == 1 ? "checked" : "" }}>
発送日:
@if(!empty(old('pre_inspection_file_path', isset($params->pre_inspection_file_path) ? $params->pre_inspection_file_path : '')) && Storage::disk('temp')->has(old('pre_inspection_file_path', isset($params->pre_inspection_file_path) ? $params->pre_inspection_file_path : ''))) {{ old('pre_inspection_file_name', isset($params->pre_inspection_file_name) ? $params->pre_inspection_file_name : '') }} @elseif(!empty(old('pre_inspection_file_path', isset($params->pre_inspection_file_path) ? $params->pre_inspection_file_path : '')) && Storage::disk('vehicle_document')->has($params->vehicle_id.'/'.old('pre_inspection_file_path', isset($params->pre_inspection_file_path) ? $params->pre_inspection_file_path : ''))) {{ old('pre_inspection_file_name', isset($params->pre_inspection_file_name) ? $params->pre_inspection_file_name : '') }} @else @endif
抹消証
erasure_cert) ? $params->erasure_cert : "") == 1 ? "checked" : "" }}>
発送日:
@if(!empty(old('erasure_file_path', isset($params->erasure_file_path) ? $params->erasure_file_path : '')) && Storage::disk('temp')->has(old('erasure_file_path', isset($params->erasure_file_path) ? $params->erasure_file_path : ''))) {{ old('erasure_file_name', isset($params->erasure_file_name) ? $params->erasure_file_name : '') }} @elseif(!empty(old('erasure_file_path', isset($params->erasure_file_path) ? $params->erasure_file_path : '')) && Storage::disk('vehicle_document')->has($params->vehicle_id.'/'.old('erasure_file_path', isset($params->erasure_file_path) ? $params->erasure_file_path : ''))) {{ old('erasure_file_name', isset($params->erasure_file_name) ? $params->erasure_file_name : '') }} @else @endif
車検証
inspection_cert) ? $params->inspection_cert : "") == 1 ? "checked" : "" }}>
発送日:
@if(!empty(old('pdf_file_path', isset($params->pdf_file_path) ? $params->pdf_file_path : '')) && Storage::disk('temp')->has(old('pdf_file_path', isset($params->pdf_file_path) ? $params->pdf_file_path : ''))) {{ old('pdf_file_name', isset($params->pdf_file_name) ? $params->pdf_file_name : '') }} @elseif(!empty(old('pdf_file_path', isset($params->pdf_file_path) ? $params->pdf_file_path : '')) && Storage::disk('vehicle_document')->has($params->vehicle_id.'/'.old('pdf_file_path', isset($params->pdf_file_path) ? $params->pdf_file_path : ''))) {{ old('pdf_file_name', isset($params->pdf_file_name) ? $params->pdf_file_name : '') }} @else @endif
譲渡証
transfer_cert) ? $params->transfer_cert : "") == 1 ? "checked" : "" }}>
発送日:
委任状
delegate_doc) ? $params->delegate_doc : "") == 1 ? "checked" : "" }}>
発送日:
印鑑証明書
seal_cert) ? $params->seal_cert : "") == 1 ? "checked" : "" }}>
発送日:
発行日:
自賠責
insurance_doc) ? $params->insurance_doc : "") == 1 ? "checked" : "" }}>
発送日:
自賠責承認請求書
approval_doc) ? $params->approval_doc : "") == 1 ? "checked" : "" }}>
発送日:
記録簿
record_book) ? $params->record_book : "") == 1 ? "checked" : "" }}>
発送日:
リサイクル券
recycle_doc) ? $params->recycle_doc : "") == 1 ? "checked" : "" }}>
発送日:

書類追加



@if(isset($params->limit_date_doc_receipt) && $params->limit_date_doc_receipt)
{{ Carbon::parse($params->limit_date_doc_receipt)->format('Y/m/d') }}発送済み
@endif
{{--@if(!((isset($params->update_status) && $params->update_status == 1)))--}} {{--@endif--}}
@php $send_comments = old('send_comment', isset($params->send_comment) ? $params->send_comment->toArray() : null); $rowcount = (is_array($send_comments) && count($send_comments)) ? count($send_comments) : 1; @endphp
備考 @error('send_comment.0.content') {{ $message }} @enderror

{{--
書類受取
@foreach (config('const.doc_receipt_status') as $key=>$item) doc_receipt_status) ? $params->doc_receipt_status : "1") == $key ? "checked" : "" }}> @endforeach
書類受領完了日
@error('limit_date_doc_receipt') {{ $message }} @enderror
--}}
@php $addition_status = old('addition_status', (isset($addition_status) && is_object($addition_status)) ? $addition_status->toArray() : null); $count = is_array($addition_status) ? count($addition_status) : 0; @endphp @if(is_array($addition_status) && count($addition_status) > 0) @while($count) @include('backend.share.document._purchase_addition_status', ['status'=>$addition_status[--$count], 'key'=>$count]) @endwhile @else @include('backend.share.document._purchase_addition_status', ['status'=>null, 'key'=>0]) @endif

状態更新追加

{{ Form::close() }} @endsection @section('page_css') @endsection @section('page_js') @endsection