@extends('layouts.app') @section('content') @php $role1 = Auth::user()->role; $role = $role1['role_name']; $counts = [ 'all' => $agentproof->count(), 'processing' => $agentproof->where('status','processing')->count(), 'pending' => $agentproof->where('status','pending')->count(), 'approved' => $agentproof->where('status','approved')->count(), 'rejected' => $agentproof->where('status','rejected')->count(), ]; @endphp {{-- ── SUCCESS TOAST (generic) ── --}} @if(session('success'))
| S.No | Agent | Payment Info | Amount | Status | Actions |
|---|---|---|---|---|---|
| {{ $key + 1 }} | {{-- Agent --}}
{{ $val->full_name }}
@if($val->company_name)
{{ $val->company_name }}
@endif
{{ $val->email }}
|
{{-- Payment Info --}}
{{ $val->payment_method ?? '—' }}
@if($val->payment_method === 'upi' && $val->upi_id)
{{ $val->upi_id }}
@elseif($val->payment_method === 'bank' && $val->bank_account_number)
{{ $val->bank_account_number }}
@endif
@if($val->transaction_id)
{{ $val->transaction_id }}
@endif
|
{{-- Amount --}}
{{ $val->paid_amt ? '₹ ' . number_format($val->paid_amt, 2) : '—' }} | {{-- Status --}}@if($val->status === 'processing') 🔄 Processing @elseif($val->status === 'pending') ⏳ Pending @elseif($val->status === 'approved') ✅ Approved @elseif($val->status === 'rejected') ❌ Rejected @else {{ ucfirst($val->status) }} @endif | {{-- Actions --}}
|
| No payment proofs found. | |||||
No records found for this filter.