@vite(['resources/css/app.css', 'resources/js/app.js']) @livewireStyles @php $heroImage = $company->coverUrl() ?: $gallery->first()?->imageUrl() ?: $services->first(fn ($s) => $s->imageUrl())?->imageUrl(); $featuredService = $services->first(); $address = collect([$company->address, $company->city])->filter()->join(', '); $promotionForService = fn ($svc) => $featuredPromotions->first(fn ($p) => $p->appliesToService($svc->id)); @endphp {{-- ══════════════════════════════════════════════════════ SHELL (card centrada en desktop, full en mobile) ══════════════════════════════════════════════════════ --}}
{{-- ══════════════════════════════════════════════════ HERO — Header con foto de portada ══════════════════════════════════════════════════ --}}
{{-- Top bar --}}
{{-- Logo + nombre --}}
@if ($company->logoUrl())
{{ $company->name }}
@else
{{ strtoupper(substr($company->name, 0, 1)) }}
@endif

{{ $company->name }}

@if ($address || $company->phone)

@if ($address){{ $address }}@endif @if ($address && $company->phone) · @endif @if ($company->phone){{ $company->phone }}@endif

@endif
{{-- Acciones --}}
@if ($company->whatsapp) @endif
{{-- Hero image --}}
@if ($heroImage) {{ $company->name }} @else
@endif
Reserva online disponible

{{ $company->description ?: 'Agenda fácil, rápida y desde cualquier lugar' }}

@if ($featuredService)
{{ $featuredService->name }} {{ $featuredService->duration_minutes }} min $ {{ number_format($featuredService->price, 0, ',', '.') }}
@endif
{{-- ══════════════════════════════════════════════════ PROMOCIONES ══════════════════════════════════════════════════ --}} @if ($featuredPromotions->isNotEmpty())

Promociones

Ofertas destacadas

Reservar
@endif {{-- ══════════════════════════════════════════════════ SERVICIOS ══════════════════════════════════════════════════ --}}

Menú

Servicios

Ver todos →
@if ($services->isEmpty())

Aún no hay servicios disponibles.

@else
@foreach ($services as $svc) @php $svcPromo = $promotionForService($svc); @endphp @endforeach
@endif
{{-- ══════════════════════════════════════════════════ GALERÍA ══════════════════════════════════════════════════ --}} @if ($gallery->isNotEmpty())

Galería

Nuestro trabajo

@foreach ($gallery as $item)
{{ $item->title ?: 'Imagen de '.$company->name }} @if ($item->title)

{{ $item->title }}

@endif
@endforeach
@endif {{-- ══════════════════════════════════════════════════ EQUIPO ══════════════════════════════════════════════════ --}} @if ($employees->isNotEmpty())

Profesionales

Nuestro equipo

@foreach ($employees as $emp)
@if ($emp->photoUrl()) {{ $emp->fullName() }} @else
{{ strtoupper(substr($emp->first_name, 0, 1)) }}
@endif

{{ $emp->fullName() }}

@if ($emp->position)

{{ $emp->position }}

@endif @if ($emp->bio)

{{ $emp->bio }}

@endif
@endforeach
@endif {{-- ══════════════════════════════════════════════════ WIZARD DE RESERVA ══════════════════════════════════════════════════ --}}

Reserva online

Agenda tu cita

Selecciona servicio, profesional y horario disponible. Confirmamos tu reserva por correo.

@livewire('public.booking-wizard', ['slug' => $company->slug])
{{-- ══════════════════════════════════════════════════ INFO DE CONTACTO ══════════════════════════════════════════════════ --}} @if ($company->website || $company->email || $address)
@if ($address) {{ $address }} @endif @if ($company->email) {{ $company->email }} @endif @if ($company->website) {{ parse_url($company->website, PHP_URL_HOST) ?: $company->website }} @endif
@endif {{-- ══════════════════════════════════════════════════ FOOTER ══════════════════════════════════════════════════ --}} {{-- ══════════════════════════════════════════════════ STICKY CTA — Solo mobile ══════════════════════════════════════════════════ --}}
Reservar turno @if ($company->allow_customer_cancel) @endif
{{-- /shell --}} @livewireScriptConfig