Directorio & CRM • Ventas Online & WhatsApp

Clientes & Redes Sociales

Historial de compras, control de límites de crédito para fiados y contacto directo por WhatsApp.

@forelse($customers as $customer)
{{ strtoupper(substr($customer->name, 0, 2)) }}

{{ $customer->name }}

{{ $customer->identification_number ?: 'Sin C.I. registrada' }}
@if($customer->phone) WhatsApp @endif @if($customer->instagram_handle) {{ $customer->instagram_handle }} @endif @if($customer->city) {{ $customer->city }} @endif
Deuda Fiada: @if($customer->hasDebt()) ${{ number_format((float)$customer->current_debt_usdt, 2) }} USDT @else Al día ($0.00) @endif
Límite de Crédito: ${{ number_format((float)$customer->credit_limit_usdt, 2) }} USDT
Total Histórico: ${{ number_format((float)$customer->total_spent_usdt, 2) }} ({{ $customer->total_purchases_count }} compras)
@empty

No se encontraron clientes

Prueba con otro término de búsqueda o registra un nuevo cliente.

@endforelse
{{ $customers->links() }}
@if($viewingCustomer)
{{ strtoupper(substr($viewingCustomer->name, 0, 2)) }}

{{ $viewingCustomer->name }}

{{ $viewingCustomer->identification_number ?: 'Sin C.I.' }} • Cliente desde {{ $viewingCustomer->created_at->format('d/m/Y') }}
Canales de Contacto

Tel / WhatsApp: {{ $viewingCustomer->phone ?: 'No registrado' }}

Instagram: {{ $viewingCustomer->instagram_handle ?: 'No registrado' }}

Correo: {{ $viewingCustomer->email ?: 'No registrado' }}

@if($viewingCustomer->phone) Abrir chat de WhatsApp → @endif
Dirección para Envíos / Delivery

{{ $viewingCustomer->city ?: 'Ciudad no especificada' }}

{{ $viewingCustomer->address ?: 'Sin dirección física registrada.' }}

@if($viewingCustomer->notes)
"{{ $viewingCustomer->notes }}"
@endif
Deuda Pendiente ${{ number_format((float)$viewingCustomer->current_debt_usdt, 2) }}
Límite de Crédito ${{ number_format((float)$viewingCustomer->credit_limit_usdt, 2) }}
Total Comprado ${{ number_format((float)$viewingCustomer->total_spent_usdt, 2) }}

Historial de Órdenes Recientes

@forelse($customerSales as $sale)
{{ $sale->sale_number }} {{ $sale->created_at->format('d/m/Y h:i A') }} • {{ $sale->items->count() }} ítems
${{ number_format((float)$sale->total_amount_usdt, 2) }} USDT {{ $sale->payment_method === 'credit' ? 'Fiado / Crédito' : 'Contado' }}
@empty
Este cliente aún no registra compras en el terminal.
@endforelse
@endif @if($showCustomerModal)

{{ $editingCustomerId ? 'Editar Cliente' : 'Registrar Nuevo Cliente' }}

@error('name') {{ $message }} @enderror
@error('identification_number') {{ $message }} @enderror
@error('phone') {{ $message }} @enderror
@error('instagram_handle') {{ $message }} @enderror
@error('credit_limit_usdt') {{ $message }} @enderror
@error('city') {{ $message }} @enderror
@error('email') {{ $message }} @enderror
@error('address') {{ $message }} @enderror
@endif