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

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

@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 @else {{ trans('texts.plan_free') }} @endif

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

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

@if ($account->company->pending_plan)

@if ($account->company->pending_plan == PLAN_FREE) {{ trans('texts.plan_free') }} @else {{ trans('texts.plan_'.$account->company->pending_plan) }} ({{ trans('texts.plan_term_'.$account->company->pending_term.'ly') }}) @endif {{ trans('texts.cancel') }}

@endif {!! Former::actions( Button::info(trans('texts.plan_change'))->large()->withAttributes(['onclick' => 'showChangePlan()'])->appendIcon(Icon::create('edit'))) !!} @else {!! Former::actions( Button::success(trans('texts.plan_upgrade'))->large()->withAttributes(['onclick' => 'showChangePlan()'])->appendIcon(Icon::create('plus-sign'))) !!} @endif
{!! Former::close() !!} @endif {!! Former::open('settings/cancel_account')->addClass('cancel-account') !!}

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

{!! Former::actions( Button::danger(trans('texts.cancel_account'))->large()->withAttributes(['onclick' => 'showConfirm()'])->appendIcon(Icon::create('trash'))) !!}
{!! Former::close() !!}
@stop