platform_orders index: show paid-but-no-receipt hint with fix link
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user