Admin Module

Representatives Management

Manage sales representatives, phone numbers, vans, and account status.

+ Add Representative
@if(session('success'))
{{ session('success') }}
@endif
Total Representatives
{{ $representatives->total() }}
Active
{{ \App\Models\User::where('role', 'representative')->where('status', 'active')->count() }}
Inactive
{{ \App\Models\User::where('role', 'representative')->where('status', 'inactive')->count() }}
@forelse($representatives as $representative) @empty @endforelse
Representative Phone Van Status Actions
{{ strtoupper(substr($representative->name, 0, 1)) }}
{{ $representative->full_name ?: $representative->name }}
{{ $representative->email }}
{{ $representative->phone ?: '-' }} {{ $representative->van_number ?: '-' }} {{ ucfirst($representative->status) }}
Edit
@csrf @method('DELETE')
👥
No representatives yet
Add your first representative account.
Add Representative
{{ $representatives->links() }}