@include('Partials.sidebar')
@include('Partials.header')
{{-- Page Title --}}

Brokers

Frontend registered broker partners

  1. Brokers
{{-- Flash --}} @foreach(['success','error','warning'] as $t) @if(session($t))
{{ session($t) }}
@endif @endforeach {{-- Stat cards --}}
@foreach([ ['label'=>'Total Brokers', 'value'=>$stats['total'], 'color'=>'#c9a96e', 'icon'=>'fa-users'], ['label'=>'Active', 'value'=>$stats['active'], 'color'=>'#22c55e', 'icon'=>'fa-check-circle'], ['label'=>'Inactive', 'value'=>$stats['inactive'], 'color'=>'#ef4444', 'icon'=>'fa-ban'], ] as $c)
{{ $c['label'] }}
{{ $c['value'] }}
@endforeach
{{-- Left: Brokers table --}}
{{ $brokers->total() }} Brokers
@forelse($brokers as $broker) @empty @endforelse
Broker Company Commission Bookings Earned Status Actions
{{ $broker->name }}
{{ $broker->email }}
{{ $broker->broker_company ?: '—' }} {{ $broker->commission_rate ?? '—' }}% {{ $broker->broker_bookings_count }} ₹{{ number_format($broker->commission_earned ?? 0, 0) }} @if($broker->status === 'active') Active @else Inactive @endif
{{-- View profile --}} {{-- Edit commission rate --}} {{-- Toggle status --}}
@csrf
{{-- Quick notify --}}
No brokers found.
@if($brokers->hasPages()) @endif
{{-- Right: Broadcast Notification --}}
@include('Users._notify_panel', [ 'targetOptions' => [ 'all_brokers' => '📢 All Brokers (' . $stats['active'] . ' active)', ], 'defaultTarget' => 'all_brokers', 'isBrokerPage' => true, ])
{{-- Edit Commission Modal --}} @include('Partials.footer')