{{-- Toolbar --}}
@if($searchInput || $phone || $country || $planFilter || $dateFrom || $dateTo) @endif
@if($clients->count() == 0)

No hay clientes B2C para mostrar

@else
@foreach ($clients as $client) @endforeach
# Nombre Email Teléfono País Registrado Planes Acciones
{{ $client->id }} {{ $client->name }} {{ $client->email }} {{ $client->phone ?? '—' }} @if($client->country) {{ strtoupper($client->country) }} @else — @endif {{ optional($client->created_at)->format('d/m/Y H:i') }} @php $esencial = $client->customerInvitations->where('plan_id', \App\Models\Plan::ESENCIAL)->count(); $vip = $client->customerInvitations->where('plan_id', \App\Models\Plan::VIP)->count(); $ct = $client->customerInvitations->where('plan_id', \App\Models\Plan::CONTROL_TOTAL)->count(); @endphp @if($esencial) {{ $esencial }} Esencial @endif @if($vip) {{ $vip }} VIP @endif @if($ct) {{ $ct }} Control Total @endif @if($client->phone) @endif @if($client->email) @endif
{{-- Pagination --}}
{{ $clients->total() }} clientes en total
{!! $clients->links('custom-pagination-links') !!}
@endif