Site subscriptions index: use BackUrl for orders count link

This commit is contained in:
萝卜
2026-03-14 23:15:22 +00:00
parent 04e49ebbe0
commit 0b5b990f5d

View File

@@ -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