ui(dashboard): 平台定位(运营版)加入 mini bar 图形化
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user