@if(checkRole(['owner']))
{{ Form::label('branch_id', getphrase('branch')) }} * {{Form::select('branch_id', $branches, null, ['class'=>'form-control', 'id'=>'branch_id', 'ng-model'=>'branch_id', 'required'=> 'true', 'ng-class'=>'{"has-error": formExpenses.branch_id.$touched && formExpenses.branch_id.$invalid}' ])}}
{!! getValidationMessage()!!}
@else {{ Form::hidden('branch_id', getUserRecord()->branch_id, array('id'=>'branch_id')) }} @endif
{{ Form::label('title', getphrase('title')) }} * {{ Form::text('title', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase('title'), 'ng-model'=>'title', 'required'=> 'true', 'ng-class'=>'{"has-error": formExpenses.title.$touched && formExpenses.title.$invalid}', 'ng-maxlength' => '512', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('maxlength')!!}
{{ Form::label('expense_category_id', getphrase('expense_category')) }} * {{Form::select('expense_category_id', $expense_categories, null, ['class'=>'form-control', 'id'=>'expense_category_id', 'placeholder'=>getPhrase('select'), 'ng-model'=>'expense_category_id', 'required'=> 'true', 'ng-class'=>'{"has-error": formExpenses.expense_category_id.$touched && formExpenses.expense_category_id.$invalid}' ])}}
{!! getValidationMessage()!!}
{{ Form::label('expense_amount', getphrase('expense_amount')) }} * {{ Form::number('expense_amount', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase('enter_value'), 'ng-model'=>'expense_amount', 'min'=>'0', 'string-to-number'=>'expense_amount', 'required'=> 'true', 'ng-class'=>'{"has-error": formExpenses.expense_amount.$touched && formExpenses.expense_amount.$invalid}', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('number')!!}
{{ Form::label('expense_date', getphrase('expense_date')) }} {{ Form::text('expense_date', $value = $expense_date , $attributes = array('class'=>'input-sm form-control dp')) }}