Move Branches and Team into Settings as Pro features.
Deploy Ladill Frontdesk / deploy (push) Successful in 48s

Gate multi-branch and team management behind paid plans, nest their
routes under Settings, and remove them from the sidebar Administration
section.
This commit is contained in:
isaacclad
2026-07-16 08:13:42 +00:00
parent 59433f2b7b
commit 5526a10342
19 changed files with 377 additions and 50 deletions
+23
View File
@@ -459,4 +459,27 @@ class FrontdeskProTest extends TestCase
$this->assertDatabaseHas('frontdesk_branches', ['name' => 'Second Branch']);
}
public function test_pro_can_open_branches_and_team_settings(): void
{
$this->organization->update([
'settings' => array_merge($this->organization->settings ?? [], [
'plan' => 'pro',
'billed_branches' => 1,
'plan_expires_at' => now()->addMonth()->toIso8601String(),
]),
]);
$this->actingAs($this->owner)
->get(route('frontdesk.branches.index'))
->assertOk()
->assertSee('Branches')
->assertDontSee('Upgrade to Pro');
$this->actingAs($this->owner)
->get(route('frontdesk.members.index'))
->assertOk()
->assertSee('Team')
->assertDontSee('Upgrade to Pro');
}
}