refactor(back): add withBackAndFragment helper and use on platform_orders index

This commit is contained in:
萝卜
2026-03-14 19:06:32 +00:00
parent 956e177544
commit 1b6476f2a4
2 changed files with 23 additions and 1 deletions

View File

@@ -1011,7 +1011,7 @@
@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';
$noReceiptFixUrlRow = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $selfWithoutBack, 'add-payment-receipt');
@endphp
@if($order->payment_status === 'paid' && ! $hasReceiptEvidenceRow)
<div class="muted text-danger muted-xs row-warn">