@if(! $batchMarkExpiredEnabled)
-
提示:{{ $batchMarkExpiredReason }}
+
@endif
diff --git a/tests/Feature/AdminSiteSubscriptionIndexBatchMarkExpiredBlockedHintShouldIncludeGoExpiredLinkTest.php b/tests/Feature/AdminSiteSubscriptionIndexBatchMarkExpiredBlockedHintShouldIncludeGoExpiredLinkTest.php
new file mode 100644
index 0000000..4a97b4a
--- /dev/null
+++ b/tests/Feature/AdminSiteSubscriptionIndexBatchMarkExpiredBlockedHintShouldIncludeGoExpiredLinkTest.php
@@ -0,0 +1,36 @@
+seed();
+
+ $this->post('/admin/login', [
+ 'email' => 'platform.admin@demo.local',
+ 'password' => 'Platform@123456',
+ ])->assertRedirect('/admin');
+ }
+
+ public function test_blocked_hint_should_include_link_to_expired_scope(): void
+ {
+ $this->loginAsPlatformAdmin();
+
+ // 不在 expiry=expired 集合时,按钮应禁用并出现 blocked hint + 一键跳转。
+ $res = $this->get('/admin/site-subscriptions');
+ $res->assertOk();
+
+ $html = (string) $res->getContent();
+
+ $this->assertStringContainsString('data-role="batch-mark-expired-blocked-hint"', $html);
+ $this->assertStringContainsString('切到已过期集合', $html);
+ $this->assertStringContainsString('expiry=expired', $html);
+ }
+}
diff --git a/tests/Feature/AdminSiteSubscriptionIndexBatchMarkExpiredFormShouldKeepEndsAtRangeFiltersTest.php b/tests/Feature/AdminSiteSubscriptionIndexBatchMarkExpiredFormShouldKeepEndsAtRangeFiltersTest.php
new file mode 100644
index 0000000..ebf23e4
--- /dev/null
+++ b/tests/Feature/AdminSiteSubscriptionIndexBatchMarkExpiredFormShouldKeepEndsAtRangeFiltersTest.php
@@ -0,0 +1,32 @@
+seed();
+
+ $this->post('/admin/login', [
+ 'email' => 'platform.admin@demo.local',
+ 'password' => 'Platform@123456',
+ ])->assertRedirect('/admin');
+ }
+
+ public function test_batch_mark_expired_form_should_keep_ends_at_range_filters(): void
+ {
+ $this->loginAsPlatformAdmin();
+
+ $res = $this->get('/admin/site-subscriptions?expiry=expired&ends_from=2026-03-01&ends_to=2026-03-31');
+ $res->assertOk();
+
+ $res->assertSee('name="ends_from" value="2026-03-01"', false);
+ $res->assertSee('name="ends_to" value="2026-03-31"', false);
+ }
+}