Agents

Create agents and track how many candidates each agent has.

@if (session('success'))
{{ session('success') }}
@endif
Total Agents
{{ number_format($totalAgents ?? 0) }}
Total Candidates
{{ number_format($totalCandidates ?? 0) }}
Agent List
Click "Candidates" to see candidates under an agent.
@forelse($agents as $agent) @empty @endforelse
Agent Status Allowed Companies Candidates Total Paid Total Due Action
{{ $agent->name }}
@if($agent->user?->email) {{ $agent->user->email }} @elseif($agent->phone) {{ $agent->phone }} @else - @endif
@if(strtolower($agent->status) === 'active') ACTIVE @else INACTIVE @endif
{{ $agent->allowedCompanies->pluck('name')->join(', ') ?: 'No company allowed' }}
{{ number_format($agent->candidates_count ?? 0) }} {{ number_format($agent->total_paid ?? 0, 2) }} {{ number_format($agent->total_due ?? 0, 2) }}
No agents yet. Click “Add Agent”.
{{ $agents->links() }}