platform_orders index: show paid-but-no-receipt hint with fix link

This commit is contained in:
萝卜
2026-03-14 12:35:56 +00:00
parent c9b57a9289
commit 1f8cd24e55
2 changed files with 96 additions and 0 deletions

View File

@@ -1060,6 +1060,19 @@
<td>
{{ $paymentStatusLabels[$order->payment_status] ?? $order->payment_status }}
<div class="muted">{{ $order->payment_status }}</div>
@php
$hasReceiptEvidenceRow = (data_get($order->meta, 'payment_summary.total_amount') !== null)
|| (data_get($order->meta, 'payment_receipts.0.amount') !== null);
$noReceiptFixUrlRow = '/admin/platform-orders/' . $order->id . '?' . \Illuminate\Support\Arr::query(['back' => $selfWithoutBack]) . '#add-payment-receipt';
@endphp
@if($order->payment_status === 'paid' && ! $hasReceiptEvidenceRow)
<div class="muted text-danger muted-xs">
无回执
<span class="muted"></span>
<a class="link" href="{!! $noReceiptFixUrlRow !!}">去补回执</a>
</div>
@endif
</td>
<td>¥{{ number_format((float) $order->payable_amount, 2) }}</td>
<td>¥{{ number_format((float) $order->paid_amount, 2) }}</td>