ui(dashboard): integrate northstar bars and text spec into one block
This commit is contained in:
@@ -536,39 +536,6 @@
|
|||||||
$goSyncFailed = (int) ($ops['govern_sync_failed'] ?? 0);
|
$goSyncFailed = (int) ($ops['govern_sync_failed'] ?? 0);
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
<details class="mt-10" data-role="platform-ops-northstar-details" data-storage-key="admin.dashboard.platform_ops_northstar_details">
|
|
||||||
<summary class="muted"><strong>北极星指标</strong> <span class="muted muted-xs">(点击展开文字口径)</span></summary>
|
|
||||||
|
|
||||||
<table class="mt-10">
|
|
||||||
<tr>
|
|
||||||
<th>近30天已收款</th>
|
|
||||||
<td>
|
|
||||||
<a class="link" href="{!! (string) ($opsLinks['revenue_30d_paid_orders'] ?? $billingEntryLinks['platform_orders']) !!}">
|
|
||||||
¥{{ number_format($paidRevenue30d, 2) }}
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>活跃付费站点</th>
|
|
||||||
<td>
|
|
||||||
<a class="link" href="{!! (string) ($opsLinks['active_paid_merchants_subscriptions'] ?? $billingEntryLinks['site_subscriptions']) !!}">
|
|
||||||
{{ $activePaidMerchants }}
|
|
||||||
</a>
|
|
||||||
<span class="muted muted-xs">(以“已生效且未到期订阅”估算)</span>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>续费成功率(30天)</th>
|
|
||||||
<td>
|
|
||||||
<a class="link" href="{!! (string) ($opsLinks['renewal_orders_30d'] ?? $billingEntryLinks['platform_orders']) !!}">
|
|
||||||
{{ $renewalRate30d }}%
|
|
||||||
</a>
|
|
||||||
<span class="muted muted-xs">({{ $renewalSuccess30d }} / {{ $renewalCreated30d }})</span>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</details>
|
|
||||||
|
|
||||||
@php
|
@php
|
||||||
// 北极星指标图形化:给运营“规模感/健康感”,但不引入额外分类维度。
|
// 北极星指标图形化:给运营“规模感/健康感”,但不引入额外分类维度。
|
||||||
$merchantsTotal = (int) ($stats['merchants'] ?? 0);
|
$merchantsTotal = (int) ($stats['merchants'] ?? 0);
|
||||||
@@ -576,7 +543,10 @@
|
|||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
<div class="mt-10" data-role="platform-ops-northstar-bars">
|
<div class="mt-10" data-role="platform-ops-northstar-bars">
|
||||||
<div class="muted"><strong>北极星指标</strong></div>
|
<div class="muted">
|
||||||
|
<strong>北极星指标</strong>
|
||||||
|
<span class="muted muted-xs">(点击展开口径说明)</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
@include('admin.components.mini_bar_row', [
|
@include('admin.components.mini_bar_row', [
|
||||||
'class' => 'mt-6',
|
'class' => 'mt-6',
|
||||||
@@ -602,7 +572,40 @@
|
|||||||
'value' => $renewalRate30d . '%',
|
'value' => $renewalRate30d . '%',
|
||||||
])
|
])
|
||||||
|
|
||||||
<div class="muted muted-xs mt-6">说明:付费渗透 = 活跃付费站点 / 站点总数;续费成功率按近30天续费单计算。</div>
|
<details class="mt-10" data-role="platform-ops-northstar-details" data-storage-key="admin.dashboard.platform_ops_northstar_details">
|
||||||
|
<summary class="muted">北极星指标口径说明</summary>
|
||||||
|
|
||||||
|
<table class="mt-10">
|
||||||
|
<tr>
|
||||||
|
<th>近30天已收款</th>
|
||||||
|
<td>
|
||||||
|
<a class="link" href="{!! (string) ($opsLinks['revenue_30d_paid_orders'] ?? $billingEntryLinks['platform_orders']) !!}">
|
||||||
|
¥{{ number_format($paidRevenue30d, 2) }}
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>活跃付费站点</th>
|
||||||
|
<td>
|
||||||
|
<a class="link" href="{!! (string) ($opsLinks['active_paid_merchants_subscriptions'] ?? $billingEntryLinks['site_subscriptions']) !!}">
|
||||||
|
{{ $activePaidMerchants }}
|
||||||
|
</a>
|
||||||
|
<span class="muted muted-xs">(以“已生效且未到期订阅”估算)</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>续费成功率(30天)</th>
|
||||||
|
<td>
|
||||||
|
<a class="link" href="{!! (string) ($opsLinks['renewal_orders_30d'] ?? $billingEntryLinks['platform_orders']) !!}">
|
||||||
|
{{ $renewalRate30d }}%
|
||||||
|
</a>
|
||||||
|
<span class="muted muted-xs">({{ $renewalSuccess30d }} / {{ $renewalCreated30d }})</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<div class="muted muted-xs mt-6">说明:付费渗透 = 活跃付费站点 / 站点总数;续费成功率按近30天续费单计算。</div>
|
||||||
|
</details>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@php
|
@php
|
||||||
|
|||||||
Reference in New Issue
Block a user