From f0a52a1bf7f27e204b127856d57d23ca80f817b8 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 4 Jul 2016 11:22:10 +0300 Subject: [PATCH] Shortening pro plan process --- resources/views/accounts/management.blade.php | 8 +- resources/views/accounts/nav.blade.php | 2 +- resources/views/header.blade.php | 75 +------------------ resources/views/invoices/edit.blade.php | 2 +- resources/views/invoices/pdf.blade.php | 2 +- 5 files changed, 8 insertions(+), 81 deletions(-) diff --git a/resources/views/accounts/management.blade.php b/resources/views/accounts/management.blade.php index 378952dc70aa..404845e09a32 100644 --- a/resources/views/accounts/management.blade.php +++ b/resources/views/accounts/management.blade.php @@ -123,13 +123,13 @@ ->addOption(trans('texts.plan_free'), PLAN_FREE)!!} @else {!! Former::select('plan') - ->addOption(trans('texts.plan_enterprise'), PLAN_ENTERPRISE) - ->addOption(trans('texts.plan_pro'), PLAN_PRO)!!} + ->addOption(trans('texts.plan_pro'), PLAN_PRO) + ->addOption(trans('texts.plan_enterprise'), PLAN_ENTERPRISE) !!} @endif {!! Former::select('plan_term') - ->addOption(trans('texts.plan_term_yearly'), PLAN_TERM_YEARLY) ->addOption(trans('texts.plan_term_monthly'), PLAN_TERM_MONTHLY) - ->inlineHelp(trans('texts.enterprise_plan_features', ['link' => link_to(NINJA_WEB_URL . '/plans-pricing', trans('texts.click_here'), ['target' => '_blank'])])) !!} + ->addOption(trans('texts.plan_term_yearly'), PLAN_TERM_YEARLY) + ->inlineHelp(trans('texts.enterprise_plan_features', ['link' => link_to(NINJA_WEB_URL . '/plans-pricing', trans('texts.click_here'), ['target' => '_blank'])])) !!} @endif -@if (Auth::check() && (!Auth::user()->isPro() || Auth::user()->isTrial())) - - - -@endif -
@@ -766,7 +693,7 @@ @if (Auth::check() && Auth::user()->isTrial()) {!! trans(Auth::user()->account->getCountTrialDaysLeft() == 0 ? 'texts.trial_footer_last_day' : 'texts.trial_footer', [ 'count' => Auth::user()->account->getCountTrialDaysLeft(), - 'link' => '' . trans('texts.click_here') . '' + 'link' => link_to('/settings/account_management?upgrade=true', trans('texts.click_here')) ]) !!} @endif @else diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index c1e605b7af3f..a21cb9515877 100644 --- a/resources/views/invoices/edit.blade.php +++ b/resources/views/invoices/edit.blade.php @@ -556,7 +556,7 @@ @if (!Auth::user()->account->isPro())
- {!! trans('texts.pro_plan_remove_logo', ['link'=>''.trans('texts.pro_plan_remove_logo_link').'']) !!} + {!! trans('texts.pro_plan_remove_logo', ['link'=>link_to('/settings/account_management?upgrade=true', trans('texts.pro_plan_remove_logo_link'))]) !!}
@endif diff --git a/resources/views/invoices/pdf.blade.php b/resources/views/invoices/pdf.blade.php index c19b19bb8876..844a6d1b012c 100644 --- a/resources/views/invoices/pdf.blade.php +++ b/resources/views/invoices/pdf.blade.php @@ -48,7 +48,7 @@ @if (Utils::isNinjaProd()) - + {{ trans('texts.go_pro') }} @else @endif