From 803818b53c54422633fc1eb8f7280e69e5ed9525 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 13 Apr 2021 15:04:53 +1000 Subject: [PATCH] Subscriptions --- app/Jobs/User/CreateUser.php | 2 +- .../portal/ninja2020/subscriptions/switch.blade.php | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/Jobs/User/CreateUser.php b/app/Jobs/User/CreateUser.php index 9ad0aa5ecf61..351af1ec0333 100644 --- a/app/Jobs/User/CreateUser.php +++ b/app/Jobs/User/CreateUser.php @@ -84,7 +84,7 @@ class CreateUser if(!Ninja::isSelfHost()){ nlog("in the create user class"); - event(new UserWasCreated($user, $user, $this->company, Ninja::eventVars(auth()->user()->id))); + event(new UserWasCreated($user, $user, $this->company, Ninja::eventVars(auth()->user() ? auth()->user()->id : null))); } return $user; diff --git a/resources/views/portal/ninja2020/subscriptions/switch.blade.php b/resources/views/portal/ninja2020/subscriptions/switch.blade.php index 3cb6b87c51da..dd688719103e 100644 --- a/resources/views/portal/ninja2020/subscriptions/switch.blade.php +++ b/resources/views/portal/ninja2020/subscriptions/switch.blade.php @@ -8,10 +8,10 @@
- Current plan: -

Placeholder text for plan notes, some text.

+ {{ ctrans('texts.current') }} +

{{ $subscription->name }}

- $10 + {{ \App\Utils\Number::formatMoney($subscription->price, $subscription->company) }}
@@ -33,10 +33,10 @@
- Switching to: -

Placeholder text for plan notes, some text.

+ {{ ctrans('texts.change') }} +

{{ $target->name }}

- $10 + {{ \App\Utils\Number::formatMoney($target->price, $target->company) }}