Add freemium plans, wallet-billed host notifications, and Pro upgrades.
Deploy Ladill Frontdesk / deploy (push) Successful in 44s
Deploy Ladill Frontdesk / deploy (push) Successful in 44s
Host alerts use email/phone on the host record without requiring a Ladill account link; SMS and over-quota emails debit the org wallet at platform rates. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -17,6 +17,15 @@ class IntegrationController extends Controller
|
||||
{
|
||||
$this->authorizeAbility($request, 'settings.view');
|
||||
$organization = $this->organization($request);
|
||||
$plans = app(\App\Services\Frontdesk\PlanService::class);
|
||||
|
||||
if (! $plans->hasFeature($organization, 'integrations')) {
|
||||
return view('frontdesk.integrations.upgrade', [
|
||||
'organization' => $organization,
|
||||
'proPriceMinor' => $plans->proPriceMinor(),
|
||||
]);
|
||||
}
|
||||
|
||||
$canManage = app(\App\Services\Frontdesk\FrontdeskPermissions::class)
|
||||
->isAdmin($this->member($request));
|
||||
|
||||
@@ -39,6 +48,10 @@ class IntegrationController extends Controller
|
||||
$this->authorizeAbility($request, 'settings.manage');
|
||||
$organization = $this->organization($request);
|
||||
|
||||
if (! app(\App\Services\Frontdesk\PlanService::class)->hasFeature($organization, 'integrations')) {
|
||||
return back()->with('error', 'Webhooks and calendar feeds require Frontdesk Pro.');
|
||||
}
|
||||
|
||||
$validated = $request->validate([
|
||||
'webhook_url' => ['nullable', 'url', 'max:500'],
|
||||
'webhook_secret' => ['nullable', 'string', 'max:128'],
|
||||
|
||||
Reference in New Issue
Block a user