@extends('layouts.default') @section('content') {{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 == 'withdrawal')
@endif @if($what == 'deposit')
@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)
{{Form::select('piggybank_id',$piggies,Input::old('piggybank_id') ?: $data['piggybank_id'],['class' => 'form-control'])}} @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
Options
{{Form::close()}} @stop @section('scripts') {{HTML::script('assets/javascript/typeahead/bootstrap3-typeahead.min.js')}} {{HTML::script('assets/javascript/datatables/jquery.dataTables.min.js')}} {{HTML::script('assets/javascript/datatables/dataTables.bootstrap.js')}} {{HTML::script('assets/javascript/firefly/transactions.js')}} @stop