diff --git a/app/Http/Middleware/HandleInertiaRequests.php b/app/Http/Middleware/HandleInertiaRequests.php index c77fe0c2..7b2e4339 100644 --- a/app/Http/Middleware/HandleInertiaRequests.php +++ b/app/Http/Middleware/HandleInertiaRequests.php @@ -41,7 +41,8 @@ class HandleInertiaRequests extends Middleware { $hasBilling = Module::has('Billing') && Module::isEnabled('Billing'); $hasInvoicing = Module::has('Invoicing') && Module::isEnabled('Invoicing'); - + $hasServices = Module::has('Services') && Module::isEnabled('Services'); + /** @var BillingContract $billing */ $billing = app(BillingContract::class); @@ -50,6 +51,7 @@ class HandleInertiaRequests extends Middleware return array_merge(parent::share($request), [ 'has_billing_extension' => $hasBilling, 'has_invoicing_extension' => $hasInvoicing, + 'has_services_extension' => $hasServices, 'billing' => $currentOrganization !== null ? [ 'has_subscription' => $billing->hasSubscription($currentOrganization), 'has_trial' => $billing->hasTrial($currentOrganization), diff --git a/resources/js/Components/UserSettingsIcon.vue b/resources/js/Components/UserSettingsIcon.vue index 6af3ffef..3fe5e0c4 100644 --- a/resources/js/Components/UserSettingsIcon.vue +++ b/resources/js/Components/UserSettingsIcon.vue @@ -1,10 +1,22 @@ diff --git a/resources/js/Layouts/AppLayout.vue b/resources/js/Layouts/AppLayout.vue index 1373ad9d..80641bb0 100644 --- a/resources/js/Layouts/AppLayout.vue +++ b/resources/js/Layouts/AppLayout.vue @@ -106,7 +106,7 @@ const page = usePage<{