@php $field = function ($name) use ($item) { return "components[{$item->id}][values][{$name}]"; }; $old = function ($name, $default = '') use ($item, $sub) { return old("components.{$item->id}.values.{$name}", $sub->$name ?? $default); }; @endphp
@include('admin.partials.inputs.imgInput', [ 'i' => 'testimonial-banner-'.$item->id, 'uid' => 'testimonial-banner-'.$item->id, 'name' => $field('image'), 'value' => $old('image', null), 'thumb' => $old('image', '/images/image-placeholder.png') ?: '/images/image-placeholder.png', 'classes' => '' ])
A wide landscape photo, at least 1920px across. It is cropped to fill the banner.
@if(isset($post->id)) @endif