@php $purchase_pdfs = old('vehicle.purchase_pdf', (isset($vehicle['purchase_pdf']) && is_array($vehicle['purchase_pdf'])) ? $vehicle['purchase_pdf'] : null); $basic_id = isset($vehicle['basic']['id']) ? $vehicle['basic']['id'] : ''; if(is_array($purchase_pdfs)){ $purchase_pdfs = array_filter($purchase_pdfs); } @endphp @if(is_array($purchase_pdfs) && count($purchase_pdfs) > 1) @foreach($purchase_pdfs as $pdf_index => $purchase_pdf) @if($pdf_index == 0) @continue @endif @endforeach @endif
暫定車検証 @if(isset($vehicle_verification_pdf['verification_file_path']) && !empty($vehicle_verification_pdf['verification_file_path']) && Storage::disk('temp')->has($vehicle_verification_pdf['verification_file_path'])) {{ empty((isset($vehicle_verification_pdf['verification_file_name']) ? $vehicle_verification_pdf['verification_file_name'] : '')) ? (isset($vehicle_verification_pdf['verification_file_path']) ? $vehicle_verification_pdf['verification_file_path'] : '') : (isset($vehicle_verification_pdf['verification_file_name']) ? $vehicle_verification_pdf['verification_file_name'] : '') }} @elseif(isset($vehicle_verification_pdf['verification_file_path']) && !empty($vehicle_verification_pdf['verification_file_path']) && isset($vehicle['basic']['id']) && Storage::disk('vehicle_verification_pdf')->has($vehicle['basic']['id'].'/'.$vehicle_verification_pdf['verification_file_path'])) {{ empty((isset($vehicle_verification_pdf['verification_file_name']) ? $vehicle_verification_pdf['verification_file_name'] : '')) ? (isset($vehicle_verification_pdf['verification_file_path']) ? $vehicle_verification_pdf['verification_file_path'] : '') : (isset($vehicle_verification_pdf['verification_file_name']) ? $vehicle_verification_pdf['verification_file_name'] : '') }} @else {{ old('vehicle.verification_pdf.verification_file_name', isset($vehicle_verification_pdf['verification_file_name']) ? $vehicle_verification_pdf['verification_file_name'] : '') }} @endif
旧チェックシート @if(isset($vehicle_verification_pdf['old_checksheet_verification_file_path']) && !empty($vehicle_verification_pdf['old_checksheet_verification_file_path']) && Storage::disk('temp')->has($vehicle_verification_pdf['old_checksheet_verification_file_path'])) {{ empty((isset($vehicle_verification_pdf['old_checksheet_verification_file_name']) ? $vehicle_verification_pdf['old_checksheet_verification_file_name'] : '')) ? (isset($vehicle_verification_pdf['old_checksheet_verification_file_path']) ? $vehicle_verification_pdf['old_checksheet_verification_file_path'] : '') : (isset($vehicle_verification_pdf['old_checksheet_verification_file_name']) ? $vehicle_verification_pdf['old_checksheet_verification_file_name'] : '') }} @elseif(isset($vehicle_verification_pdf['old_checksheet_verification_file_path']) && !empty($vehicle_verification_pdf['old_checksheet_verification_file_path']) && isset($vehicle['basic']['id']) && Storage::disk('vehicle_verification_pdf')->has($vehicle['basic']['id'].'/'.$vehicle_verification_pdf['old_checksheet_verification_file_path'])) {{ empty((isset($vehicle_verification_pdf['old_checksheet_verification_file_name']) ? $vehicle_verification_pdf['old_checksheet_verification_file_name'] : '')) ? (isset($vehicle_verification_pdf['old_checksheet_verification_file_path']) ? $vehicle_verification_pdf['old_checksheet_verification_file_path'] : '') : (isset($vehicle_verification_pdf['old_checksheet_verification_file_name']) ? $vehicle_verification_pdf['old_checksheet_verification_file_name'] : '') }} @else {{ old('vehicle.verification_pdf.old_checksheet_verification_file_name', isset($vehicle_verification_pdf['old_checksheet_verification_file_name']) ? $vehicle_verification_pdf['old_checksheet_verification_file_name'] : '') }} @endif
買取資料 @if(isset($purchase_pdfs[0]['file_path']) && !empty($purchase_pdfs[0]['file_path']) && Storage::disk('temp')->has($purchase_pdfs[0]['file_path'])) {{ (isset($purchase_pdfs[0]['file_name']) && !empty($purchase_pdfs[0]['file_name'])) ? $purchase_pdfs[0]['file_name'] : $purchase_pdfs[0]['file_path'] }} @elseif(isset($purchase_pdfs[0]['file_path']) && !empty($purchase_pdfs[0]['file_path']) && isset($vehicle['basic']['id']) && Storage::disk('vehicle_purchase_pdf')->has($vehicle['basic']['id'].'/'.$purchase_pdfs[0]['file_path'])) {{ (isset($purchase_pdfs[0]['file_name']) && !empty($purchase_pdfs[0]['file_name'])) ? $purchase_pdfs[0]['file_name'] : $purchase_pdfs[0]['file_path'] }} @endif
@if(isset($purchase_pdf['file_path']) && !empty($purchase_pdf['file_path']) && Storage::disk('temp')->has($purchase_pdf['file_path'])) {{ (isset($purchase_pdf['file_name']) && !empty($purchase_pdf['file_name'])) ? $purchase_pdf['file_name'] : $purchase_pdf['file_path'] }} @elseif(isset($purchase_pdf['file_path']) && !empty($purchase_pdf['file_path']) && isset($vehicle['basic']['id']) && Storage::disk('vehicle_purchase_pdf')->has($vehicle['basic']['id'].'/'.$purchase_pdf['file_path'])) {{ (isset($purchase_pdf['file_name']) && !empty($purchase_pdf['file_name'])) ? $purchase_pdf['file_name'] : $purchase_pdf['file_path'] }} @endif