@extends('header') @section('content') {!! Former::open($url)->addClass('col-md-10 col-md-offset-1 warn-on-exit')->method($method)->rules(array( 'public_notes' => 'required', 'amount' => 'required', 'expense_date' => 'required', )) !!} @if ($expense) {!! Former::populate($expense) !!} {!! Former::hidden('public_id') !!} @endif
{!! Former::select('vendor')->addOption('', '')->addGroupClass('client-select') !!} {!! Former::text('expense_date') ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT, DEFAULT_DATE_PICKER_FORMAT)) ->addGroupClass('expense_date')->label(trans('texts.expense_date')) ->append('') !!} {!! Former::text('amount')->label(trans('texts.expense_amount')) !!} {!! Former::text('amount_cur')->label(trans('texts.expense_amount_in_cur')) !!} {!! Former::select('currency_id')->addOption('','') ->placeholder($account->currency ? $account->currency->name : '') ->fromQuery($currencies, 'name', 'id') !!} {!! Former::text('exchange_rate')->append(trans('texts.expense_exchange_rate_100')) !!} {!! Former::textarea('private_notes') !!} {!! Former::textarea('public_notes') !!} {!! Former::checkbox('should_be_invoiced') !!} {!! Former::select('client')->addOption('', '')->addGroupClass('client-select') !!}
{!! Button::normal(trans('texts.cancel'))->large()->asLinkTo(URL::to('/dashboard'))->appendIcon(Icon::create('remove-circle')) !!} {!! Button::success(trans('texts.save'))->submit()->large()->appendIcon(Icon::create('floppy-disk')) !!}
{!! Former::close() !!} @stop