@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'))
Success
{{ session('success') }}
@endif @if(session('status_approved'))
🎉
Proof Approved!
{{ session('status_approved') }}'s payment proof has been approved.
@endif @if(session('status_rejected'))
Proof Rejected
{{ session('status_rejected') }}'s payment proof has been rejected.
@endif @if(session('status_pending'))
Marked as Pending
{{ session('status_pending') }}'s proof is set to pending.
@endif @if(session('status_processing'))
🔄
Marked as Processing
{{ session('status_processing') }}'s proof is under processing.
@endif @if(session('error'))
⚠️
Error
{{ session('error') }}
@endif
{{-- ── CARD HEADER ── --}}

Agent Payment Proofs

{{ $agentproof->count() }} Total Add Proof
{{-- ── TABLE ── --}}
@forelse($agentproof as $key => $val) {{-- Agent --}} {{-- Payment Info --}} {{-- Amount --}} {{-- Status --}} {{-- Actions --}} @empty @endforelse
S.No Agent Payment Info Amount Status Actions
{{ $key + 1 }}
{{ $val->full_name }}
@if($val->company_name)
{{ $val->company_name }}
@endif
{{ $val->email }}
{{ $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
{{ $val->paid_amt ? '₹ ' . number_format($val->paid_amt, 2) : '—' }} @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
No payment proofs found.

No records found for this filter.

{{-- ── VIEW DETAILS MODALS ── --}} @foreach($agentproof as $val) @endforeach {{-- ── EDIT STATUS MODAL ── --}} {{-- ── ADVANCED FILTER MODAL ── --}}
Advanced Filter
@endsection