@php $_logoPath = public_path('img/logo1.png'); $logoSrc = file_exists($_logoPath) ? 'data:image/png;base64,' . base64_encode(file_get_contents($_logoPath)) : ''; @endphp
@if($logoSrc)Logo@endif
Sabores de Sol by MAYBELL S.A.C.
RUC: 20612998214  |  Comercial
Carretera Panamericana Norte Km 56 - CP San Isidro - Motupe - Lambayeque
FICHA DE CLIENTE
{{ $cliente->ruc ?? $cliente->tax_id ?? '—' }} {{ $cliente->activo ? 'ACTIVO' : 'INACTIVO' }}
{{ $cliente->tipo === 'nacional' ? 'Nacional' : 'Internacional' }}
DATOS GENERALES
@if($cliente->nombre_comercial) @endif
Razón Social: {{ $cliente->razon_social }}
Nombre Comercial: {{ $cliente->nombre_comercial }}
RUC / Tax ID: {{ $cliente->ruc ?? $cliente->tax_id ?? '—' }} País: {{ $cliente->pais ?? '—' }}
Teléfono: {{ $cliente->telefono ?? '—' }} Email: {{ $cliente->email ?? '—' }}
Contacto: {{ $cliente->contacto_nombre ?? '—' }} Dirección: {{ $cliente->direccion ?? '—' }}
PREFERENCIAS COMERCIALES
Moneda Preferida: {{ $cliente->moneda_preferida ?? '—' }} Incoterm Habitual: {{ $cliente->incoterm_habitual ?? '—' }}
Validado SUNAT: {{ $cliente->api_sunat_validado ? 'Sí' : 'No' }}
@if($cliente->cotizaciones->count() > 0)
ÚLTIMAS COTIZACIONES
@foreach($cliente->cotizaciones->take(8) as $cot) @php $cotBadge = match($cot->estado ?? '') { 'aprobada','aceptada' => 'bg-success', 'rechazada' => 'bg-danger', 'enviada' => 'bg-info', default => 'bg-warning', }; @endphp @endforeach
N° Cotización Moneda Total Estado Fecha
{{ $cot->numero }} {{ $cot->moneda }} {{ number_format($cot->total, 2) }} {{ strtoupper($cot->estado) }} {{ $cot->created_at->format('d/m/Y') }}
@endif @if($cliente->pedidos->count() > 0)
ÚLTIMOS PEDIDOS
@foreach($cliente->pedidos->take(8) as $ped) @php $pedBadge = match($ped->estado ?? '') { 'confirmado','completado' => 'bg-success', 'cancelado' => 'bg-danger', 'en_proceso' => 'bg-info', default => 'bg-warning', }; @endphp @endforeach
N° Pedido Moneda Total Estado Fecha
{{ $ped->numero }} {{ $ped->moneda }} {{ number_format($ped->total, 2) }} {{ strtoupper($ped->estado) }} {{ $ped->created_at->format('d/m/Y') }}
@endif