admin: 订阅详情页补齐BMPA失败原因Top3与直达筛选链接

This commit is contained in:
萝卜
2026-03-13 15:08:57 +00:00
parent 06f1497b6e
commit 9f22314c2a
3 changed files with 153 additions and 2 deletions

View File

@@ -245,7 +245,25 @@
</div>
<div class="card">
<h3>失败原因Top3</h3>
<h3>BMPA 失败原因Top3</h3>
@php $bmpaFailedReasonStats = $bmpaFailedReasonStats ?? []; @endphp
@if(count($bmpaFailedReasonStats) > 0)
<div class="muted mt-6">
@foreach($bmpaFailedReasonStats as $item)
@php $reason = (string) ($item['reason'] ?? ''); @endphp
<div>
<a class="link" href="{!! $makePlatformOrderUrl(['site_subscription_id' => $subscription->id, 'bmpa_failed_only' => '1', 'bmpa_error_keyword' => $reason]) !!}">{{ $reason }}</a>
<span class="muted">{{ $item['count'] }}</span>
</div>
@endforeach
</div>
@else
<div class="muted">暂无 BMPA 失败原因聚合数据</div>
@endif
</div>
<div class="card">
<h3>同步失败原因Top3</h3>
@php $failedReasonStats = $failedReasonStats ?? []; @endphp
@if(count($failedReasonStats) > 0)
<div class="muted mt-6">
@@ -258,7 +276,7 @@
@endforeach
</div>
@else
<div class="muted">暂无失败原因聚合数据</div>
<div class="muted">暂无同步失败原因聚合数据</div>
@endif
</div>
</div>