@php($editing = $brand->exists) All brands
@csrf @if ($editing) @method('PUT') @endif
Brand
Homepage card image
@if ($brand->card_image) Current card image @endif $errors->has('card_image')])> @error('card_image')
{{ $message }}
@enderror
The whole card as one image: logo, product and background. Portrait, about 672 x 992 px, up to 1 MB. When set, it is shown as it is and the two pictures below are not used.
Or build the card from a logo and a product picture
@foreach (['logo' => ['Logo', 'Transparent PNG, about 400 x 120 px, up to 1 MB.'], 'image' => ['Product picture', 'Transparent PNG of a product, about 600 x 600 px, up to 1 MB. It sits on the light blue card background.']] as $field => [$label, $help])
@if ($brand->{$field}) Current {{ strtolower($label) }} @endif $errors->has($field)])> @error($field)
{{ $message }}
@enderror
{{ $help }}
@endforeach
Display
@if ($editing)
@csrf @method('DELETE')
@endif