diff --git a/app/Http/Controllers/Frontend/ProfileController.php b/app/Http/Controllers/Frontend/ProfileController.php index 3780f448..8b39f4fc 100644 --- a/app/Http/Controllers/Frontend/ProfileController.php +++ b/app/Http/Controllers/Frontend/ProfileController.php @@ -52,7 +52,7 @@ class ProfileController extends Controller { // Is the ACARS module enabled? $acars_enabled = false; - $acars = Module::find('VMSACARS'); + $acars = Module::find('VMSAcars'); if ($acars) { $acars_enabled = $acars->isEnabled(); } @@ -95,6 +95,7 @@ class ProfileController extends Controller 'user' => $user, 'userFields' => $userFields, 'airports' => $airports, + 'acars' => $this->acarsEnabled(), ]); } diff --git a/resources/views/layouts/default/profile/index.blade.php b/resources/views/layouts/default/profile/index.blade.php index 9290d89e..05336dfc 100644 --- a/resources/views/layouts/default/profile/index.blade.php +++ b/resources/views/layouts/default/profile/index.blade.php @@ -133,11 +133,11 @@