@extends('layouts.admin') @section('title', 'Agent Profile') @section('content')
Agent Profile
Recharge Agent Ledger
{{ $agent->name }}
{{ $agent->company_name }}
{{ $agent->email }}
{{ $agent->phone }}
Master: {{ $agent->parentAgent?->name ?: '-' }}
Sub-agents: {{ $agent->sub_agents_count }}
Commission: {{ $agent->commission_type }}
Fixed: {{ number_format($agent->fixed_commission, 2) }}
Percent: {{ $agent->percentage_commission }}%
Credit Limit: {{ number_format($agent->credit_limit, 2) }}
Bookings: {{ $agent->bookings_count }}
Total Credit: {{ number_format($credit, 2) }}
Total Debit: {{ number_format($debit, 2) }}
API: {{ $agent->api_enabled ? 'Enabled' : 'Disabled' }}
Wallet Balance: {{ number_format($balance, 2) }} | Available Credit: {{ number_format($balance + $agent->credit_limit, 2) }}
API Key: {{ $agent->api_key ?: '-' }}
@csrf
@endsection