{{--
درخواست: {{ $response->purchaseRequest->request_code }}
--}} {{--تامینکننده: {{ $response->supplier->company_name }}
--}} {{--مربوط به طرح: {{ $response->purchaseRequest->project?->title ?? 'عمومی' }}
--}} {{--هیچ فاکتوری در انتظار پرداخت نیست.
--}} {{-- @endforelse--}} {{--| کد درخواست | --}} {{--تامینکننده | --}} {{--مبلغ (تومان) | --}} {{--وضعیت | --}} {{--تاریخ پرداخت | --}} {{--کد رهگیری | --}} {{--
|---|---|---|---|---|---|
| {{ $payment->payable?->purchaseRequest?->request_code ?? '-' }} | --}} {{--{{ $payment->payable?->supplier?->company_name ?? 'N/A' }} | --}} {{--{{ number_format($payment->amount) }} | --}} {{----}} {{-- @php--}} {{-- $statusClasses = [--}} {{-- 'successful' => 'bg-green-100 text-green-800',--}} {{-- 'failed' => 'bg-red-100 text-red-800',--}} {{-- 'pending' => 'bg-yellow-100 text-yellow-800',--}} {{-- ];--}} {{-- @endphp--}} {{-- --}} {{-- {{ $payment->status }}--}} {{-- --}} {{-- | --}} {{--{{ $payment->paid_at ? verta($payment->paid_at)->format('Y/m/d H:i') : '-' }} | --}} {{--{{ $payment->meta['ref_id'] ?? $payment->transaction_id ?? '-' }} | --}} {{--
| --}} {{-- هیچ تراکنشی یافت نشد.--}} {{-- | --}} {{--|||||
درخواست: {{ $response->purchaseRequest->request_code }}
تامینکننده: {{ $response->supplier->company_name }}
مربوط به طرح: {{ $response->purchaseRequest->project?->title ?? 'عمومی' }}
هیچ فاکتوری در انتظار پرداخت نیست.
| کد درخواست | تامینکننده | مبلغ (تومان) | وضعیت | تاریخ پرداخت | کد رهگیری | عملیات | {{-- [NEW] --}}
|---|---|---|---|---|---|---|
| {{ $payment->payable?->purchaseRequest?->request_code ?? '-' }} | {{ $payment->payable?->supplier?->company_name ?? 'N/A' }} | {{ number_format($payment->amount) }} | @php $statusInfo = [ 'successful' => ['class' => 'bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-300', 'label' => 'موفق'], 'failed' => ['class' => 'bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-300', 'label' => 'ناموفق'], 'pending' => ['class' => 'bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-300', 'label' => 'در انتظار'], ]; $status = $payment->status; @endphp {{ $statusInfo[$status]['label'] ?? $status }} | {{ $payment->paid_at ? verta($payment->paid_at)->format('Y/m/d H:i') : '-' }} | {{ $payment->meta['ref_id'] ?? $payment->transaction_id ?? '-' }} | {{-- [NEW] Retry Payment Button --}}
@if(in_array($payment->status, ['pending', 'failed']))
|
|
هیچ تراکنشی یافت نشد. |
||||||