{{-- Success Message --}} @if(session('successMessage')) @endif {{-- Header --}}

Mis Clientes

Gestiona tu cartera de clientes y crea invitaciones personalizadas

{{-- Main Card --}}
{{-- Card Header with Search and Actions --}}
Clientes
{{ $customers->total() }} cliente(s)
{{-- Search Input --}}
@if($searchInput) @endif
{{-- New Customer Button --}} Nuevo Cliente
{{-- Card Body --}}
@if($customers->count() == 0) {{-- Empty State --}}
@if($searchInput) No se encontraron clientes @else Aún no tienes clientes @endif

@if($searchInput) No hay clientes que coincidan con "{{ $searchInput }}" @else Comienza agregando tu primer cliente para crear invitaciones personalizadas @endif

@if(!$searchInput) Agregar Primer Cliente @else @endif
@else {{-- Desktop Table View --}}
@foreach ($customers as $customer) @endforeach
# Cliente Email Teléfono Puede Editar Acciones
#{{ $customer->id }}
{{ $customer->name }}
{{ $customer->email }} @if($customer->phone) {{ $customer->phone }} @else - @endif
can_edit_invitation) checked @endif wire:click="changeCanEdit({{$customer->id}})" style="cursor: pointer;" >
@if(auth()->user()->businessConfig && auth()->user()->businessConfig->isExpired()) @else @endif @if($customer->phone) @endif
{{-- Mobile Card View --}}
@foreach($customers as $customer)
{{ $customer->name }}
{{ $customer->email }}
@if($customer->phone)
{{ $customer->phone }}
@endif
#{{ $customer->id }}
{{-- Can Edit Switch --}}
Puede editar invitación
can_edit_invitation) checked @endif wire:click="changeCanEdit({{$customer->id}})" style="cursor: pointer;" >
{{-- Actions --}}
@if(auth()->user()->businessConfig && auth()->user()->businessConfig->isExpired()) @else Crear Invitación @endif
@if($customer->phone) WhatsApp @endif Editar
@endforeach
{{-- Pagination --}} @if($customers->hasPages())
{{ $customers->links() }}
@endif @endif
{{-- Cannot Create Invites Modal --}} {{-- Custom Styles --}}