PlatformOrder show: render order_type label with code

This commit is contained in:
萝卜
2026-03-15 01:29:09 +00:00
parent 9a38fa84f3
commit 4773c2a8c7
3 changed files with 69 additions and 1 deletions

View File

@@ -335,6 +335,7 @@ class PlatformOrderController extends Controller
->values(),
'statusLabels' => $this->statusLabels(),
'paymentStatusLabels' => $this->paymentStatusLabels(),
'orderTypeLabels' => $this->orderTypeLabels(),
'summaryStats' => [
'total_orders' => (clone $baseQuery)->count(),
'paid_orders' => (clone $baseQuery)->where('payment_status', 'paid')->count(),
@@ -461,6 +462,7 @@ class PlatformOrderController extends Controller
'order' => $order,
'statusLabels' => $this->statusLabels(),
'paymentStatusLabels' => $this->paymentStatusLabels(),
'orderTypeLabels' => $this->orderTypeLabels(),
]);
}