@if(checkRole(['owner']))
{{ Form::label ('branch_id', getphrase('branch')) }} * {{ Form::select('branch_id', $branches, $selected, [ 'class' => 'form-control', "id" => "select_branch", "ng-model" => "branch_id", 'required'=> 'true', 'ng-class'=>'{"has-error": formSubjects.branch_id.$touched && formSubjects.branch_id.$invalid}' ])}}
{!! getValidationMessage()!!}
@else {{ Form::hidden('branch_id', getUserRecord()->branch_id) }} @endif
{{ Form::label('category_name', getphrase('category_name')) }} * {{ Form::text('category_name', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase('category_name'), 'ng-model'=>'category_name', 'required'=> 'true', 'ng-class'=>'{"has-error": formExpenseCategories.category_name.$touched && formExpenseCategories.category_name.$invalid}', 'ng-maxlength' => '512', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('maxlength')!!}
{{ Form::label('code', getphrase('code')) }} * {{ Form::text('code', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase('code'), 'ng-model'=>'code', 'required'=> 'true', 'ng-class'=>'{"has-error": formExpenseCategories.code.$touched && formExpenseCategories.code.$invalid}', 'ng-maxlength' => '20', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('maxlength')!!}
{{ Form::label('description', getphrase('description')) }} * {{ Form::textarea('description', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => getPhrase('description'), 'rows' => '5', 'ng-model'=>'description', 'required'=> 'true', 'ng-class'=>'{"has-error": formExpenseCategories.description.$touched && formExpenseCategories.description.$invalid}', 'ng-maxlength' => '1000', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('maxlength')!!}