@extends('accounts.nav') @section('content') @parent {{ Former::open_for_files()->addClass('col-md-10 col-md-offset-1')->rules(array( 'name' => 'required', 'email' => 'email|required' )); }} {{ Former::populate($account); }} {{ 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) }}
{{ Former::legend('Account') }} {{ Former::text('name') }} {{ Former::file('logo')->max(2, 'MB')->accept('image')->wrap('test') }} @if (file_exists($account->getLogoPath()))
{{ HTML::image($account->getLogoPath(), "Logo") }}
@endif {{ Former::legend('Address') }} {{ Former::text('address1')->label('Street') }} {{ Former::text('address2')->label('Apt/Suite') }} {{ Former::text('city') }} {{ Former::text('state')->label('State/Province') }} {{ Former::text('postal_code') }} {{ Former::select('country_id')->addOption('','')->label('Country') ->fromQuery($countries, 'name', 'id')->select($account ? $account->country_id : '') }}
{{ Former::legend('Users') }} {{ Former::text('first_name') }} {{ Former::text('last_name') }} {{ Former::text('email') }} {{ Former::text('phone') }}
{{ Button::lg_primary_submit('Save') }}
{{ Former::close() }} @stop