refactor(dashboard): unify governance links via quickLinks
This commit is contained in:
@@ -16,12 +16,25 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
$platformOrdersQuickLinks = [
|
$platformOrdersQuickLinks = [
|
||||||
|
'platform_orders' => \App\Support\BackUrl::withBack('/admin/platform-orders', $selfWithoutBack),
|
||||||
|
|
||||||
|
// 平台订单(收费闭环)工作台入口:尽量保持与列表页筛选语义一致。
|
||||||
'unpaid_pending' => \App\Support\BackUrl::withBack('/admin/platform-orders?payment_status=unpaid&status=pending', $selfWithoutBack),
|
'unpaid_pending' => \App\Support\BackUrl::withBack('/admin/platform-orders?payment_status=unpaid&status=pending', $selfWithoutBack),
|
||||||
// 待生效:paid + pending,并显式锁定 sync_status=unsynced(排除同步失败等异常单)
|
// 待生效:paid + pending,并显式锁定 sync_status=unsynced(排除同步失败等异常单)
|
||||||
'paid_pending' => \App\Support\BackUrl::withBack('/admin/platform-orders?payment_status=paid&status=pending&sync_status=unsynced', $selfWithoutBack),
|
'paid_pending' => \App\Support\BackUrl::withBack('/admin/platform-orders?payment_status=paid&status=pending&sync_status=unsynced', $selfWithoutBack),
|
||||||
// 可同步(工作台口径):只看可同步 + 未同步(排除同步失败等异常单),与工作台统计口径一致。
|
// 可同步(工作台口径):只看可同步 + 未同步(排除同步失败等异常单),与工作台统计口径一致。
|
||||||
'syncable_only' => \App\Support\BackUrl::withBack('/admin/platform-orders?syncable_only=1&sync_status=unsynced', $selfWithoutBack),
|
'syncable_only' => \App\Support\BackUrl::withBack('/admin/platform-orders?syncable_only=1&sync_status=unsynced', $selfWithoutBack),
|
||||||
'sync_failed' => \App\Support\BackUrl::withBack('/admin/platform-orders?sync_status=failed', $selfWithoutBack),
|
'sync_failed' => \App\Support\BackUrl::withBack('/admin/platform-orders?sync_status=failed', $selfWithoutBack),
|
||||||
|
'renewal_missing_subscription' => \App\Support\BackUrl::withBack('/admin/platform-orders?renewal_missing_subscription=1', $selfWithoutBack),
|
||||||
|
'bmpa_failed' => \App\Support\BackUrl::withBack('/admin/platform-orders?bmpa_failed_only=1', $selfWithoutBack),
|
||||||
|
'paid_no_receipt' => \App\Support\BackUrl::withBack('/admin/platform-orders?payment_status=paid&receipt_status=none', $selfWithoutBack),
|
||||||
|
'reconcile_mismatch' => \App\Support\BackUrl::withBack('/admin/platform-orders?reconcile_mismatch=1', $selfWithoutBack),
|
||||||
|
'refund_inconsistent' => \App\Support\BackUrl::withBack('/admin/platform-orders?refund_inconsistent=1', $selfWithoutBack),
|
||||||
|
];
|
||||||
|
|
||||||
|
$subscriptionQuickLinks = [
|
||||||
|
'expiring_7d' => \App\Support\BackUrl::withBack('/admin/site-subscriptions?expiry=expiring_7d', $selfWithoutBack),
|
||||||
|
'expired' => \App\Support\BackUrl::withBack('/admin/site-subscriptions?expiry=expired', $selfWithoutBack),
|
||||||
];
|
];
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@@ -265,11 +278,11 @@
|
|||||||
<a class="btn btn-secondary btn-sm" href="{!! $platformOrdersQuickLinks['paid_pending'] !!}">待生效({{ (int) ($stats['platform_orders_paid_pending'] ?? 0) }})</a>
|
<a class="btn btn-secondary btn-sm" href="{!! $platformOrdersQuickLinks['paid_pending'] !!}">待生效({{ (int) ($stats['platform_orders_paid_pending'] ?? 0) }})</a>
|
||||||
<a class="btn btn-secondary btn-sm" href="{!! $platformOrdersQuickLinks['syncable_only'] !!}">可同步({{ (int) ($stats['platform_orders_syncable'] ?? 0) }})</a>
|
<a class="btn btn-secondary btn-sm" href="{!! $platformOrdersQuickLinks['syncable_only'] !!}">可同步({{ (int) ($stats['platform_orders_syncable'] ?? 0) }})</a>
|
||||||
<a class="btn btn-secondary btn-sm" href="{!! $platformOrdersQuickLinks['sync_failed'] !!}">同步失败({{ (int) ($stats['platform_orders_sync_failed'] ?? 0) }})</a>
|
<a class="btn btn-secondary btn-sm" href="{!! $platformOrdersQuickLinks['sync_failed'] !!}">同步失败({{ (int) ($stats['platform_orders_sync_failed'] ?? 0) }})</a>
|
||||||
<a class="btn btn-secondary btn-sm" href="{!! \App\Support\BackUrl::withBack('/admin/platform-orders?renewal_missing_subscription=1', $selfWithoutBack) !!}">续费缺订阅({{ (int) ($stats['platform_orders_renewal_missing_subscription'] ?? 0) }})</a>
|
<a class="btn btn-secondary btn-sm" href="{!! $platformOrdersQuickLinks['renewal_missing_subscription'] !!}">续费缺订阅({{ (int) ($stats['platform_orders_renewal_missing_subscription'] ?? 0) }})</a>
|
||||||
<a class="btn btn-secondary btn-sm" href="{!! \App\Support\BackUrl::withBack('/admin/platform-orders?bmpa_failed_only=1', $selfWithoutBack) !!}">BMPA失败({{ (int) ($stats['platform_orders_bmpa_failed'] ?? 0) }})</a>
|
<a class="btn btn-secondary btn-sm" href="{!! $platformOrdersQuickLinks['bmpa_failed'] !!}">BMPA失败({{ (int) ($stats['platform_orders_bmpa_failed'] ?? 0) }})</a>
|
||||||
<a class="btn btn-secondary btn-sm" href="{!! \App\Support\BackUrl::withBack('/admin/platform-orders?payment_status=paid&receipt_status=none', $selfWithoutBack) !!}">无回执({{ (int) ($stats['platform_orders_paid_no_receipt'] ?? 0) }})</a>
|
<a class="btn btn-secondary btn-sm" href="{!! $platformOrdersQuickLinks['paid_no_receipt'] !!}">无回执({{ (int) ($stats['platform_orders_paid_no_receipt'] ?? 0) }})</a>
|
||||||
<a class="btn btn-secondary btn-sm" href="{!! \App\Support\BackUrl::withBack('/admin/platform-orders?reconcile_mismatch=1', $selfWithoutBack) !!}">对账不一致({{ (int) ($stats['platform_orders_reconcile_mismatch'] ?? 0) }})</a>
|
<a class="btn btn-secondary btn-sm" href="{!! $platformOrdersQuickLinks['reconcile_mismatch'] !!}">对账不一致({{ (int) ($stats['platform_orders_reconcile_mismatch'] ?? 0) }})</a>
|
||||||
<a class="btn btn-secondary btn-sm" href="{!! \App\Support\BackUrl::withBack('/admin/platform-orders?refund_inconsistent=1', $selfWithoutBack) !!}">退款不一致({{ (int) ($stats['platform_orders_refund_inconsistent'] ?? 0) }})</a>
|
<a class="btn btn-secondary btn-sm" href="{!! $platformOrdersQuickLinks['refund_inconsistent'] !!}">退款不一致({{ (int) ($stats['platform_orders_refund_inconsistent'] ?? 0) }})</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@php
|
@php
|
||||||
@@ -338,7 +351,7 @@
|
|||||||
<div class="adm-mini-bar-value">{{ $poSyncFailedPct }}%({{ $poSyncFailed }})</div>
|
<div class="adm-mini-bar-value">{{ $poSyncFailedPct }}%({{ $poSyncFailed }})</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class="adm-mini-bar-row adm-mini-bar-row-link mt-6" data-role="dashboard-po-bmpa-failed-row" href="{!! \App\Support\BackUrl::withBack('/admin/platform-orders?bmpa_failed_only=1', $selfWithoutBack) !!}" aria-label="进入BMPA失败订单集合">
|
<a class="adm-mini-bar-row adm-mini-bar-row-link mt-6" data-role="dashboard-po-bmpa-failed-row" href="{!! $platformOrdersQuickLinks['bmpa_failed'] !!}" aria-label="进入BMPA失败订单集合">
|
||||||
<div class="adm-mini-bar-label">BMPA失败</div>
|
<div class="adm-mini-bar-label">BMPA失败</div>
|
||||||
<div class="adm-mini-bar" data-role="dashboard-po-bmpa-failed-bar" title="{{ $poBmpaFailed }} / {{ $poTotal }}({{ $poBmpaFailedPct }}%)">
|
<div class="adm-mini-bar" data-role="dashboard-po-bmpa-failed-bar" title="{{ $poBmpaFailed }} / {{ $poTotal }}({{ $poBmpaFailedPct }}%)">
|
||||||
<span class="adm-mini-bar-fill" style="width: {{ $poBmpaFailedPct }}%"></span>
|
<span class="adm-mini-bar-fill" style="width: {{ $poBmpaFailedPct }}%"></span>
|
||||||
@@ -346,7 +359,7 @@
|
|||||||
<div class="adm-mini-bar-value">{{ $poBmpaFailedPct }}%({{ $poBmpaFailed }})</div>
|
<div class="adm-mini-bar-value">{{ $poBmpaFailedPct }}%({{ $poBmpaFailed }})</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class="adm-mini-bar-row adm-mini-bar-row-link mt-6" data-role="dashboard-po-no-receipt-row" href="{!! \App\Support\BackUrl::withBack('/admin/platform-orders?payment_status=paid&receipt_status=none', $selfWithoutBack) !!}" aria-label="进入无回执订单集合">
|
<a class="adm-mini-bar-row adm-mini-bar-row-link mt-6" data-role="dashboard-po-no-receipt-row" href="{!! $platformOrdersQuickLinks['paid_no_receipt'] !!}" aria-label="进入无回执订单集合">
|
||||||
<div class="adm-mini-bar-label">无回执</div>
|
<div class="adm-mini-bar-label">无回执</div>
|
||||||
<div class="adm-mini-bar" data-role="dashboard-po-no-receipt-bar" title="{{ $poNoReceipt }} / {{ $poTotal }}({{ $poNoReceiptPct }}%)">
|
<div class="adm-mini-bar" data-role="dashboard-po-no-receipt-bar" title="{{ $poNoReceipt }} / {{ $poTotal }}({{ $poNoReceiptPct }}%)">
|
||||||
<span class="adm-mini-bar-fill" style="width: {{ $poNoReceiptPct }}%"></span>
|
<span class="adm-mini-bar-fill" style="width: {{ $poNoReceiptPct }}%"></span>
|
||||||
@@ -354,7 +367,7 @@
|
|||||||
<div class="adm-mini-bar-value">{{ $poNoReceiptPct }}%({{ $poNoReceipt }})</div>
|
<div class="adm-mini-bar-value">{{ $poNoReceiptPct }}%({{ $poNoReceipt }})</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class="adm-mini-bar-row adm-mini-bar-row-link mt-6" data-role="dashboard-po-renewal-missing-row" href="{!! \App\Support\BackUrl::withBack('/admin/platform-orders?renewal_missing_subscription=1', $selfWithoutBack) !!}" aria-label="进入续费缺订阅订单集合">
|
<a class="adm-mini-bar-row adm-mini-bar-row-link mt-6" data-role="dashboard-po-renewal-missing-row" href="{!! $platformOrdersQuickLinks['renewal_missing_subscription'] !!}" aria-label="进入续费缺订阅订单集合">
|
||||||
<div class="adm-mini-bar-label">续费缺订阅</div>
|
<div class="adm-mini-bar-label">续费缺订阅</div>
|
||||||
<div class="adm-mini-bar" data-role="dashboard-po-renewal-missing-bar" title="{{ $poRenewalMissing }} / {{ $poTotal }}({{ $poRenewalMissingPct }}%)">
|
<div class="adm-mini-bar" data-role="dashboard-po-renewal-missing-bar" title="{{ $poRenewalMissing }} / {{ $poTotal }}({{ $poRenewalMissingPct }}%)">
|
||||||
<span class="adm-mini-bar-fill" style="width: {{ $poRenewalMissingPct }}%"></span>
|
<span class="adm-mini-bar-fill" style="width: {{ $poRenewalMissingPct }}%"></span>
|
||||||
@@ -362,7 +375,7 @@
|
|||||||
<div class="adm-mini-bar-value">{{ $poRenewalMissingPct }}%({{ $poRenewalMissing }})</div>
|
<div class="adm-mini-bar-value">{{ $poRenewalMissingPct }}%({{ $poRenewalMissing }})</div>
|
||||||
</a>
|
</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="进入对账不一致订单集合">
|
<a class="adm-mini-bar-row adm-mini-bar-row-link mt-6" data-role="dashboard-po-reconcile-mismatch-row" href="{!! $platformOrdersQuickLinks['reconcile_mismatch'] !!}" aria-label="进入对账不一致订单集合">
|
||||||
<div class="adm-mini-bar-label">对账不一致</div>
|
<div class="adm-mini-bar-label">对账不一致</div>
|
||||||
<div class="adm-mini-bar" data-role="dashboard-po-reconcile-mismatch-bar" title="{{ $poReconcileMismatch }} / {{ $poTotal }}({{ $poReconcileMismatchPct }}%)">
|
<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>
|
<span class="adm-mini-bar-fill" style="width: {{ $poReconcileMismatchPct }}%"></span>
|
||||||
@@ -370,7 +383,7 @@
|
|||||||
<div class="adm-mini-bar-value">{{ $poReconcileMismatchPct }}%({{ $poReconcileMismatch }})</div>
|
<div class="adm-mini-bar-value">{{ $poReconcileMismatchPct }}%({{ $poReconcileMismatch }})</div>
|
||||||
</a>
|
</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="进入退款不一致订单集合">
|
<a class="adm-mini-bar-row adm-mini-bar-row-link mt-6" data-role="dashboard-po-refund-inconsistent-row" href="{!! $platformOrdersQuickLinks['refund_inconsistent'] !!}" aria-label="进入退款不一致订单集合">
|
||||||
<div class="adm-mini-bar-label">退款不一致</div>
|
<div class="adm-mini-bar-label">退款不一致</div>
|
||||||
<div class="adm-mini-bar" data-role="dashboard-po-refund-inconsistent-bar" title="{{ $poRefundInconsistent }} / {{ $poTotal }}({{ $poRefundInconsistentPct }}%)">
|
<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>
|
<span class="adm-mini-bar-fill" style="width: {{ $poRefundInconsistentPct }}%"></span>
|
||||||
@@ -383,8 +396,8 @@
|
|||||||
<div class="mt-12">
|
<div class="mt-12">
|
||||||
<div class="muted">订阅到期治理:</div>
|
<div class="muted">订阅到期治理:</div>
|
||||||
<div class="actions mt-8">
|
<div class="actions mt-8">
|
||||||
<a class="btn btn-secondary btn-sm" href="{!! \App\Support\BackUrl::withBack('/admin/site-subscriptions?expiry=expiring_7d', $selfWithoutBack) !!}">7天内到期({{ (int) ($stats['site_subscriptions_expiring_7d'] ?? 0) }})</a>
|
<a class="btn btn-secondary btn-sm" href="{!! $subscriptionQuickLinks['expiring_7d'] !!}">7天内到期({{ (int) ($stats['site_subscriptions_expiring_7d'] ?? 0) }})</a>
|
||||||
<a class="btn btn-secondary btn-sm" href="{!! \App\Support\BackUrl::withBack('/admin/site-subscriptions?expiry=expired', $selfWithoutBack) !!}">已过期({{ (int) ($stats['site_subscriptions_expired'] ?? 0) }})</a>
|
<a class="btn btn-secondary btn-sm" href="{!! $subscriptionQuickLinks['expired'] !!}">已过期({{ (int) ($stats['site_subscriptions_expired'] ?? 0) }})</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@php
|
@php
|
||||||
@@ -399,7 +412,7 @@
|
|||||||
<div class="mt-10" data-role="dashboard-sub-expiry-bars">
|
<div class="mt-10" data-role="dashboard-sub-expiry-bars">
|
||||||
<div class="muted muted-xs">占比(相对订阅总量 {{ $subTotal }})</div>
|
<div class="muted muted-xs">占比(相对订阅总量 {{ $subTotal }})</div>
|
||||||
|
|
||||||
<a class="adm-mini-bar-row adm-mini-bar-row-link mt-6" data-role="dashboard-sub-expiring-7d-row" href="{!! \App\Support\BackUrl::withBack('/admin/site-subscriptions?expiry=expiring_7d', $selfWithoutBack) !!}" aria-label="进入7天内到期订阅集合">
|
<a class="adm-mini-bar-row adm-mini-bar-row-link mt-6" data-role="dashboard-sub-expiring-7d-row" href="{!! $subscriptionQuickLinks['expiring_7d'] !!}" aria-label="进入7天内到期订阅集合">
|
||||||
<div class="adm-mini-bar-label">7天内到期</div>
|
<div class="adm-mini-bar-label">7天内到期</div>
|
||||||
<div class="adm-mini-bar" data-role="dashboard-sub-expiring-7d-bar" title="{{ $subExpiring7d }} / {{ $subTotal }}({{ $pctExpiring7d }}%)">
|
<div class="adm-mini-bar" data-role="dashboard-sub-expiring-7d-bar" title="{{ $subExpiring7d }} / {{ $subTotal }}({{ $pctExpiring7d }}%)">
|
||||||
<span class="adm-mini-bar-fill" style="width: {{ $pctExpiring7d }}%"></span>
|
<span class="adm-mini-bar-fill" style="width: {{ $pctExpiring7d }}%"></span>
|
||||||
@@ -407,7 +420,7 @@
|
|||||||
<div class="adm-mini-bar-value">{{ $pctExpiring7d }}%({{ $subExpiring7d }})</div>
|
<div class="adm-mini-bar-value">{{ $pctExpiring7d }}%({{ $subExpiring7d }})</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class="adm-mini-bar-row adm-mini-bar-row-link mt-6" data-role="dashboard-sub-expired-row" href="{!! \App\Support\BackUrl::withBack('/admin/site-subscriptions?expiry=expired', $selfWithoutBack) !!}" aria-label="进入已过期订阅集合">
|
<a class="adm-mini-bar-row adm-mini-bar-row-link mt-6" data-role="dashboard-sub-expired-row" href="{!! $subscriptionQuickLinks['expired'] !!}" aria-label="进入已过期订阅集合">
|
||||||
<div class="adm-mini-bar-label">已过期</div>
|
<div class="adm-mini-bar-label">已过期</div>
|
||||||
<div class="adm-mini-bar" data-role="dashboard-sub-expired-bar" title="{{ $subExpired }} / {{ $subTotal }}({{ $pctExpired }}%)">
|
<div class="adm-mini-bar" data-role="dashboard-sub-expired-bar" title="{{ $subExpired }} / {{ $subTotal }}({{ $pctExpired }}%)">
|
||||||
<span class="adm-mini-bar-fill" style="width: {{ $pctExpired }}%"></span>
|
<span class="adm-mini-bar-fill" style="width: {{ $pctExpired }}%"></span>
|
||||||
@@ -437,10 +450,7 @@
|
|||||||
<div class="card" data-role="dashboard-card-recent-platform-orders">
|
<div class="card" data-role="dashboard-card-recent-platform-orders">
|
||||||
<div class="flex-between">
|
<div class="flex-between">
|
||||||
<h3 class="mt-0">最近平台订单</h3>
|
<h3 class="mt-0">最近平台订单</h3>
|
||||||
@php
|
<a class="muted" href="{!! $platformOrdersQuickLinks['platform_orders'] !!}">查看全部</a>
|
||||||
$platformOrdersIndexUrl = \App\Support\BackUrl::withBack('/admin/platform-orders', $selfWithoutBack);
|
|
||||||
@endphp
|
|
||||||
<a class="muted" href="{!! $platformOrdersIndexUrl !!}">查看全部</a>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table data-role="recent-platform-orders-table">
|
<table data-role="recent-platform-orders-table">
|
||||||
@@ -462,13 +472,13 @@
|
|||||||
|| (data_get($po->meta, 'payment_receipts.0.amount') !== null);
|
|| (data_get($po->meta, 'payment_receipts.0.amount') !== null);
|
||||||
$fixReceiptUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'add-payment-receipt');
|
$fixReceiptUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'add-payment-receipt');
|
||||||
$fixRefundReceiptUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'add-refund-receipt');
|
$fixRefundReceiptUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'add-refund-receipt');
|
||||||
$noReceiptListUrl = \App\Support\BackUrl::withBack('/admin/platform-orders?payment_status=paid&receipt_status=none', $selfWithoutBack);
|
$noReceiptListUrl = $platformOrdersQuickLinks['paid_no_receipt'];
|
||||||
|
|
||||||
$syncErrMsg = (string) (data_get($po->meta, 'subscription_activation_error.message') ?? '');
|
$syncErrMsg = (string) (data_get($po->meta, 'subscription_activation_error.message') ?? '');
|
||||||
$bmpaErrMsg = (string) (data_get($po->meta, 'batch_mark_paid_and_activate_error.message') ?? '');
|
$bmpaErrMsg = (string) (data_get($po->meta, 'batch_mark_paid_and_activate_error.message') ?? '');
|
||||||
|
|
||||||
$syncFailedListUrl = \App\Support\BackUrl::withBack('/admin/platform-orders?sync_status=failed', $selfWithoutBack);
|
$syncFailedListUrl = $platformOrdersQuickLinks['sync_failed'];
|
||||||
$bmpaFailedListUrl = \App\Support\BackUrl::withBack('/admin/platform-orders?bmpa_failed_only=1', $selfWithoutBack);
|
$bmpaFailedListUrl = $platformOrdersQuickLinks['bmpa_failed'];
|
||||||
|
|
||||||
// 扫描行:直达治理锚点(与下方提示块的链接口径保持一致)
|
// 扫描行:直达治理锚点(与下方提示块的链接口径保持一致)
|
||||||
$scanGoReconcileUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'payment-receipts');
|
$scanGoReconcileUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'payment-receipts');
|
||||||
@@ -625,13 +635,10 @@
|
|||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@if((string) $po->status === 'pending' && (string) $po->payment_status === 'paid' && $po->isReconcileMismatch())
|
@if((string) $po->status === 'pending' && (string) $po->payment_status === 'paid' && $po->isReconcileMismatch())
|
||||||
@php
|
|
||||||
$reconcileMismatchUrl = \App\Support\BackUrl::withBack('/admin/platform-orders?reconcile_mismatch=1', $selfWithoutBack);
|
|
||||||
@endphp
|
|
||||||
<div class="muted text-danger muted-xs row-warn" data-role="recent-order-reconcile-mismatch-hint" title="已付 ¥{{ number_format((float) $po->paid_amount, 2) }}|回执 ¥{{ number_format((float) $po->receiptTotal(), 2) }}">
|
<div class="muted text-danger muted-xs row-warn" data-role="recent-order-reconcile-mismatch-hint" title="已付 ¥{{ number_format((float) $po->paid_amount, 2) }}|回执 ¥{{ number_format((float) $po->receiptTotal(), 2) }}">
|
||||||
<span class="row-warn-prefix">对账不一致</span>
|
<span class="row-warn-prefix">对账不一致</span>
|
||||||
<span class="muted">|</span>
|
<span class="muted">|</span>
|
||||||
<a class="link" href="{!! $reconcileMismatchUrl !!}">进入集合</a>
|
<a class="link" href="{!! $platformOrdersQuickLinks['reconcile_mismatch'] !!}">进入集合</a>
|
||||||
<span class="muted">|</span>
|
<span class="muted">|</span>
|
||||||
<a class="link" href="{!! $scanGoReconcileUrl !!}">去对账</a>
|
<a class="link" href="{!! $scanGoReconcileUrl !!}">去对账</a>
|
||||||
<span class="muted">|</span>
|
<span class="muted">|</span>
|
||||||
@@ -639,13 +646,10 @@
|
|||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@if($po->isRefundInconsistent())
|
@if($po->isRefundInconsistent())
|
||||||
@php
|
|
||||||
$refundInconsistentUrl = \App\Support\BackUrl::withBack('/admin/platform-orders?refund_inconsistent=1', $selfWithoutBack);
|
|
||||||
@endphp
|
|
||||||
<div class="muted text-danger muted-xs row-warn" data-role="recent-order-refund-inconsistent-hint" title="已付 ¥{{ number_format((float) $po->paid_amount, 2) }}|退款 ¥{{ number_format((float) $po->refundTotal(), 2) }}">
|
<div class="muted text-danger muted-xs row-warn" data-role="recent-order-refund-inconsistent-hint" title="已付 ¥{{ number_format((float) $po->paid_amount, 2) }}|退款 ¥{{ number_format((float) $po->refundTotal(), 2) }}">
|
||||||
<span class="row-warn-prefix">退款不一致</span>
|
<span class="row-warn-prefix">退款不一致</span>
|
||||||
<span class="muted">|</span>
|
<span class="muted">|</span>
|
||||||
<a class="link" href="{!! $refundInconsistentUrl !!}">进入集合</a>
|
<a class="link" href="{!! $platformOrdersQuickLinks['refund_inconsistent'] !!}">进入集合</a>
|
||||||
<span class="muted">|</span>
|
<span class="muted">|</span>
|
||||||
<a class="link" href="{!! $scanGoRefundUrl !!}">去核对退款</a>
|
<a class="link" href="{!! $scanGoRefundUrl !!}">去核对退款</a>
|
||||||
<span class="muted">|</span>
|
<span class="muted">|</span>
|
||||||
@@ -653,13 +657,10 @@
|
|||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@if((string) $po->order_type === 'renewal' && empty($po->site_subscription_id))
|
@if((string) $po->order_type === 'renewal' && empty($po->site_subscription_id))
|
||||||
@php
|
|
||||||
$renewalMissingSubscriptionUrl = \App\Support\BackUrl::withBack('/admin/platform-orders?renewal_missing_subscription=1', $selfWithoutBack);
|
|
||||||
@endphp
|
|
||||||
<div class="muted text-danger muted-xs row-warn" data-role="recent-order-renewal-missing-subscription-hint" title="站点 #{{ (int) ($po->merchant_id ?? 0) }}|套餐 #{{ (int) ($po->plan_id ?? 0) }}|site_subscription_id 为空">
|
<div class="muted text-danger muted-xs row-warn" data-role="recent-order-renewal-missing-subscription-hint" title="站点 #{{ (int) ($po->merchant_id ?? 0) }}|套餐 #{{ (int) ($po->plan_id ?? 0) }}|site_subscription_id 为空">
|
||||||
<span class="row-warn-prefix">续费缺订阅</span>
|
<span class="row-warn-prefix">续费缺订阅</span>
|
||||||
<span class="muted">|</span>
|
<span class="muted">|</span>
|
||||||
<a class="link" href="{!! $renewalMissingSubscriptionUrl !!}">进入集合</a>
|
<a class="link" href="{!! $platformOrdersQuickLinks['renewal_missing_subscription'] !!}">进入集合</a>
|
||||||
<span class="muted">|</span>
|
<span class="muted">|</span>
|
||||||
<a class="link" href="{!! $scanGoRelationUrl !!}">去关联订阅</a>
|
<a class="link" href="{!! $scanGoRelationUrl !!}">去关联订阅</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user