@extends('frontend.layouts.template-base') @section('meta_tags') @include('frontend.layouts.meta-tags', ['title' => 'Fresh Juices - Chotekisan', 'page' => 'Juices']) @endsection @section('styles') @endsection @section('content') @php $freshSections = collect($freshSections ?? []); $freshBannersByPosition = collect($freshBannersByPosition ?? []); $categoryUrl = route('frontend.category', array_filter(['category_id' => $freshCategory?->id ?? null])); // Admin-managed hero (System Settings → Page Banners). WebsiteFreshService // fills every key from the launch design when it hasn't been customised. $hero = $freshHero ?? []; $heroCtaUrl = ($hero['button_url'] ?? '') ?: $categoryUrl; @endphp
{{-- Juices hero start --}}
@if (!empty($hero['label'])) {{ $hero['label'] }} @endif @if (!empty($hero['title']) || !empty($hero['title_two']) || !empty($hero['highlight']))

@if (!empty($hero['title'])) {{ $hero['title'] }} @endif @if (!empty($hero['title_two']) || !empty($hero['highlight'])) {{ $hero['title_two'] ?? '' }}@if (!empty($hero['highlight'])) {{ $hero['highlight'] }}@endif @endif

@endif @if (!empty($hero['description']))

@foreach ($hero['description'] as $heroLine) {{ $heroLine }}@if (!$loop->last)
@endif @endforeach

@endif @if (!empty($hero['button_text'])) {{ $hero['button_text'] }} @endif
@if (!empty($hero['image']))
{{ $hero['title'] ?? 'Fresh juice' }}
@endif
{{-- Juices hero end --}} @if (!$freshLoadError && ($freshSections->isNotEmpty() || $freshBannersByPosition->isNotEmpty()))
@foreach ($freshSections as $freshSectionIndex => $freshSection) @foreach ($freshBannersByPosition->get($freshSectionIndex, collect()) as $freshBanner) @include('frontend.components.home-sections.poster', ['section' => (object) ['banners' => collect([$freshBanner]), 'background_image' => null]]) @endforeach @if ($freshSection->hasRenderableContent()) @endif @endforeach @foreach ($freshBannersByPosition->get($freshSections->count(), collect()) as $freshBanner) @include('frontend.components.home-sections.poster', ['section' => (object) ['banners' => collect([$freshBanner]), 'background_image' => null]]) @endforeach
@endif
@endsection