admin: dashboard scanline subscription has links to subscription show

This commit is contained in:
萝卜
2026-03-18 05:49:42 +08:00
parent e8d7d194f4
commit 5d2ff4e024
2 changed files with 95 additions and 0 deletions

View File

@@ -869,6 +869,11 @@
]), $selfWithoutBack);
$scanGoRelationUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'relation-subscription');
// 订阅详情:当续费单已关联订阅时,扫描行提供直达订阅详情入口(便于 spot-check
$subscriptionShowUrl = ! empty($po->site_subscription_id)
? \App\Support\BackUrl::withBack('/admin/site-subscriptions/' . (int) $po->site_subscription_id, $selfWithoutBack)
: '';
// 运营扫描用的“治理状态摘要”(不替代下方的治理提示入口,只用于快速判断)
// 注意:为避免对“未支付订单”造成误导,回执/对账/退款在非 paid/refunded 时显示 "-"。
$paymentStatus = (string) ($po->payment_status ?? '');
@@ -994,6 +999,8 @@
订阅:
@if($subscriptionStatusText === '缺')
<a class="link" href="{!! $scanGoRelationUrl !!}"><strong>{{ $subscriptionStatusText }}</strong></a>
@elseif($subscriptionStatusText === '有' && $subscriptionShowUrl !== '')
<a class="link" href="{!! $subscriptionShowUrl !!}"><strong>{{ $subscriptionStatusText }}</strong></a>
@else
<strong>{{ $subscriptionStatusText }}</strong>
@endif