refactor(platform_orders): use BackUrl::withBackAndFragment on show governance fix links

This commit is contained in:
萝卜
2026-03-14 19:19:33 +00:00
parent 9767a1210e
commit 4f0b0583a2

View File

@@ -267,7 +267,7 @@
<div class="mt-6"> <div class="mt-6">
@if($order->isReconcileMismatch()) @if($order->isReconcileMismatch())
@php @php
$fixReceiptUrl = '/admin/platform-orders/' . $order->id . '?' . \Illuminate\Support\Arr::query(['back' => $orderShowSelf]) . '#add-payment-receipt'; $fixReceiptUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $orderShowSelf, 'add-payment-receipt');
@endphp @endphp
<a class="btn btn-secondary btn-sm" href="{!! $fixReceiptUrl !!}">去补回执</a> <a class="btn btn-secondary btn-sm" href="{!! $fixReceiptUrl !!}">去补回执</a>
@endif @endif
@@ -276,7 +276,7 @@
@endif @endif
@if($order->isRefundInconsistent()) @if($order->isRefundInconsistent())
@php @php
$fixRefundUrl = '/admin/platform-orders/' . $order->id . '?' . \Illuminate\Support\Arr::query(['back' => $orderShowSelf]) . '#refund-receipts'; $fixRefundUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $orderShowSelf, 'refund-receipts');
@endphp @endphp
<a class="btn btn-secondary btn-sm" href="{!! $fixRefundUrl !!}">去核对退款</a> <a class="btn btn-secondary btn-sm" href="{!! $fixRefundUrl !!}">去核对退款</a>
@endif @endif