@extends('admin.layouts.app') @section('title', 'Agency Agents') @section('breadcrumb')
  • Agencies
  • Agency Agents
  • @endsection @section('heading', 'Agency Agents') @section('subheading', 'View agents across all agencies.') @section('content')
    @forelse($agents as $agent) @empty @endforelse
    Agent Name Agency Listings Status Joined Actions
    @if($agent->agentProfile?->profile_photo) @else
    {{ strtoupper(substr($agent->name ?? '?', 0, 2)) }}
    @endif
    {{ $agent->name }}

    {{ $agent->email }}

    {{ $agent->agentProfile?->agency?->name ?? '—' }} {{ $agent->properties_count ?? 0 }} @if(($agent->agentProfile?->status ?? 'active') === 'active') Active @else {{ $agent->agentProfile?->status ?? '—' }} @endif {{ $agent->created_at?->format('d M Y') }} Edit
    No agents found. Assign agents to agencies from the Agents section.

    Showing {{ $agents->firstItem() ?? 0 }}-{{ $agents->lastItem() ?? 0 }} of {{ $agents->total() }}

    {{ $agents->links() }}
    @endsection