refactor(dashboard): 口径说明抽为metric_explain组件减少重复
This commit is contained in:
13
resources/views/admin/components/metric_explain.blade.php
Normal file
13
resources/views/admin/components/metric_explain.blade.php
Normal file
@@ -0,0 +1,13 @@
|
||||
@php
|
||||
$items = $items ?? [];
|
||||
$title = $title ?? '口径说明';
|
||||
@endphp
|
||||
|
||||
@if(is_array($items) && count($items) > 0)
|
||||
<div class="muted muted-xs">
|
||||
<strong>{{ $title }}:</strong>
|
||||
@foreach($items as $i => $text)
|
||||
<span>{{ $text }}@if($i < count($items) - 1);@endif</span>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
@@ -349,7 +349,13 @@
|
||||
|
||||
<div class="mt-10" data-role="dashboard-po-funnel-bars">
|
||||
<div class="muted muted-xs">收费主链漏斗(相对平台订单总量 {{ $poTotal }})</div>
|
||||
<div class="muted muted-xs">口径说明:待支付=unpaid+pending;待生效=paid+pending+unsynced;可同步=paid+activated+unsynced+非失败(并排除续费缺订阅脏数据)。</div>
|
||||
@include('admin.components.metric_explain', [
|
||||
'items' => [
|
||||
'待支付=unpaid+pending',
|
||||
'待生效=paid+pending+unsynced',
|
||||
'可同步=paid+activated+unsynced+非失败(并排除续费缺订阅脏数据)',
|
||||
],
|
||||
])
|
||||
|
||||
@include('admin.components.mini_bar_row', [
|
||||
'class' => 'mt-6',
|
||||
@@ -390,7 +396,16 @@
|
||||
|
||||
<div class="mt-10" data-role="dashboard-po-governance-bars">
|
||||
<div class="muted muted-xs">治理风险占比(相对平台订单总量 {{ $poTotal }})</div>
|
||||
<div class="muted muted-xs">口径说明:同步失败=meta.subscription_activation_error.message 存在;BMPA失败=meta.batch_mark_paid_and_activate_error.message 存在;无回执=已支付但缺 payment_receipts;对账不一致=回执汇总金额与 paid_amount 不一致;退款不一致=退款汇总与退款状态不一致;续费缺订阅=renewal 但 site_subscription_id 为空。</div>
|
||||
@include('admin.components.metric_explain', [
|
||||
'items' => [
|
||||
'同步失败=meta.subscription_activation_error.message 存在',
|
||||
'BMPA失败=meta.batch_mark_paid_and_activate_error.message 存在',
|
||||
'无回执=已支付但缺 payment_receipts',
|
||||
'对账不一致=回执汇总金额与 paid_amount 不一致',
|
||||
'退款不一致=退款汇总与退款状态不一致',
|
||||
'续费缺订阅=renewal 但 site_subscription_id 为空',
|
||||
],
|
||||
])
|
||||
|
||||
@include('admin.components.mini_bar_row', [
|
||||
'class' => 'mt-6',
|
||||
|
||||
Reference in New Issue
Block a user