@extends('Layout.mainlayout') @section('content')

{{ $advocate->first_name }} {{ $advocate->last_name }}

{{ $advocate->occupation ?? 'Advocate' }}

{{ $advocate->city ?? '' }}{{ $advocate->city && $advocate->state ? ', ' : '' }}{{ $advocate->state ?? '' }}

{{ $advocate->first_name }} {{ $advocate->last_name }}
Full Name {{ $advocate->first_name }} {{ $advocate->last_name }}
Joining Date {{ $advocate->created_at->format('F d, Y') }}
Referral Code {{ $advocate->referral_code ?? 'N/A' }}
Email {{ $advocate->email }}
Occupation {{ $advocate->occupation ?? 'Advocate' }}
Address {{ $advocate->address ?? 'N/A' }}
Phone Number {{ $advocate->phone ?? 'N/A' }}
Identification No {{ $advocate->identification_number ?? 'N/A' }}
Past Payment Settled
₦{{ number_format($totalPoliciesSales, 2) }} Policies Sales
{{ number_format($totalRefers) }} Total Refers
₦{{ number_format($totalAmountPaid, 2) }} Total Amount Paid
🔍

Transaction History

@if(count($transactions) > 0) @foreach($transactions as $transaction)
For {{ $transaction->customer_name ?? 'Customer' }}
₦{{ number_format($transaction->amount, 2) }} NGN
Policy No: {{ $transaction->policy_number ?? 'N/A' }}
{{ ucfirst($transaction->status) }}
{{ $transaction->customer_name ?? 'N/A' }}
{{ $transaction->policy_type ?? 'N/A' }}
@endforeach @else

No transactions found

@endif
@if(is_object($transactions) && method_exists($transactions, 'links'))
@if($transactions->onFirstPage()) @else ‹ Previous @endif @php $start = max(1, $transactions->currentPage() - 2); $end = min($transactions->lastPage(), $transactions->currentPage() + 2); @endphp @for($page = $start; $page <= $end; $page++) @if($page == $transactions->currentPage()) @else {{ $page }} @endif @endfor @if($transactions->hasMorePages()) Next › @else @endif
@endif

File Documents

@if(count($documents) > 0) @foreach($documents as $document)
📄
{{ $document->name ?? 'Document' }}
{{ $document->size ?? 'N/A' }}
Download
@endforeach @else
📄
Agent Licence
Not uploaded
📄
Identification ID
Not uploaded
@endif
@endsection