@extends('layouts.default') @section('content') {{Form::open(['class' => 'form-horizontal','route' => 'accounts.store'])}} {{Form::hidden('what',$what)}}

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 @if($what == 'asset') Use something descriptive such as "checking account" or "My Bank Main Account". @endif @if($what == 'expense') Use something descriptive such as "Albert Heijn" or "Amazon". @endif @if($what == 'revenue') Use something descriptive such as "my mom" or "my job". @endif @endif
@if($what == 'asset')

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
@endif
{{Form::close()}} @stop