Site subscriptions index: use BackUrl for orders count link
This commit is contained in:
@@ -295,10 +295,13 @@
|
|||||||
@php $cnt = (int) ($subscription->platform_orders_count ?? 0); @endphp
|
@php $cnt = (int) ($subscription->platform_orders_count ?? 0); @endphp
|
||||||
@if($cnt > 0)
|
@if($cnt > 0)
|
||||||
@php
|
@php
|
||||||
$platformOrdersUrl = '/admin/platform-orders?' . \Illuminate\Support\Arr::query([
|
// 跳到平台订单页:附带 back 回到“订阅列表页自身(剔除 back)”,并统一走 BackUrl helper。
|
||||||
'site_subscription_id' => $subscription->id,
|
$platformOrdersUrl = \App\Support\BackUrl::withBack(
|
||||||
'back' => $back,
|
'/admin/platform-orders?' . \Illuminate\Support\Arr::query([
|
||||||
]);
|
'site_subscription_id' => $subscription->id,
|
||||||
|
]),
|
||||||
|
$back
|
||||||
|
);
|
||||||
@endphp
|
@endphp
|
||||||
<a href="{!! $platformOrdersUrl !!}">{{ $cnt }}</a>
|
<a href="{!! $platformOrdersUrl !!}">{{ $cnt }}</a>
|
||||||
@else
|
@else
|
||||||
|
|||||||
Reference in New Issue
Block a user