Move Branches and Team into settings; drop wallet from plan CTAs.
Deploy Ladill Care / deploy (push) Successful in 1m24s
Deploy Ladill Care / deploy (push) Successful in 1m24s
Match Frontdesk by linking branches and team from settings instead of the admin sidebar, and simplify Care plan upgrade button copy.
This commit is contained in:
@@ -24,7 +24,9 @@ class SettingsController extends Controller
|
||||
{
|
||||
$this->authorizeAbility($request, 'settings.view');
|
||||
$organization = $this->organization($request);
|
||||
$canManage = app(CarePermissions::class)->can($this->member($request), 'settings.manage');
|
||||
$member = $this->member($request);
|
||||
$permissions = app(CarePermissions::class);
|
||||
$canManage = $permissions->can($member, 'settings.manage');
|
||||
$credential = $credentials->forOrganization($organization);
|
||||
|
||||
$branchCount = Branch::owned($this->ownerRef($request))
|
||||
@@ -32,11 +34,15 @@ class SettingsController extends Controller
|
||||
->count();
|
||||
|
||||
$plans = app(PlanService::class);
|
||||
$hasPaidPlan = $plans->hasPaidPlan($organization);
|
||||
|
||||
return view('care.settings.edit', [
|
||||
'organization' => $organization,
|
||||
'canManage' => $canManage,
|
||||
'branchCount' => $branchCount,
|
||||
'canViewBranches' => $permissions->can($member, 'admin.branches.view'),
|
||||
'canViewTeam' => $permissions->can($member, 'admin.members.view'),
|
||||
'hasPaidPlan' => $hasPaidPlan,
|
||||
'canUseQueueIntegration' => $plans->canUseQueueIntegration($organization),
|
||||
'messagingSmsReady' => $credential->hasValidSms(),
|
||||
'messagingEmailReady' => $credential->hasValidBird(),
|
||||
|
||||
Reference in New Issue
Block a user