@extends('master') @section('head') @stop @section('body') @if ( ! Request::is('settings/account_management')) @include('partials.upgrade_modal') @endif Toggle navigation {{-- Per our license, please do not remove or modify this link. --}} @if (Auth::check()) @if (!Auth::user()->registered) {!! Button::success(trans('texts.sign_up'))->withAttributes(array('id' => 'signUpButton', 'data-toggle'=>'modal', 'data-target'=>'#signUpModal', 'style' => 'max-width:100px;;overflow:hidden'))->small() !!} @elseif (Utils::isNinjaProd() && (!Auth::user()->isPro() || Auth::user()->isTrial())) @if (Auth::user()->account->company->hasActivePromo()) {!! Button::warning(trans('texts.plan_upgrade'))->withAttributes(array('onclick' => 'showUpgradeModal()', 'style' => 'max-width:100px;overflow:hidden'))->small() !!} @else {!! Button::success(trans('texts.plan_upgrade'))->withAttributes(array('onclick' => 'showUpgradeModal()', 'style' => 'max-width:100px;overflow:hidden'))->small() !!} @endif @endif @endif @if (session(SESSION_USER_ACCOUNTS) && count(session(SESSION_USER_ACCOUNTS))) {{ Auth::user()->account->getDisplayName() }} @else {{ Auth::user()->getDisplayName() }} @endif @if (session(SESSION_USER_ACCOUNTS)) @foreach (session(SESSION_USER_ACCOUNTS) as $item) @if ($item->user_id == Auth::user()->id) @include('user_account', [ 'user_account_id' => $item->id, 'user_id' => $item->user_id, 'account_name' => $item->account_name, 'user_name' => $item->user_name, 'logo_url' => isset($item->logo_url) ? $item->logo_url : "", 'selected' => true, ]) @endif @endforeach @foreach (session(SESSION_USER_ACCOUNTS) as $item) @if ($item->user_id != Auth::user()->id) @include('user_account', [ 'user_account_id' => $item->id, 'user_id' => $item->user_id, 'account_name' => $item->account_name, 'user_name' => $item->user_name, 'logo_url' => isset($item->logo_url) ? $item->logo_url : "", 'selected' => false, ]) @endif @endforeach @else @include('user_account', [ 'account_name' => Auth::user()->account->name ?: trans('texts.untitled'), 'user_name' => Auth::user()->getDisplayName(), 'logo_url' => Auth::user()->account->getLogoURL(), 'selected' => true, ]) @endif @if (Utils::isAdmin()) @if (count(session(SESSION_USER_ACCOUNTS)) > 1) {!! link_to('/manage_companies', trans('texts.manage_companies')) !!} @elseif (!session(SESSION_USER_ACCOUNTS) || count(session(SESSION_USER_ACCOUNTS)) < 5) {!! link_to('/invoice_now?new_company=true&sign_up=true', trans('texts.add_company')) !!} @endif @endif {!! link_to('#', trans('texts.logout'), array('onclick'=>'logout()')) !!} @if (false && Utils::isAdmin()) @section('self-updater') @show @endif @foreach ([ 'dashboard' => false, 'clients' => false, 'products' => false, 'invoices' => false, 'payments' => false, 'recurring_invoices' => 'recurring', 'credits' => false, 'quotes' => false, 'tasks' => false, 'expenses' => false, 'vendors' => false, 'settings' => false, ] as $key => $value) {!! Form::nav_link($key, $value ?: $key) !!} @endforeach
{{ trans('texts.erase_data') }}