@endif
@if($branch->image)
@endif
{{ $branch->name }}
@php
$typeIcons = [
'store' => 'fas fa-store text-primary',
'warehouse' => 'fas fa-warehouse text-warning',
'office' => 'fas fa-building text-info',
'pickup_point' => 'fas fa-map-pin text-success'
];
@endphp
{{-- Estado Abierto/Cerrado --}}
@if($branch->isOpenNow())
Abierto ahora
@else
Cerrado
@endif
{{-- Dirección --}}
{{ $branch->address }}
{{ $branch->city }}{{ $branch->state ? ', ' . $branch->state : '' }}
{{-- Teléfono --}}
@if($branch->phone)
{{ $branch->phone }}
@endif
{{-- WhatsApp --}}
@if($branch->whatsapp)
WhatsApp
@endif
{{-- Horarios resumidos --}}
@if($branch->business_hours)
@php
$today = strtolower(date('l'));
$todayHours = $branch->business_hours[$today] ?? null;
@endphp
@if($todayHours && !empty($todayHours['open']) && !empty($todayHours['close']))
Hoy: {{ $todayHours['open'] }} - {{ $todayHours['close'] }}
@else
Hoy: Cerrado
@endif
@endif
{{-- Servicios (iconos) --}}
@if($branch->services && count($branch->services) > 0)
@foreach(array_slice($branch->services, 0, 3) as $service)
{{ $service }}
@endforeach
@if(count($branch->services) > 3)
+{{ count($branch->services) - 3 }} más
@endif
@endif