Add practitioners admin and staff-scoped Care UX.
Deploy Ladill Care / deploy (push) Successful in 43s

Hospital admins can manage assignable doctors and invite team members
from Ladill mailboxes; invited staff only see Care tools they need.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-14 21:59:39 +00:00
co-authored by Cursor
parent 898275ec05
commit 3a7bd14b2b
19 changed files with 684 additions and 18 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'];
}