@extends('layouts.backoffice') @section('content')
Filtration Form
  Reset

Customers

Total (first level only): {{ $firstLevelCount }} Total (including nested): {{ $totalNestedInvited }}
@if(session('success'))
{{ session('success') }}
@endif
@forelse ($customers as $customer) @empty @endforelse
Name Total Invites (1st Level) Phone Status Email Created At Actions
{{ $customer->first_name.' '.$customer->last_name }} {{ count(array_unique($customer->invitationsSent()->pluck('referee_id')->toArray())) }} {{ $customer->mobile }} {{ $customer->status == 0 ? 'Not Active' : 'Active' }} {{ $customer->email }} {{ $customer->created_at->format('d-m-Y H:i') }}
No customers found.
{{ $customers->appends(request()->query())->onEachSide(1)->links('pagination::bootstrap-5') }}
@endsection