@extends('header') @section('content') @parent {!! Former::open_for_files() ->addClass('warn-on-exit') ->autocomplete('on') ->rules([ 'name' => 'required', ]) !!} {{ Former::populate($account) }} @include('accounts.nav', ['selected' => ACCOUNT_COMPANY_DETAILS])

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

{!! Former::text('name') !!} {!! Former::text('id_number') !!} {!! Former::text('vat_number') !!} {!! Former::text('website') !!} {!! Former::text('work_email') !!} {!! Former::text('work_phone') !!} {!! Former::file('logo')->max(2, 'MB')->accept('image')->inlineHelp(trans('texts.logo_help')) !!} @if ($account->hasLogo()) @endif {!! Former::select('size_id') ->addOption('','') ->fromQuery($sizes, 'name', 'id') !!} {!! Former::select('industry_id') ->addOption('','') ->fromQuery($industries, 'name', 'id') ->help('texts.industry_help') !!}

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

{!! Former::text('address1')->autocomplete('address-line1') !!} {!! Former::text('address2')->autocomplete('address-line2') !!} {!! Former::text('city')->autocomplete('address-level2') !!} {!! Former::text('state')->autocomplete('address-level1') !!} {!! Former::text('postal_code')->autocomplete('postal-code') !!} {!! Former::select('country_id') ->addOption('','') ->fromQuery($countries, 'name', 'id') !!}

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

{!! Former::select('payment_type_id') ->addOption('','') ->fromQuery(Cache::get('paymentTypes')->sortBy('name'), 'name', 'num_days') ->help(trans('texts.payment_type_help')) !!} {!! Former::select('payment_terms') ->addOption('','') ->fromQuery(\App\Models\PaymentTerm::getSelectOptions(), 'name', 'num_days') ->help(trans('texts.payment_terms_help') . ' | ' . link_to('/settings/payment_terms', trans('texts.customize_options'))) !!}
{!! 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