{{-- Dynamic Header Component for Gallery --}} @php // Get active demo $activeDemo = get_active_demo(); $isLawFirm2 = ($activeDemo === 'demo-law-firm-2'); $isDigitalAgency2 = ($activeDemo === 'demo-digital-agency-2'); $isTransportationLogistic = ($activeDemo === 'demo-transportation-logistic'); $isArchitecture2 = ($activeDemo === 'demo-architecture-2'); $isAccounting2 = ($activeDemo === 'demo-accounting-2'); // Get module configuration for title $moduleConfig = get_module_page_header_config('gallery'); $galleryTitle = $moduleConfig['title'] ?? config('cd-system.modules.gallery.name', 'Galería'); $galleryLabel = strtoupper($galleryTitle); // Determine current context and set content if (isset($currentCategory) && $currentCategory) { // Category view $pageTitle = $currentCategory->name ?? 'Categoría'; $breadcrumbItems = [ ['url' => url('/'), 'label' => 'Inicio'], ['url' => route('gallery'), 'label' => 'Galería'], ['url' => null, 'label' => $currentCategory->name ?? 'Categoría'] ]; $pageSubtitle = $currentCategory->description ?? null; } elseif (isset($tag) && $tag) { // Tag view $pageTitle = $tag->name ?? 'Tag'; $breadcrumbItems = [ ['url' => url('/'), 'label' => 'Inicio'], ['url' => route('gallery'), 'label' => 'Galería'], ['url' => null, 'label' => $tag->name ?? 'Tag'] ]; $pageSubtitle = null; } else { // Index view $pageTitle = 'Galería'; $breadcrumbItems = [ ['url' => url('/'), 'label' => 'Inicio'], ['url' => null, 'label' => 'Galería'] ]; $pageSubtitle = null; } @endphp @if($isLawFirm2) {{-- Law Firm 2 Style Header --}} @elseif($isDigitalAgency2) {{-- Digital Agency 2 Style Header --}} @elseif($isTransportationLogistic) {{-- Transportation Logistic Style Header --}}
@elseif($isArchitecture2) {{-- Architecture 2 Style Header --}} @elseif($isAccounting2) {{-- Accounting 2 Style Header --}}
{{ $galleryLabel }}

{{ $pageSubtitle ?? config('site.gallery.subtitle', 'Trusted expertise tailored to your needs.') }}

@else {{-- Default Style Header --}}
{{-- Dynamic Breadcrumbs --}} {{-- Dynamic Title --}}

{{ $pageTitle }}

@if(!empty($pageSubtitle))

{{ $pageSubtitle }}

@endif
@endif