Dashboard: expand governance mini bars to include reconcile mismatch and refund inconsistent
This commit is contained in:
@@ -277,10 +277,14 @@
|
||||
$poSyncFailed = (int) ($stats['platform_orders_sync_failed'] ?? 0);
|
||||
$poNoReceipt = (int) ($stats['platform_orders_paid_no_receipt'] ?? 0);
|
||||
$poRenewalMissing = (int) ($stats['platform_orders_renewal_missing_subscription'] ?? 0);
|
||||
$poReconcileMismatch = (int) ($stats['platform_orders_reconcile_mismatch'] ?? 0);
|
||||
$poRefundInconsistent = (int) ($stats['platform_orders_refund_inconsistent'] ?? 0);
|
||||
|
||||
$poSyncFailedPct = $poTotal > 0 ? min(100, max(0, round(($poSyncFailed / $poTotal) * 100, 1))) : 0;
|
||||
$poNoReceiptPct = $poTotal > 0 ? min(100, max(0, round(($poNoReceipt / $poTotal) * 100, 1))) : 0;
|
||||
$poRenewalMissingPct = $poTotal > 0 ? min(100, max(0, round(($poRenewalMissing / $poTotal) * 100, 1))) : 0;
|
||||
$poReconcileMismatchPct = $poTotal > 0 ? min(100, max(0, round(($poReconcileMismatch / $poTotal) * 100, 1))) : 0;
|
||||
$poRefundInconsistentPct = $poTotal > 0 ? min(100, max(0, round(($poRefundInconsistent / $poTotal) * 100, 1))) : 0;
|
||||
@endphp
|
||||
|
||||
@php
|
||||
@@ -347,6 +351,22 @@
|
||||
</div>
|
||||
<div class="adm-mini-bar-value">{{ $poRenewalMissingPct }}%({{ $poRenewalMissing }})</div>
|
||||
</a>
|
||||
|
||||
<a class="adm-mini-bar-row adm-mini-bar-row-link mt-6" data-role="dashboard-po-reconcile-mismatch-row" href="{!! \App\Support\BackUrl::withBack('/admin/platform-orders?reconcile_mismatch=1', $selfWithoutBack) !!}" aria-label="进入对账不一致订单集合">
|
||||
<div class="adm-mini-bar-label">对账不一致</div>
|
||||
<div class="adm-mini-bar" data-role="dashboard-po-reconcile-mismatch-bar" title="{{ $poReconcileMismatch }} / {{ $poTotal }}({{ $poReconcileMismatchPct }}%)">
|
||||
<span class="adm-mini-bar-fill" style="width: {{ $poReconcileMismatchPct }}%"></span>
|
||||
</div>
|
||||
<div class="adm-mini-bar-value">{{ $poReconcileMismatchPct }}%({{ $poReconcileMismatch }})</div>
|
||||
</a>
|
||||
|
||||
<a class="adm-mini-bar-row adm-mini-bar-row-link mt-6" data-role="dashboard-po-refund-inconsistent-row" href="{!! \App\Support\BackUrl::withBack('/admin/platform-orders?refund_inconsistent=1', $selfWithoutBack) !!}" aria-label="进入退款不一致订单集合">
|
||||
<div class="adm-mini-bar-label">退款不一致</div>
|
||||
<div class="adm-mini-bar" data-role="dashboard-po-refund-inconsistent-bar" title="{{ $poRefundInconsistent }} / {{ $poTotal }}({{ $poRefundInconsistentPct }}%)">
|
||||
<span class="adm-mini-bar-fill" style="width: {{ $poRefundInconsistentPct }}%"></span>
|
||||
</div>
|
||||
<div class="adm-mini-bar-value">{{ $poRefundInconsistentPct }}%({{ $poRefundInconsistent }})</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user