@extends('accounts.nav') @section('content') @parent {!! Former::open_for_files()->addClass('warn-on-exit')->rules(array( 'name' => 'required', 'email' => 'email|required' )) !!} {{ Former::populate($account) }} @if ($showUser) {{ Former::populateField('first_name', $primaryUser->first_name) }} {{ Former::populateField('last_name', $primaryUser->last_name) }} {{ Former::populateField('email', $primaryUser->email) }} {{ Former::populateField('phone', $primaryUser->phone) }} @if (Utils::isNinja()) {{ Former::populateField('dark_mode', intval($primaryUser->dark_mode)) }} @endif @endif

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

{!! Former::text('name') !!} @if (Auth::user()->isPro() && Utils::isNinja()) {{ Former::setOption('capitalize_translations', false) }} {!! Former::text('subdomain')->placeholder('texts.www')->onchange('onSubdomainChange()') !!} @endif {!! Former::text('id_number') !!} {!! Former::text('vat_number') !!} {!! Former::text('work_email') !!} {!! Former::text('work_phone') !!} {!! Former::file('logo')->max(2, 'MB')->accept('image')->inlineHelp(trans('texts.logo_help')) !!} @if (file_exists($account->getLogoPath()))
{!! HTML::image($account->getLogoPath().'?no_cache='.time(), 'Logo', ['width' => 200]) !!}   {{ trans('texts.remove_logo') }}

@endif {!! Former::select('size_id')->addOption('','')->fromQuery($sizes, 'name', 'id') !!} {!! Former::select('industry_id')->addOption('','')->fromQuery($industries, 'name', 'id') !!}

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

{!! Former::text('address1') !!} {!! Former::text('address2') !!} {!! Former::text('city') !!} {!! Former::text('state') !!} {!! Former::text('postal_code') !!} {!! Former::select('country_id')->addOption('','') ->fromQuery($countries, 'name', 'id') !!}
@if ($showUser)

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

{!! Former::text('first_name') !!} {!! Former::text('last_name') !!} {!! Former::text('email') !!} {!! Former::text('phone') !!} @if (Utils::isNinja()) {!! Former::checkbox('dark_mode')->text(trans('texts.dark_mode_help')) !!} @endif @if (Auth::user()->confirmed) {!! Former::actions( Button::primary(trans('texts.change_password'))->small()->withAttributes(['onclick'=>'showChangePassword()'])) !!} @elseif (Auth::user()->registered) {!! Former::actions( Button::primary(trans('texts.resend_confirmation'))->asLinkTo(URL::to('/resend_confirmation'))->small() ) !!} @endif
@endif

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

{!! Former::select('language_id')->addOption('','') ->fromQuery($languages, 'name', 'id') !!} {!! Former::select('currency_id')->addOption('','') ->fromQuery($currencies, 'name', 'id') !!} {!! Former::select('timezone_id')->addOption('','') ->fromQuery($timezones, 'location', 'id') !!} {!! Former::select('date_format_id')->addOption('','') ->fromQuery($dateFormats, 'label', 'id') !!} {!! Former::select('datetime_format_id')->addOption('','') ->fromQuery($datetimeFormats, 'label', 'id') !!}
{!! Button::success(trans('texts.save'))->submit()->large()->appendIcon(Icon::create('floppy-disk')) !!}
{!! Former::close() !!} {!! Form::open(['url' => 'remove_logo', 'class' => 'removeLogoForm']) !!} {!! Form::close() !!} @stop @section('onReady') $('#name').focus(); @stop