@extends('accounts.nav') @section('content') @parent {!! Former::open_for_files()->addClass('col-md-10 col-md-offset-1 warn-on-exit')->rules(array( 'name' => 'required', 'email' => 'email|required' )) !!} {{ Former::populate($account) }} @if ($showUser) {{ Former::populateField('first_name', $account->users()->first()->first_name) }} {{ Former::populateField('last_name', $account->users()->first()->last_name) }} {{ Former::populateField('email', $account->users()->first()->email) }} {{ Former::populateField('phone', $account->users()->first()->phone) }} @endif
{!! Former::legend('details') !!} {!! Former::text('name') !!} {!! 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(), "Logo") !!}   {{ trans('texts.remove_logo') }}

@endif {!! Former::select('size_id')->addOption('','')->fromQuery($sizes, 'name', 'id') !!} {!! Former::select('industry_id')->addOption('','')->fromQuery($industries, 'name', 'id') !!} {!! Former::legend('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) {!! Former::legend('users') !!} {!! Former::text('first_name') !!} {!! Former::text('last_name') !!} {!! Former::text('email') !!} {!! Former::text('phone') !!} @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('/resend_confirmation')->small() ) !!} @endif @endif {!! Former::legend('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