feat(admin): 仪表盘占比卡套餐名可跳平台订单并回跳
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user