@extends(theme_view('layouts.app')) @section('title', 'Mapa del Sitio') @section('content') @php $settings = \App\Models\SiteSetting::first(); $primaryColor = $settings->color_primary ?? '#80b435'; // Categorías activas con subcategorías activas $categories = \App\Models\Categweb::where('activo', 1) ->orderBy('DE_CATEGOR') ->get(); // Marcas activas (que tienen productos) $brands = \App\Models\Marca::where('activo', 1) ->whereHas('productos') ->orderBy('DE_MARCA') ->get(); // Páginas estáticas publicadas $pages = \App\Models\Page::where('status', 1) ->orderBy('name') ->get(); // Verificar si hay FAQs $hasFaqs = \App\Models\Faq::where('status', 1)->exists(); // Verificar si hay Blog posts $hasBlog = \App\Models\Blog::where('status', 1)->exists(); @endphp

Mapa del Sitio

{{-- Bloque introductorio con datos de site_settings --}}

{{ $settings->fantasy_name ?? 'Bienvenido a nuestra tienda' }}

{{ $settings->meta_description ?? 'Explorá todas las secciones de nuestro sitio.' }}

{{-- Columna 1: Páginas Principales --}}

Páginas Principales

{{-- Columna 2: Mi Cuenta --}}

Mi Cuenta

{{-- Columna 3: Información --}}

Información

    @if(showFaqsInFooter()) @php $faqCategories = \App\Models\FaqCategory::where('status', 1) ->whereHas('faqs', function($q) { $q->where('status', 1); }) ->orderBy('order') ->get(); @endphp @foreach($faqCategories as $faqCat)
  • {{ $faqCat->name }}
  • @endforeach @endif
  • Contacto
  • Mapa del Sitio
{{-- Columna 4: Marcas (si hay y si están habilitadas en configuración) --}} @if(showShopFilters() && $brands->count() > 0)

Marcas

@endif
{{-- Categorías (sección completa) --}} @if($categories->count() > 0)

Categorías de Productos

@foreach($categories as $category)
{{ $category->DE_CATEGOR }}
@php $subcategories = \App\Models\Subcaweb::where('CO_CATEGOR', $category->CO_CATEGOR) ->where('activo', 1) ->orderBy('DE_SUBCATE') ->get(); @endphp @if($subcategories->count() > 0) @endif
@endforeach
@endif
@endsection