feat(admin): 仪表盘占比卡套餐名可跳平台订单并回跳

This commit is contained in:
萝卜
2026-03-15 19:18:52 +08:00
parent 7f59bb9985
commit 4a3e6942e6
2 changed files with 40 additions and 1 deletions

View File

@@ -183,8 +183,14 @@
$pct = $totalOrders > 0 ? round(($count / $totalOrders) * 100, 1) : 0;
$planName = (string) (($planIdToName[$planId] ?? '') ?: ('#' . $planId));
@endphp
@php
$planOrdersUrl = \App\Support\BackUrl::withBack(
'/admin/platform-orders?' . \Illuminate\Support\Arr::query(['plan_id' => $planId]),
$selfWithoutBack
);
@endphp
<tr>
<td>{{ $planName }}</td>
<td><a class="link" href="{!! $planOrdersUrl !!}">{{ $planName }}</a></td>
<td>{{ $count }}</td>
<td>{{ $pct }}%</td>
</tr>