@extends('backend.partials.master') @section('title') {{ ___('label.agent') }} @endsection @section('maincontent') {{-- Agents are Users carrying the "Agent" role, so they are created and deactivated in Users & Roles — this roster stays read-only. --}} @if(hasPermission('user_create')) {{ ___('label.add') }} @endif @if(!empty($analytics)) @endif @foreach($agents as $a) {{ $a->name }} @if($a->company_name)
{{ $a->company_name }}@endif @if($a->agentGroup){{ $a->agentGroup->name }}@endif @if($a->stat_unpaid_inv) {{ $a->stat_unpaid_inv }} {{ ___('admin.unpaid_f233dc') }} @endif {{ $a->email }} @if($a->phone)
{{ $a->phone }}@endif {{ number_format($a->stat_bookings) }} {{ currency_symbol() }}{{ number_format($a->stat_sales) }} {{ currency_symbol() }}{{ number_format($a->stat_commission) }} @if($a->stat_pending > 0) {{ currency_symbol() }}{{ number_format($a->stat_pending) }} @else — @endif {{ currency_symbol() }}{{ number_format($a->stat_wallet) }} {!! @$a->MyStatus !!}
@if(hasPermission('user_update')) @endif @if(hasPermission('agent_finance_read')) @endif
@endforeach
@endsection