2015-02-07 18:15:15 -06:00
@ extends ( 'layouts.default' )
@ section ( 'content' )
2015-02-22 02:46:21 -06:00
{ !! Breadcrumbs :: renderIfExists ( Route :: getCurrentRoute () -> getName (), $what ) !! }
2015-02-07 18:15:15 -06:00
{ !! Form :: open ([ 'class' => 'form-horizontal' , 'id' => 'store' , 'route' => 'accounts.store' ]) !! }
{ !! Form :: hidden ( 'what' , $what ) !! }
@ foreach ( $errors -> all () as $error )
< p class = " error " > {{ $error }} </ p >
@ endforeach
< div class = " row " >
< div class = " col-lg-6 col-md-6 col-sm-12 " >
< div class = " panel panel-primary " >
< div class = " panel-heading " >
< i class = " fa { { { $subTitleIcon } }} " ></ i > Mandatory fields
</ div >
< div class = " panel-body " >
{ !! ExpandedForm :: text ( 'name' ) !! }
</ div >
</ div >
< p >
< button type = " submit " class = " btn btn-lg btn-success " >
< i class = " fa fa-plus-circle " ></ i > Store new {{{ $what }}} account
</ button >
</ p >
</ div >
< div class = " col-lg-6 col-md-6 col-sm-12 " >
2015-02-09 00:23:39 -06:00
@ if ( $what == 'asset' )
2015-02-07 18:15:15 -06:00
< div class = " panel panel-default " >
< div class = " panel-heading " >
< i class = " fa fa-smile-o " ></ i > Optional fields
</ div >
< div class = " panel-body " >
2015-02-09 00:23:39 -06:00
2015-02-07 18:15:15 -06:00
{ !! ExpandedForm :: balance ( 'openingBalance' ) !! }
{ !! ExpandedForm :: date ( 'openingBalanceDate' , date ( 'Y-m-d' )) !! }
2015-04-03 14:25:04 -05:00
{ !! ExpandedForm :: select ( 'accountRole' , Config :: get ( 'firefly.accountRoles' ), null ,[ 'helpText' => 'Any extra options resulting from your choice can be set later.' ]) !! }
2015-04-01 12:42:14 -05:00
{ !! ExpandedForm :: balance ( 'virtualBalance' ) !! }
2015-02-09 00:23:39 -06:00
2015-02-07 18:15:15 -06:00
</ div >
</ div >
2015-02-09 00:23:39 -06:00
@ endif
2015-02-07 18:15:15 -06:00
<!-- panel for options -->
< div class = " panel panel-default " >
< div class = " panel-heading " >
< i class = " fa fa-bolt " ></ i > Options
</ div >
< div class = " panel-body " >
{ !! ExpandedForm :: optionsList ( 'create' , 'account' ) !! }
</ div >
</ div >
</ div >
</ div >
</ form >
@ stop