@extends('layouts.default') @section('content')

Firefly Add a new personal account

Accounts are the record holders for transactions and transfers. Money moves from one account to another.

In a double-entry bookkeeping system (such as this one) there is a "from" account and a "to" account, even when money is created from thin air (such as interest, or when new accounts already have a positive balance).

This form creates personal accounts only. If this is your first account, it should be a checking or savings account. Enter its name and if relevant the current balance. Check your bank statements for the last current balance you can find.

{{Form::open(['class' => 'form-horizontal','route' => 'accounts.store'])}}

Mandatory fields

{{ Form::label('name', 'Account name', ['class' => 'col-sm-4 control-label'])}}
{{ Form::text('name', Input::old('name'), ['class' => 'form-control']) }} @if($errors->has('name'))

{{$errors->first('name')}}

@else Use something descriptive such as "checking account" or "My Bank Main Account". @endif

Optional fields

{{ Form::label('openingbalance', 'Opening balance', ['class' => 'col-sm-4 control-label'])}}
{{Form::input('number','openingbalance', Input::old('openingbalance'), ['step' => 'any', 'class' => 'form-control'])}}
@if($errors->has('openingbalance'))

{{$errors->first('openingbalance')}}

@else What's the current balance of this new account? @endif
{{ Form::label('openingbalancedate', 'Opening balance date', ['class' => 'col-sm-4 control-label'])}}
{{ Form::input('date','openingbalancedate', Input::old('openingbalancedate') ?: date('Y-m-d'), ['class' => 'form-control']) }} @if($errors->has('openingbalancedate'))

{{$errors->first('openingbalancedate')}}

@else When was this the balance of the new account? Since your bank statements may lag behind, update this date to match the date of the last known balance of the account. @endif
{{Form::close()}} @stop