@extends('layouts.app') @section('title', 'Media Agents') @section('content')

Media Agents

@can('create', App\Models\MediaAgent::class) Add Media Agent @endcan
{{-- Filters --}}
{{-- Summary Cards --}}

{{ $agents->total() }}

Total Agents

{{-- Table --}}
@forelse ($agents as $agent) @empty @endforelse
# Name Mobile Company Rate Generated Paid Due Status Actions
{{ $agent->id }} {{ $agent->name }} {{ $agent->mobile }} {{ $agent->company_name ?? '—' }} {{ number_format($agent->commission_rate, 2) }}% {{ number_format($agent->total_commission, 2) }} {{ number_format($agent->total_paid, 2) }} {{ number_format($agent->total_due, 2) }} {{ $agent->is_active ? 'Active' : 'Inactive' }}
@can('update', $agent) @endcan
No media agents found.
@if ($agents->hasPages()) @endif
@endsection