@extends("admin.layouts.app") @section("title", __("admin.payment_notifications.title")) @section("content")
@foreach(["pending" => __('admin.payment_notifications.filter_pending'), "approved" => __('admin.payment_notifications.filter_approved'), "rejected" => __('admin.payment_notifications.filter_rejected'), "all" => __('admin.payment_notifications.filter_all')] as $val => $label) @php $isActive = ($status == $val); @endphp $val]) }}" style="display:inline-block;padding:8px 16px;font-size:13px;text-decoration:none;color:{{ $isActive ? "#1a4d80" : "#666" }};font-weight:{{ $isActive ? "700" : "400" }};border-bottom:{{ $isActive ? "3px solid #1a4d80" : "3px solid transparent" }};margin-bottom:-1px;"> {{ $label }} @endforeach
@forelse($notifications as $pn) @if($pn->status === 'pending') @endif @empty @endforelse
# {{ __('common.table.invoice_num') }} {{ __('common.table.client') }} {{ __('admin.payment_notifications.sender') }} {{ __('common.table.amount') }} {{ __('admin.payment_notifications.transfer_date') }} {{ __('admin.payment_notifications.receipt') }} {{ __('common.table.status') }} {{ __('common.table.actions') }}
{{ $pn->id }} @if($pn->invoice) #{{ $pn->invoice->invoice_num ?? $pn->invoice->id }} @else — @endif @if($pn->client) {{ $pn->client->first_name }} {{ $pn->client->last_name }} @else — @endif {{ $pn->sender_name }} @if($pn->bank_name)
{{ $pn->bank_name }}@endif @if($pn->reference)
{{ __('admin.payment_notifications.reference') }}: {{ $pn->reference }}@endif
{{ money_fmt((float) $pn->amount) }} {{ $pn->transfer_date?->format('Y-m-d') }} @if($pn->receipt_path) {{ __('admin.payment_notifications.view_receipt') }} @else — @endif @php $badgeColor = match($pn->status) { 'approved' => '#28a745', 'rejected' => '#dc3545', default => '#f0ad4e', }; @endphp {{ __('admin.payment_notifications.status_' . $pn->status) }} @if($pn->reviewed_at)
{{ $pn->reviewed_at->format('Y-m-d H:i') }} — {{ $pn->admin?->username ?? '—' }} @endif @if($pn->admin_note)
{{ $pn->admin_note }} @endif
@if($pn->status === 'pending')
@csrf
@else — @endif
{{ __('admin.payment_notifications.none_found') }}
{{ $notifications->links() }}
@endsection