@extends('backend.template.layouts.template-base') @section('title', 'Settings - Page Banners') @section('content') @php // Every field falls back to the launch design, so a blank value is not an // empty hero — it just means "keep the shipped default". $heroImageFields = [ 'deals_hero_image_left' => ['label' => 'Left Combo Image', 'hint' => 'Large product shot at the bottom-left of the banner.'], 'deals_hero_image_right' => ['label' => 'Right Combo Image', 'hint' => 'Large product shot at the bottom-right of the banner.'], 'deals_hero_leaf_left' => ['label' => 'Left Leaf Overlay', 'hint' => 'Decorative artwork in the top-left corner.'], 'deals_hero_leaf_right' => ['label' => 'Right Leaf Overlay','hint' => 'Decorative artwork in the top-right corner.'], ]; @endphp
@csrf

Page Banner Settings

Deals Banner Content

Controls the banner at the top of the website Deals page. Leave a field empty to keep the default text that shipped with the design. The product sections below the banner are managed in Product Management → Category & Sections.

@error('deals_hero_pill_text')
{{ $message }}
@enderror

Small rounded label above the heading.

@error('deals_hero_button_text')
{{ $message }}
@enderror

Leave empty to hide the button.

@error('deals_hero_title')
{{ $message }}
@enderror
@error('deals_hero_highlight')
{{ $message }}
@enderror

Shown on its own line in the gold brand colour.

@error('deals_hero_description')
{{ $message }}
@enderror

Each new line is rendered as a separate centred line.

@error('deals_hero_button_url')
{{ $message }}
@enderror

Leave empty to link to the Deals category listing.

Deals Banner Images

Transparent PNGs work best. Upload a file to replace an image, or tick Reset to go back to the image that shipped with the design.

@foreach ($heroImageFields as $key => $field) @php $currentValue = $settings[$key] ?? ''; $isCustom = trim((string) $currentValue) !== ''; $previewUrl = \App\Helpers\Helper::get_image($isCustom ? $currentValue : $defaults[$key]); @endphp
@if ($previewUrl) {{ $field['label'] }} @else No image @endif
@error($key)
{{ $message }}
@enderror

{{ $field['hint'] }} {{ $isCustom ? 'Currently: custom upload' : 'Currently: design default' }}

@endforeach
Juices Banner Content

Controls the banner at the top of the website Juices page. Leave a field empty to keep the default that shipped with the design. The product sections below the banner are managed in Product Management → Category & Sections under the Fresh category.

@error('juices_hero_label')
{{ $message }}
@enderror

Green uppercase line above the heading.

@error('juices_hero_button_text')
{{ $message }}
@enderror

Leave empty to hide the button.

@error('juices_hero_title')
{{ $message }}
@enderror
@error('juices_hero_title_two')
{{ $message }}
@enderror
@error('juices_hero_highlight')
{{ $message }}
@enderror

Shown in green at the end of line 2.

@error('juices_hero_description')
{{ $message }}
@enderror

Each new line is rendered as a separate line.

@error('juices_hero_button_url')
{{ $message }}
@enderror
@php $juicesImage = $settings['juices_hero_image'] ?? ''; $juicesIsCustom = trim((string) $juicesImage) !== ''; $juicesPreview = \App\Helpers\Helper::get_image($juicesIsCustom ? $juicesImage : $defaults['juices_hero_image']); @endphp
@if ($juicesPreview) Juices banner @else No image @endif
@error('juices_hero_image')
{{ $message }}
@enderror

Artwork on the right of the banner. Transparent PNG works best. {{ $juicesIsCustom ? 'Currently: custom upload' : 'Currently: design default' }}

Smoothies Banner Content

Controls the banner at the top of the website Smoothies page. Leave a field empty to keep the default that shipped with the design. The product sections below the banner are managed in Product Management → Category & Sections under the Health category.

@error('smoothies_hero_label')
{{ $message }}
@enderror
@error('smoothies_hero_button_text')
{{ $message }}
@enderror

Leave empty to hide the button.

@error('smoothies_hero_title')
{{ $message }}
@enderror
@error('smoothies_hero_highlight')
{{ $message }}
@enderror

Shown in pink at the end of line 1.

@error('smoothies_hero_title_two')
{{ $message }}
@enderror
@error('smoothies_hero_description')
{{ $message }}
@enderror

Each new line is rendered as a separate line.

@error('smoothies_hero_button_url')
{{ $message }}
@enderror
@php $smImage = $settings['smoothies_hero_image'] ?? ''; $smIsCustom = trim((string) $smImage) !== ''; $smPreview = \App\Helpers\Helper::get_image($smIsCustom ? $smImage : $defaults['smoothies_hero_image']); @endphp
@if ($smPreview) Smoothies banner @else No image @endif
@error('smoothies_hero_image')
{{ $message }}
@enderror

Artwork filling the left half of the banner. {{ $smIsCustom ? 'Currently: custom upload' : 'Currently: design default' }}

@endsection