@extends('layouts.app') @section('titulo', 'Clientes') @section('contenido')
{{-- ENCABEZADO --}}

Clientes

{{-- BUSCADOR --}}
{{-- TABLA --}}
@forelse ($clientes as $c) {{-- CLIENTE --}} {{-- DOCUMENTO --}} {{-- TELEFONO --}} {{-- PUNTOS --}} {{-- ACUMULA PUNTOS --}} {{-- COMPRAS --}} {{-- TOTAL --}} {{-- ACCIONES --}} @empty @endforelse
Cliente Documento Teléfono Puntos Acumula Compras Total gastado Acciones
{{ $c->nombre }} @if($c->apellido_paterno) {{ $c->apellido_paterno }} @endif @if($c->apellido_materno) {{ $c->apellido_materno }} @endif
{{ $c->tipo_documento }} {{ $c->numero_documento ?: '—' }} {{ $c->telefono ?: '—' }} {{ number_format((float) ($c->puntos ?? 0), 0) }} @if((int) $c->acumula_puntos === 1) Sí @else No @endif {{ $c->compras_count }} S/ {{ number_format($c->total_gastado ?? 0, 2) }}
{{-- VER --}} {{-- EDITAR --}} {{-- ELIMINAR --}}
@csrf @method('DELETE')
No hay clientes registrados.
{{-- PAGINACIÓN --}} @if ($clientes->hasPages())
{{ $clientes->links() }}
@endif
{{-- MODAL --}}
@csrf {{-- CABECERA --}}

Registra correctamente los datos del cliente.

{{-- CAMPOS --}}
{{-- NOMBRES --}}
{{-- APELLIDO PATERNO --}}
{{-- APELLIDO MATERNO --}}
{{-- TIPO DOCUMENTO --}}
{{-- DOCUMENTO --}}
{{-- TELEFONO --}}
{{-- EMAIL --}}
{{-- DIRECCION --}}
{{-- ACUMULA PUNTOS --}}

¿Acumula puntos?

Si está activado, las compras del cliente acumularán puntos.

{{-- SWITCH --}}
Sí, acumulará puntos No acumulará puntos
{{-- ACTIVO --}}
{{-- BOTONES --}}
@endsection