@extends('layouts.default') @section('content') {{ Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $journal) }} {{Form::open(['class' => 'form-horizontal','id' => 'update','url' => route('transactions.update',$journal->id)])}}
Mandatory fields
{{Form::ffText('description',$journal->description)}} @if($what == 'deposit' || $what == 'withdrawal') {{Form::ffSelect('account_id',$accounts,$data['account_id'])}} @endif @if($what == 'withdrawal') {{Form::ffText('expense_account',$data['expense_account'])}} @endif @if($what == 'deposit') {{Form::ffText('revenue_account',$data['revenue_account'])}} @endif @if($what == 'transfer') {{Form::ffSelect('account_from_id',$accounts,$data['account_from_id'])}} {{Form::ffSelect('account_to_id',$accounts,$data['account_to_id'])}} @endif {{Form::ffAmount('amount',$data['amount'])}} {{Form::ffDate('date',$data['date'])}}

Optional fields
@if($what == 'withdrawal') {{Form::ffSelect('budget_id',$budgets,$data['budget_id'])}} @endif {{Form::ffText('category',$data['category'])}} @if($what == 'transfer' && count($piggies) > 0) {{Form::ffSelect('piggy_bank_id',$piggies,$data['piggy_bank_id'])}} @endif
Options
{{Form::ffOptionsList('update','transaction')}}
{{Form::close()}} @stop @section('scripts') {{HTML::script('assets/javascript/typeahead/bootstrap3-typeahead.min.js')}} {{HTML::script('assets/javascript/firefly/transactions.js')}} @stop