@extends('store.layout.main') @php $sfThemes = [ 'forest' => ['label' => 'Sunny', 'desc' => 'Golden cream & amber', 'bg' => '#fffbe8', 'surface' => '#fff8d6', 'accent' => '#d97706'], 'emerald' => ['label' => 'Emerald', 'desc' => 'Mint green & dark forest', 'bg' => '#edf6f2', 'surface' => '#f4fbf8', 'accent' => '#0d5c56'], 'berry' => ['label' => 'Berry', 'desc' => 'Lavender & violet', 'bg' => '#f5f0fe', 'surface' => '#faf8ff', 'accent' => '#7c3aed'], 'arctic' => ['label' => 'Arctic', 'desc' => 'Cool blue & navy', 'bg' => '#eef4fc', 'surface' => '#f6fafe', 'accent' => '#0e5fa8'], 'mono' => ['label' => 'Mono', 'desc' => 'Pure black & white', 'bg' => '#f5f5f7', 'surface' => '#ffffff', 'accent' => '#1d1d1f'], ]; $currentTheme = old('theme', $sf['theme'] ?? 'forest'); $previewSrc = $branch->logo ? Storage::url($branch->logo) : ($business && $business->logo ? Storage::url($business->logo) : null); $isDefaultLogo = !$branch->logo && $business && $business->logo; $heroPreviewSrc = !empty($sf['hero_image']) ? Storage::url($sf['hero_image']) : null; $serializedSections = old('sections_json', json_encode($sections ?? [], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)); @endphp @section('page-header') @endsection @section('main-container')
@csrf
{{ $branch->name }}

{{ __('Applies to the public storefront for this branch.') }}

@foreach($sfThemes as $themeKey => $theme) @endforeach

{{ __('Upload a branch-specific logo. If not set, your business logo is used on the storefront.') }}

@if($previewSrc) {{ __('Logo preview') }} @else
{{ __('No logo') }}
@endif
{{ __('PNG, JPG — max 500 KB. Recommended: 300×300 px.') }}
@error('logo')
{{ $message }}
@enderror
{{-- ── Hero Section ──────────────────────────────────────────── --}}
@error('hero_image')
{{ $message }}
@enderror
{{-- Left: compact image upload --}}
{{ __('Hero image') }}
{{ __('Click to upload') }} {{ __('1400 × 520 px · wide landscape') }}

{{ __('Recommended: 1400 × 520 px (wide landscape). The storefront hero shows the full image (no cropping): it scales to fit inside the banner; other shapes may show slim bands on the sides or top and bottom.') }}

{{-- Right: hero text fields --}}
{{-- ── Three highlight cards (under hero on storefront) ─────────── --}}

{{ __('Three tiles shown in a row under the hero. Add a small image, heading, and short text for each.') }}

@for($i = 0; $i < 3; $i++) @php $oc = $offerCards[$i] ?? ['image' => '', 'title' => '', 'text' => '']; $ocImgSrc = !empty($oc['image']) ? Storage::url($oc['image']) : null; @endphp
{{ __('Card') }} {{ $i + 1 }}
{{ __('Upload') }} {{ __('e.g. 400×400') }}
@error('offer_card_image_'.$i)
{{ $message }}
@enderror
@endfor
{{-- ── Homepage Sections ─────────────────────────────────────── --}}

{{ __('A slim banner shown at the top of every storefront page for this branch.') }}

@php $annColor = $sf['announcement_color'] ?? 'accent'; @endphp
{{-- Fixed save when footer button is off-screen --}}
@endsection @section('style') @endsection @section('script') @endsection