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

No hay clientes B2B para mostrar

@else
@foreach ($clients as $client) @endforeach
# Nombre Email Teléfono País Registrado Plan Estado Stripe 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') }} @if($client->businessConfig && $client->businessConfig->businessPlan) {{ $client->businessConfig->businessPlan->name }} @else @endif @php $status = optional($client->businessConfig)->stripe_status; $statusMap = [ 'active' => ['bg-success', 'Activo'], 'trialing' => ['bg-info', 'Trial'], 'canceled' => ['bg-danger', 'Cancelado'], 'past_due' => ['bg-warning text-dark', 'Vencido'], ]; $badgeClass = $statusMap[$status][0] ?? 'bg-light text-dark'; $badgeLabel = $statusMap[$status][1] ?? ($status ?? '—'); @endphp {{ $badgeLabel }} @if($client->phone) @endif
{{-- Pagination --}}
{{ $clients->total() }} clientes en total
{!! $clients->links('custom-pagination-links') !!}
@endif
{{-- Modal Upgrade Token --}} @foreach ($clients as $client) @endforeach {{-- Modal UTM --}} @foreach ($clients as $client) @endforeach