@php
/**
* Display a listing of the resource.
*
* Create file manager button input
* @accepts int i ($file_manager_incrementor), string name, string datatype default image (image, file), string value, string comment optional
*
*/
if(empty($filetype)) {
$filetype = 'image';
}
@endphp
{{ $image }}
@include('admin.partials.inputs.imgInput', [
'i' => $i,
'uid' => 'images-'.$i,
'name' => 'gallery[{{ $i }}][image]',
'value' => old("gallery[{{ $i }}][image]", $image->url ?? ""),
'thumb' => old("gallery[{{ $i }}][image]", $image->url ?? '/images/image-placeholder.png') ?? '/images/image-placeholder.png',
'classes' => 'col-6 col-sm-4 col-md-3 col-lg-2 mb-3'
]
)
@php
/*
Choose
*/
@endphp
@if(!empty($comment))
{{ $comment }}
@endif
{{-- @if($filetype == 'image' && !empty($value))
@endif --}}
|
|
|