@extends('header') @section('content') @parent @include('accounts.nav', ['selected' => ACCOUNT_MANAGEMENT])
{!! Former::open('settings/change_plan')->addClass('change-plan') !!}

{!! trans('texts.plan_status') !!}

@if (Auth::user()->primaryAccount()->id != Auth::user()->account->id)
{{ trans('texts.switch_to_primary', ['name' => Auth::user()->primaryAccount()->getDisplayName()]) }}
@else

@if ($planDetails && $planDetails['active']) {{ trans('texts.plan_'.$planDetails['plan']) }} @if ($planDetails['trial']) ({{ trans('texts.plan_trial') }}) @elseif ($planDetails['expires']) ({{ trans('texts.plan_term_'.$planDetails['term'].'ly') }}) @endif @if ($planDetails['plan'] == PLAN_ENTERPRISE) {{ trans('texts.min_to_max_users', ['min' => Utils::getMinNumUsers($planDetails['num_users']), 'max' => $planDetails['num_users']])}} @endif @if ($portalLink) - {{ link_to($portalLink, trans('texts.view_client_portal'), ['target' => '_blank']) }} @endif @elseif(Utils::isNinjaProd()) {{ trans('texts.plan_free') }} @else {{ trans('texts.plan_free_self_hosted') }} @endif

@if ($planDetails && $planDetails['active'])

@if ($planDetails['expires'] === false) {{ trans('texts.never') }} @else {{ Utils::dateToString($planDetails['expires']) }} @endif

@if ($account->company->hasActiveDiscount()) {!! Former::plaintext('discount') ->value($account->company->present()->discountMessage) !!} @endif @if (Utils::isNinjaProd() && Auth::user()->confirmed) {!! Former::actions( Button::info(trans('texts.plan_change'))->large()->withAttributes(['onclick' => 'showChangePlan()'])->appendIcon(Icon::create('edit'))) !!} @endif @else @if ($planDetails)

{{ Utils::dateToString($planDetails['expires']) }}

@endif @if (Utils::isNinjaProd()) @if (Auth::user()->confirmed) {!! Former::actions( Button::success(trans('texts.plan_upgrade'))->large()->withAttributes(['onclick' => 'showChangePlan()'])->appendIcon(Icon::create('plus-sign'))) !!} @endif @elseif (!$account->hasFeature(FEATURE_WHITE_LABEL)) {!! Former::actions( Button::success(trans('texts.white_label_button'))->large()->withAttributes(['onclick' => 'loadImages("#whiteLabelModal");$("#whiteLabelModal").modal("show");'])->appendIcon(Icon::create('plus-sign'))) !!} @endif @endif @endif @if (Auth::user()->created_at->diffInMonths() >= 3) {!! Former::plaintext(' ')->help(trans('texts.review_app_help', ['link' => link_to('http://www.capterra.com/p/145215/Invoice-Ninja', trans('texts.writing_a_review'), ['target' => '_blank'])])) !!} @endif
@if (Utils::isNinjaProd()) @endif {!! Former::close() !!} {!! Former::open('settings/account_management') !!} {!! Former::populateField('live_preview', intval($account->live_preview)) !!} {!! Former::populateField('force_pdfjs', intval(Auth::user()->force_pdfjs)) !!}

{!! trans('texts.modules') !!}

@foreach (\App\Models\Account::$modules as $entityType => $value)
@endforeach @if (Utils::isSelfHost()) @foreach (Module::all() as $value) {{ ($value->boot()) }}
@endforeach @endif
{!! Button::success(trans('texts.save'))->submit()->large()->appendIcon(Icon::create('floppy-disk')) !!}

{!! trans('texts.pdf_settings') !!}

{!! Former::checkbox('live_preview') ->text(trans('texts.enable')) ->help(trans('texts.live_preview_help') . '
' . trans('texts.recommend_on')) ->value(1) !!} {!! Former::checkbox('force_pdfjs') ->text(trans('texts.enable')) ->value(1) ->help(trans('texts.force_pdfjs_help', [ 'chrome_link' => link_to(CHROME_PDF_HELP_URL, 'Chrome', ['target' => '_blank']), 'firefox_link' => link_to(FIREFOX_PDF_HELP_URL, 'Firefox', ['target' => '_blank']), ]) . '
' . trans('texts.recommend_off')) !!}
{!! Button::success(trans('texts.save'))->submit()->large()->appendIcon(Icon::create('floppy-disk')) !!}

{!! trans('texts.migrate_to_next_version') !!}

{{ trans('texts.migrate_intro_text')}}

Watch these YouTube videos to see some of the many new features added:
What's new in Invoice Ninja v5
More new features in v5

@if(Auth::user()->eligibleForMigration()) {!! trans('texts.start_migration') !!} @else {{ trans('texts.not_allowed') }} @endif
{{ trans('texts.learn_more') }}
{!! Former::close() !!}

Forward customers to V5

{{ csrf_field() }}
@if($errors->has('url'))
@foreach ($errors->get('url') as $message) {{ $message }} @endforeach
@endif



If you need to rollback to v4, please disable forwarding using this link. Disable Forwarding
@if (! Auth::user()->account->isNinjaOrLicenseAccount())

{!! trans('texts.delete_data') !!}

{!! Former::open('settings/purge_data')->addClass('purge-data') !!} {!! Former::actions( Button::danger(trans('texts.purge_data')) ->withAttributes(['onclick' => 'showPurgeConfirm()']) ->appendIcon(Icon::create('trash')) ->large() ) !!}
{{ trans('texts.purge_data_help')}}

{!! Former::close() !!} @if (! $account->hasMultipleAccounts() || $account->getPrimaryAccount()->id != $account->id) {!! Former::open('settings/cancel_account')->addClass('cancel-account') !!} {!! Former::actions( Button::danger($account->hasMultipleAccounts() ? trans('texts.delete_company') : trans('texts.cancel_account'))->large()->withAttributes(['onclick' => 'showCancelConfirm()'])->appendIcon(Icon::create('trash'))) !!}
{{ $account->hasMultipleAccounts() ? trans('texts.delete_company_help') : trans('texts.cancel_account_help') }}
@elseif ($account->hasMultipleAccounts())
{{ trans('texts.unable_to_delete_primary') }}
@endif {!! Former::close() !!}
@endif @stop