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

Firefly Edit transaction "{{{$journal->description}}}"

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

Updating a transaction will also update balances, budgets and other records.

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

Mandatory fields

@if($what == 'deposit' || $what == 'withdrawal')
{{Form::select('account_id',$accounts,Input::old('account_id') ?: $data['account_id'],['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') ?: $data['account_from_id'],['class' => 'form-control'])}}
{{Form::select('account_from_id',$accounts,Input::old('account_to_id') ?: $data['account_to_id'],['class' => 'form-control'])}}
@endif

Optional fields

@if($what == 'withdrawal')
{{Form::select('budget_id',$budgets,Input::old('budget_id') ?: $data['budget_id'],['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.
@if($what == 'transfer' && count($piggies) > 0)
@if($errors->has('piggybank_id'))

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

@else You can directly add the amount you're transferring to one of your piggy banks, provided they are related to the account your transferring to. @endif
@endif
{{Form::close()}} @stop @section('scripts') @stop