@extends('layouts.admin') @section('title', 'Hero Banner') @php $imgRow = function ($key, $label) use ($settings) { $current = $settings[$key] ?? null; return [$key, $label, $current]; }; @endphp @section('content') @if ($errors->any())
@endif
@csrf @method('PUT')
Hero Content (Left Side)
Hero Background

Optional full-bleed photo behind the entire hero banner. A light wash is applied automatically over it so the existing text stays readable — leave this empty to keep the plain background.

@php($bg = $settings['hero_background_image'] ?? null)
@if(!empty($bg)) Saved as: {{ $bg }} @else No image saved yet. @endif
@error('hero_background_image'){{ $message }}@enderror
Hero Collage (Right Side)

For each image, upload a file or paste an image URL. Upload takes priority.

Accepted: JPG, PNG, WEBP — up to {{ $maxUploadLabel }} per image (this server's PHP limit). A larger file is rejected by PHP before it reaches the app, which reports it as "failed to upload".

@foreach([['hero_main_image', 'Main Image (large)'], ['hero_secondary_image', 'Secondary Image (top small)'], ['hero_tertiary_image', 'Tertiary Image (bottom small)']] as [$key, $label])
@if(!empty($settings[$key])) {{-- Showing the stored value tells a failed upload (nothing saved) apart from a saved file the server cannot serve (wrong APP_URL / missing storage symlink). --}} Saved as: {{ $settings[$key] }} @else No image saved yet. @endif
@error($key){{ $message }}@enderror
@endforeach
Trust Badge
@endsection