@extends('layouts.default') @section('content') {!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $account) !!} {!! Form::model($account, ['class' => 'form-horizontal','id' => 'update','url' => route('accounts.update',$account->id)]) !!}
Mandatory fields
{!! ExpandedForm::text('name') !!}
Optional fields
@if($account->accounttype->type == 'Default account' || $account->accounttype->type == 'Asset account') {!! ExpandedForm::balance('openingBalance',null, ['currency' => $openingBalance ? $openingBalance->transactionCurrency : null]) !!} {!! ExpandedForm::date('openingBalanceDate') !!} {!! ExpandedForm::select('accountRole',Config::get('firefly.accountRoles')) !!} {!! ExpandedForm::balance('virtualBalance',null) !!} {!! Form::hidden('id',$account->id) !!} @endif {!! ExpandedForm::checkbox('active','1') !!}
@if(Session::get('preFilled')['accountRole'] == 'ccAsset')
Credit card options
{!! ExpandedForm::select('ccType',Config::get('firefly.ccTypes')) !!} {!! ExpandedForm::date('ccMonthlyPaymentDate',null,['helpText' => 'Select any year and any month, it will be ignored anway. Only the day of the month is relevant.']) !!}
@endif
Options
{!! ExpandedForm::optionsList('update','account') !!}

{!! Form::close() !!} @stop