@extends('layouts.default') @section('content') {!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $what) !!} {!! Form::open(['class' => 'form-horizontal','id' => 'store','route' => 'accounts.store']) !!} {!! Form::hidden('what',$what) !!} @foreach ($errors->all() as $error)

{{ $error }}

@endforeach
Mandatory fields
{!! ExpandedForm::text('name') !!}

@if($what == 'asset')
Optional fields
{!! ExpandedForm::balance('openingBalance') !!} {!! ExpandedForm::date('openingBalanceDate', date('Y-m-d')) !!} {!! ExpandedForm::select('accountRole',Config::get('firefly.accountRoles'),null,['helpText' => 'Any extra options resulting from your choice can be set later.']) !!} {!! ExpandedForm::balance('virtualBalance') !!}
@endif
Options
{!! ExpandedForm::optionsList('create','account') !!}
@stop