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

Firefly Add a new {{$what}}

Technically speaking, withdrawals, deposits and transfers are all transactions, moving money from account A to account B.

@if($what == 'withdrawal') A withdrawal is when you spend money on something, moving an amount to a beneficiary. @endif @if($what == 'deposit') A deposit is when you earn money, moving an amount from a beneficiary into your own account. @endif @if($what == 'transfer') TRANSFER @endif

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

Mandatory fields

@if($what == 'deposit' || $what == 'withdrawal')
{{Form::select('account_id',$accounts,Input::old('account_id') ?: Input::get('account'),['class' => 'form-control'])}}
@endif @if($what == 'deposit' || $what == 'withdrawal')
This field will auto-complete your existing beneficiaries (if any), but you can type freely to create new ones.
@endif @if($what == 'transfer')
{{Form::select('account_to_id',$accounts,Input::old('account_from_id'),['class' => 'form-control'])}}
{{Form::select('account_from_id',$accounts,Input::old('account_to_id'),['class' => 'form-control'])}}
@endif

Optional fields

@if($what == 'withdrawal')
{{Form::select('budget_id',$budgets,Input::old('budget_id') ?: 0,['class' => 'form-control'])}} Select one of your budgets to make this transaction a part of it.
@endif
Add more fine-grained information to this transaction by entering a category. Like the beneficiary-field, this field will auto-complete existing categories but can also be used to create new ones.
@stop @section('scripts') @stop