@extends('layouts.app') @section('title', 'Agent Registrations') @section('content')

Agent Registrations

View all agent registration attempts and their payment status

@if(session('success'))

{{ session('success') }}

@endif @if(session('error'))

{{ session('error') }}

@endif
{{ $stats['total'] }}
Total
{{ $stats['paid'] }}
Paid
{{ $stats['pending'] }}
Pending
{{ $stats['failed'] }}
Failed
{{ $stats['expired'] }}
Expired
@if(request('status')) @endif @if(request('search')) Clear @endif

Public Registration URL

{{ route('agent.register.form') }}

@forelse($registrations as $reg) @empty @endforelse
Registration Applicant Package Amount Status Date Actions
{{ $reg->registration_number }}
@if($reg->matrix_id)
Matrix: {{ $reg->matrix_id }}
@endif
{{ $reg->name }}
{{ $reg->email }}
{{ $reg->phone }}
{{ $reg->registrationFee?->name ?? 'N/A' }} @if($reg->referrer)
Ref: {{ $reg->referrer->name }}
@endif
RM {{ number_format($reg->total_amount, 2) }}
@if($reg->gateway_fee > 0)
Fee: RM {{ number_format($reg->fee_amount, 2) }} + {{ number_format($reg->gateway_fee, 2) }}
@endif @if($reg->payment_method)
{{ strtoupper($reg->payment_method) }}
@endif
{{ $reg->status_display }} @if($reg->agent) @elseif($reg->agent_id)
Agent deleted
@endif
{{ $reg->created_at->format('d M Y') }}
{{ $reg->created_at->format('H:i') }}
@if($reg->paid_at)
Paid: {{ $reg->paid_at->format('d M H:i') }}
@endif
@if($reg->agent) View Agent @else
@if($reg->payment_status !== 'paid')
@csrf
@endif @if($reg->payment_status !== 'pending')
@csrf
@endif @if($reg->payment_status !== 'failed')
@csrf
@endif
@csrf @method('DELETE')
@endif
No registrations found.
@if($registrations->hasPages())
{{ $registrations->links() }}
@endif
@endsection