@extends('../layouts/partials/header') @section('content')

Detalle del Cliente
{{-- ===== TAB 1: INFORMACIÓN PERSONAL ===== --}}
@php $badge = match($cliente->estatus) { 'activo' => 'success', 'prospecto' => 'info', 'inactivo' => 'secondary', 'baja' => 'danger', default => 'light', }; @endphp
{{ $cliente->nombre_completo }} {{ ucfirst($cliente->estatus ?? '—') }}
{{-- ===== TAB 2: SOCIO ECONÓMICO ===== --}}
{{-- ===== TAB 3: CONTACTO ===== --}}
Contacto Principal
Notificaciones
Cobranza
Siniestros
{{-- ===== TAB 4: DIRECCIONES ===== --}}
@foreach([ ['prefix' => 'dir_principal', 'label' => 'Dirección Principal'], ['prefix' => 'dir_fiscal', 'label' => 'Dirección Fiscal'], ['prefix' => 'dir_actual', 'label' => 'Dirección Actual'], ['prefix' => 'dir_otro', 'label' => 'Otra Dirección'], ] as $dir) @php $calle = $cliente->{$dir['prefix'].'_calle'}; @endphp @if($calle)
{{ $dir['label'] }}
@endif @endforeach
{{-- ===== TAB 5: REDES SOCIALES ===== --}}
{{-- ===== TAB 6: DATOS ADICIONALES ===== --}}
Creado: {{ $cliente->created_at?->format('d/m/Y H:i') }}
Actualizado: {{ $cliente->updated_at?->format('d/m/Y H:i') }}
{{-- /tab-content --}}
{{-- /card-body --}}
{{-- /card --}}
@endsection @extends('../layouts/partials/footer')