Scope Frontdesk team members and add mailbox invite picker.
Deploy Ladill Frontdesk / deploy (push) Successful in 38s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-14 21:59:57 +00:00
co-authored by Cursor
parent a40e1f05c1
commit 1ec397d292
8 changed files with 237 additions and 15 deletions
+13 -3
View File
@@ -21,15 +21,25 @@ class UserProfileMenu
return [];
}
$showHub = StaffUx::showProductHub($user);
$showBilling = StaffUx::showBilling($user);
$items = [];
foreach ([
['label' => 'Home', 'path' => '', 'host' => 'home'],
['label' => 'Home', 'path' => '', 'host' => 'home', 'requires_hub' => true],
['label' => 'Profile', 'path' => 'profile'],
['label' => 'Account Settings', 'path' => 'account-settings'],
['label' => 'Dashboard', 'path' => 'dashboard'],
['label' => 'Billing', 'path' => 'billing'],
['label' => 'Billing', 'path' => 'billing', 'requires_billing' => true],
] as $link) {
if (! empty($link['requires_hub']) && ! $showHub) {
continue;
}
if (! empty($link['requires_billing']) && ! $showBilling) {
continue;
}
$href = self::platformUrl($link['host'] ?? 'account', $link['path']);
if (self::isCurrentMenuLink($link, $href)) {
@@ -43,7 +53,7 @@ class UserProfileMenu
];
}
if (Route::has((string) config('billing.wallet_balance_route', 'wallet.balance'))) {
if ($showBilling && Route::has((string) config('billing.wallet_balance_route', 'wallet.balance'))) {
$items[] = ['type' => 'wallet'];
}