{{-- Phase 1a: Authorizations Tab --}}
{{-- KPI Cards Row --}} @php($authKpis = $authKpis ?? ['total'=>0,'approved'=>0,'declined'=>0,'approvalPct'=>0,'totalAmount'=>0])
Total Authorizations
{{ number_format($authKpis['total']) }}
Approved
{{ number_format($authKpis['approved']) }}
Declined
{{ number_format($authKpis['declined']) }}
Approval Rate
{{ $authKpis['approvalPct'] }}%
{{-- Date range filter --}}
Authorization Transactions
@forelse($authorizations as $row) @empty @endforelse
Date / Time Card Type Amount Auth Code Cardholder Status
{{ $row->transaction_date ? \App\Helpers\Helper::showdate($row->transaction_date, false, 'm/d/Y H:i') : '—' }} @if($row->card_type) {!! \App\Helpers\Helper::cardImgTag($row->card_type, 'me-1', 'height:20px') !!} {{ strtoupper($row->card_type) }} @else — @endif ${{ number_format($row->amount ?? 0, 2) }} {{ $row->auth_code ?? '—' }} {{ $row->cardholder_name ?? '—' }} @php($status = $row->status ?? 0) @if($status == 1) Approved @elseif($status == 2) Disputed @elseif($status == 3) Chargeback @else Pending @endif
No authorization records found.
@php($data = $authorizations) @include('admin.components.pagination-inner')