@extends('backend.partials.master') @section('title') {{ ___('label.agent') }} {{ ___('label.commission') }} @endsection @section('maincontent') @if(hasPermission('agent_finance_create')) {{ ___('label.add') }} @endif @if(!empty($analytics)) @endif @foreach($items as $c) @php $badge = $c->status === 'paid' ? 'success' : 'warning'; @endphp {{ $c->reference }} {{ $c->agent->name ?? '—' }} {{ $c->customer_name }} {{ $c->booking_ref }} {{ currency_symbol() }}{{ number_format($c->amount, 2) }} {{ number_format($c->rate, 2) }} @if($c->is_auto) {{ ___('admin.auto_c614ba') }} @else {{ ___('admin.manual_4e836f') }} @endif {{ admin_label(ucfirst($c->status)) }}
{{-- Approving is what actually pays the agent: it credits their wallet, from which they can request a payout. --}} @if(hasPermission('agent_finance_update')) @if($c->status === 'paid')
@csrf
@else
@csrf
@endif @endif @if(hasPermission('agent_finance_update')) @endif @if(hasPermission('agent_finance_delete')) @endif
@endforeach
@endsection @push('scripts') @endpush