refactor(platform_orders): use BackUrl::withBackAndFragment on show governance fix links
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user