@php($editing = $banner->exists) All banners
@csrf @if ($editing) @method('PUT') @endif
Images
@foreach (['image_desktop' => ['Desktop image', 'JPG, PNG or WebP up to 3 MB. Hero slider: 2172 x 724 px (about 3:1), shown 400 px tall. Category cards: 1232 x 824 px (about 3:2). Shop by Category tiles: a transparent PNG of the products only, about 500 x 500 px (the pink tile and the name are added by the site).'], 'image_mobile' => ['Mobile image (optional)', 'Recommended 900 x 1100 px portrait. Uses the desktop image if empty.']] as $field => [$label, $help])
@if ($banner->{$field}) Current {{ strtolower($label) }} @endif $errors->has($field)])> @error($field)
{{ $message }}
@enderror
{{ $help }}
@endforeach
Text
Display
Schedule
@if ($editing)
@csrf @method('DELETE')
@endif