@php $ob_file = (isset($vehicle) && is_object($vehicle)) ? $vehicle->getFile($key, (isset($index) ? $index : 0)) : null; @endphp @unless($key == 'other' || $key == 'exterior_damage' || $key == 'accident')

参考
画像

@endunless
@if(!empty(old("vehicle_files.{$key}.".(isset($index) ? $index : 0).".file_path")) && Storage::disk('temp')->has(old("vehicle_files.{$key}.".(isset($index) ? $index : 0).".file_path"))) @elseif(isset($vehicle) && is_object($vehicle)) @if(is_object($ob_file) && !empty($ob_file->file_path) && Storage::disk('vehicles')->has($vehicle->id.'/'.$ob_file->file_path)) @else @endif @else @endif
file_name : '') }}"> file_path : '') }}">
@error("vehicle_files.{$key}.".(isset($index) ? $index : 0).".file_path")

{{ $message }}

@enderror