{{-- JSON-LD LocalBusiness --}} @php $fullAddress = trim(($comercio->direccion ?? '').' '.($comercio->ciudad ?? '').' '.($comercio->region ?? '')); $schema = [ '@context' => 'https://schema.org', '@type' => 'LocalBusiness', 'name' => $comercio->nombre, 'image' => $comercio->imagen ?: asset('images/commerce-default.jpg'), 'telephone' => $comercio->telefono ?: null, 'email' => $comercio->email ?: null, 'address' => [ '@type' => 'PostalAddress', 'streetAddress' => $comercio->direccion ?: null, 'addressLocality' => $comercio->ciudad ?: null, 'addressRegion' => $comercio->region ?: 'Chile', 'addressCountry' => 'CL', ], 'url' => route('comercios.show', $comercio->slug ?? $comercio->id), ]; @endphp
Imagen principal de {{ $comercio->nombre }}
{{ $comercio->ciudad ?? 'Chile' }}{{ $comercio->region ? ', '.$comercio->region : '' }}

{{ $comercio->nombre }}

@if($comercio->direccion)

{{ $comercio->direccion }}

@endif
{{-- Breadcrumbs --}}
{{-- Descripción corta opcional --}}

Sobre el comercio

{{-- Si más adelante agregas campo descripción, muéstralo aquí --}} Bienvenido(a) a {{ $comercio->nombre }}. {{$comercio->descripcion}}

{{-- Galería --}} @if($comercio->imagenes->count())

Galería

@endif
{{-- Caja de contacto / CTA --}}

Contacto

@if($comercio->telefono) @endif @if($comercio->email) @endif @php $wa = $comercio->telefono ? 'https://wa.me/'.preg_replace('/\\D+/', '', $comercio->telefono) : null; $mapsQuery = trim(($comercio->direccion ?? '').' '.($comercio->ciudad ?? '').' '.($comercio->region ?? 'Chile')); $mapsLink = 'https://www.google.com/maps/search/?api=1&query='.urlencode($mapsQuery); @endphp
{{-- Mapa embebido --}} @if($mapsQuery)
@endif
{{-- Sección sugerida: comercios relacionados (misma ciudad/región) --}} @php $relacionados = \App\Models\Comercio::query() ->where('id','<>',$comercio->id) ->when($comercio->ciudad, fn($q)=>$q->where('ciudad',$comercio->ciudad)) ->latest()->take(4)->get(); @endphp @if($relacionados->count())

También te puede interesar

Ver todos
@foreach($relacionados as $c)
Imagen de {{ $c->nombre }}

{{ $c->nombre }}

{{ $c->ciudad }}{{ $c->region ? ', '.$c->region : '' }}
@endforeach
@endif