@extends('layout.front.master')
@section('title', ($product->name ?? 'Producto') . ' | ' . config('site.name', 'CD-System'))
@section('description', \Illuminate\Support\Str::limit($product->description ?? '', 160))
@push('head')
{{-- Structured Data para SEO --}}
@endpush
@section('content')
@php
// Detectar si el demo activo es demo-photography-3 para personalizar la vista
$activeDemo = get_active_demo();
$isPhotography3 = ($activeDemo === 'demo-photography-3');
// Determinar clases CSS según si hay sidebar o no
$sidebarColClass = $isPhotography3 ? 'd-none' : 'col-lg-3 order-2 order-lg-1 d-none d-lg-block';
$contentColClass = $isPhotography3 ? 'col-12' : 'col-lg-9 order-1 order-lg-2';
$moduleConfig = get_module_page_header_config('products');
$pageTitle = $product->name ?? $moduleConfig['title'];
$pageSubtitle = isset($product->category) ? 'Equipo de ' . $product->category->name : $moduleConfig['subtitle'];
// Sin imagen de fondo por defecto - usar color sólido
$backgroundImage = null;
@endphp
@if(view()->exists('modules.products.frontend.partials.dynamic-header'))
@include('modules.products.frontend.partials.dynamic-header', [
'product' => $product,
'backgroundImage' => $backgroundImage
])
@else
{{-- Fallback a header moderno si no existe el dinámico --}}
{{ __('Imagen no disponible') }}
{{ $product->description }}
| {{ __('Categoría') }}: | {{ $product->category->name ?? 'N/A' }} |
|---|---|
| {{ __('Características') }}: | @foreach($product->tags as $tag) {{ $tag->name }} @endforeach |
| {{ __('Documentación') }}: | {{ __('Ver especificaciones técnicas completas') }} |
{{ __('Explora otras categorías para descubrir más productos.') }}