@extends('layouts.default') @section('content') {!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $what) !!} {!! Form::open(['class' => 'form-horizontal','id' => 'store','url' => route('transactions.store',$what)]) !!} {!! Form::hidden('reminder',Input::get('reminder_id')) !!}
Mandatory fields
{!! ExpandedForm::text('description') !!} @if($what == 'deposit' || $what == 'withdrawal') {!! ExpandedForm::select('account_id',$accounts) !!} @endif @if($what == 'withdrawal') {{ExpandedForm::text('expense_account')}} @endif @if($what == 'deposit') {{ExpandedForm::text('revenue_account')}} @endif @if($what == 'transfer') {{ExpandedForm::select('account_from_id',$accounts)}} {{ExpandedForm::select('account_to_id',$accounts)}} @endif {{ExpandedForm::amount('amount')}} {{ExpandedForm::date('date', date('Y-m-d'))}}

Optional fields
@if($what == 'withdrawal') {{ExpandedForm::select('budget_id',$budgets,0)}} @endif {{ExpandedForm::text('category')}} @if($what == 'transfer' && count($piggies) > 0) {{ExpandedForm::select('piggy_bank_id',$piggies)}} @endif
Options
{{ExpandedForm::optionsList('create','transaction')}}
{{Form::close()}} @stop @section('scripts') @stop