diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php
index 7ce7d58..e4afa85 100644
--- a/resources/views/admin/platform_orders/index.blade.php
+++ b/resources/views/admin/platform_orders/index.blade.php
@@ -1066,11 +1066,11 @@
{{ $order->order_type }} |
{{ $statusLabels[$order->status] ?? $order->status }}
- {{ $order->status }}
+ {{ $order->status }}
|
{{ $paymentStatusLabels[$order->payment_status] ?? $order->payment_status }}
- {{ $order->payment_status }}
+ {{ $order->payment_status }}
@php
$hasReceiptEvidenceRow = (data_get($order->meta, 'payment_summary.total_amount') !== null)
diff --git a/tests/Feature/AdminPlatformOrderIndexStatusMetaUsesMutedXsTest.php b/tests/Feature/AdminPlatformOrderIndexStatusMetaUsesMutedXsTest.php
new file mode 100644
index 0000000..2bf4cbd
--- /dev/null
+++ b/tests/Feature/AdminPlatformOrderIndexStatusMetaUsesMutedXsTest.php
@@ -0,0 +1,65 @@
+seed();
+
+ $this->post('/admin/login', [
+ 'email' => 'platform.admin@demo.local',
+ 'password' => 'Platform@123456',
+ ])->assertRedirect('/admin');
+ }
+
+ public function test_status_and_payment_status_raw_code_use_muted_xs(): void
+ {
+ $this->loginAsPlatformAdmin();
+
+ $merchant = Merchant::query()->firstOrFail();
+
+ $plan = Plan::query()->create([
+ 'code' => 'po_index_status_muted_xs_plan',
+ 'name' => '平台订单列表状态二行样式测试套餐',
+ 'billing_cycle' => 'monthly',
+ 'price' => 10,
+ 'list_price' => 10,
+ 'status' => 'active',
+ 'sort' => 10,
+ 'published_at' => now(),
+ ]);
+
+ PlatformOrder::query()->create([
+ 'merchant_id' => $merchant->id,
+ 'plan_id' => $plan->id,
+ 'order_no' => 'PO_INDEX_STATUS_MUTED_XS_0001',
+ 'order_type' => 'new_purchase',
+ 'status' => 'pending',
+ 'payment_status' => 'unpaid',
+ 'plan_name' => $plan->name,
+ 'billing_cycle' => $plan->billing_cycle,
+ 'period_months' => 1,
+ 'quantity' => 1,
+ 'payable_amount' => 10,
+ 'paid_amount' => 0,
+ 'placed_at' => now(),
+ 'meta' => [],
+ ]);
+
+ $res = $this->get('/admin/platform-orders');
+ $res->assertOk();
+
+ $res->assertSee('pending ', false);
+ $res->assertSee('unpaid ', false);
+ }
+}
|