@extends('layouts.app') @section('title', 'Clientes Particulares') @section('content')
@if($customers->count() > 0) {{-- ═══ VISTA DE TARJETAS (Cards) ═══ --}}
@foreach($customers as $customer)
{{ strtoupper(substr($customer->name, 0, 2)) }}
{{ $customer->name }}
{{ $customer->document }}
{{ $customer->is_active ? 'Activo' : 'Inactivo' }}
Contacto @if($customer->phone)
{{ $customer->phone }}
@endif @if($customer->email)
{{ $customer->email }}
@endif @if(!$customer->phone && !$customer->email) @endif
Editar @if(Auth::user()->isAdmin())
@csrf @method('DELETE')
@endif
@endforeach
{{-- ═══ VISTA DE TABLA (List) ═══ --}}
@foreach($customers as $customer) @endforeach
Cliente Cédula / NIT Contacto Estado Acciones
{{ strtoupper(substr($customer->name, 0, 2)) }}
{{ $customer->name }}
{{ $customer->document }} @if($customer->phone)
{{ $customer->phone }}
@endif @if($customer->email)
{{ $customer->email }}
@endif
{{ $customer->is_active ? 'Activo' : 'Inactivo' }}
@if(Auth::user()->isAdmin())
@csrf @method('DELETE')
@endif
{{ $customers->withQueryString()->links() }}
@else

No hay clientes particulares registrados

Los clientes se guardan automáticamente al crear una Orden de Servicio de mostrador.

@if(Auth::user()->isAdmin()) Crear Cliente Manualmente @endif
@endif
@endsection