From 20fb487873b055fb5895091d5a7b4f1ff4327789 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 17 Sep 2022 13:23:06 +1000 Subject: [PATCH] improve trial page --- .../ClientPortal/NinjaPlanController.php | 4 +- .../portal/ninja2020/plan/trial.blade.php | 13 +- .../ninja2020/plan/trial_confirmed.blade.php | 465 +++++++++++++++--- 3 files changed, 410 insertions(+), 72 deletions(-) diff --git a/app/Http/Controllers/ClientPortal/NinjaPlanController.php b/app/Http/Controllers/ClientPortal/NinjaPlanController.php index 78fab8df7c..24ff46adb4 100644 --- a/app/Http/Controllers/ClientPortal/NinjaPlanController.php +++ b/app/Http/Controllers/ClientPortal/NinjaPlanController.php @@ -179,7 +179,7 @@ class NinjaPlanController extends Controller ->queue(); $ninja_company = Company::on('db-ninja-01')->find(config('ninja.ninja_default_company_id')); - $ninja_company->notification(new NewAccountNotification($account, $client))->ninja(); + $ninja_company->notification(new NewAccountNotification($subscription->company->account, $client))->ninja(); return $this->render('plan.trial_confirmed', $data); } @@ -196,7 +196,7 @@ class NinjaPlanController extends Controller public function plan() { - return $this->trial(); + // return $this->trial(); //harvest the current plan $data = []; $data['late_invoice'] = false; diff --git a/resources/views/portal/ninja2020/plan/trial.blade.php b/resources/views/portal/ninja2020/plan/trial.blade.php index cef67f7ca4..c5e65ed3df 100644 --- a/resources/views/portal/ninja2020/plan/trial.blade.php +++ b/resources/views/portal/ninja2020/plan/trial.blade.php @@ -1445,14 +1445,10 @@ Ensure the default browser behavior of the `hidden` attribute.
- + @csrf
@@ -1612,6 +1608,7 @@ Ensure the default browser behavior of the `hidden` attribute.

Ninja Pro

+ 30 day money back guarantee!

$10Per month @@ -1652,6 +1649,7 @@ Ensure the default browser behavior of the `hidden` attribute.

Enterprise Plan

+ 30 day money back guarantee!

$14Per month @@ -1661,6 +1659,7 @@ Ensure the default browser behavior of the `hidden` attribute. action="#" method="post" > + @csrf