ui(dashboard): 平台定位(运营版)加入 mini bar 图形化

This commit is contained in:
萝卜
2026-03-17 07:27:15 +08:00
parent 90e9111471
commit 66a8319f0a
3 changed files with 119 additions and 12 deletions

View File

@@ -300,6 +300,10 @@ class DashboardController extends Controller
? min(100, max(0, round(($renewalSuccess30d / $renewalCreated30d) * 100, 1)))
: 0;
$ordersTotal7d = (int) PlatformOrder::query()
->whereBetween('created_at', [$trendStart, $trendEnd])
->count();
$funnelUnpaidPending7d = (int) PlatformOrder::query()
->whereBetween('created_at', [$trendStart, $trendEnd])
->where('payment_status', 'unpaid')
@@ -377,6 +381,7 @@ class DashboardController extends Controller
'renewal_created_30d' => $renewalCreated30d,
// 漏斗近7天
'orders_total_7d' => $ordersTotal7d,
'funnel_unpaid_pending_7d' => $funnelUnpaidPending7d,
'funnel_paid_7d' => $funnelPaid7d,
'funnel_paid_activated_7d' => $funnelPaidActivated7d,