@extends("admin.layouts.app") @section("title", __("admin.payment_notifications.title")) @section("content")
| # | {{ __('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') @else — @endif |
| {{ __('admin.payment_notifications.none_found') }} | ||||||||