レンタル車種画像管理
{{ Form::open(["route"=>"backend.rental.vehicle.save_rental_car_type", "method"=>"post"]) }}
@foreach(config('const.contact_search_type') as $key=>$type)
{{ $type }} |
@php
$k_file_path = 'file_path'.$key;
$image_path = old('img_path.'.$key, isset($arr_types[$key]) ? $arr_types[$key]->img_path : '');
$image_url = '';
if(isset($arr_types[$key]) && Storage::disk('rental_car_type')->exists($image_path)) {
$image_url = asset("storage/rental_car_type/" . $image_path);
}
if(Storage::disk('temp')->exists($image_path)) {
$image_url = asset("storage/temp/" . $image_path);
}
@endphp
@error('img_path.'.$key)
{{ $message }}
@enderror
|
@endforeach
{{ Form::close() }}