@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": formNotifications.branch_id.$touched && formNotifications.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', 'ng-pattern'=>getRegexPattern('name'), 'required'=> 'true', 'ng-class'=>'{"has-error": formNotifications.title.$touched && formNotifications.title.$invalid}', 'ng-minlength' => '4', 'ng-maxlength' => '50', )) }}
{!! getValidationMessage()!!} {!! getValidationMessage('pattern')!!} {!! getValidationMessage('minlength')!!} {!! getValidationMessage('maxlength')!!}
{{ Form::label('url', getphrase('url')) }} {{ Form::text('url', $value = null , $attributes = array('class'=>'form-control', 'placeholder' => 'www.sitename.com', )) }}
{{ Form::label('valid_from', getphrase('valid_from')) }} {{ Form::text('valid_from', $value = $date_from , $attributes = array('class'=>'input-sm form-control', 'placeholder' => '2015/7/17')) }}
{{ Form::label('valid_to', getphrase('valid_to')) }} {{ Form::text('valid_to', $value = $date_to , $attributes = array('class'=>'input-sm form-control', 'placeholder' => '2015/7/17')) }}
{{ Form::label('short_description', getphrase('short_description')) }} {{ Form::textarea('short_description', $value = null , $attributes = array('class'=>'form-control', 'rows'=>'5', 'placeholder' => getPhrase('short_description'))) }}
{{ Form::label('description', getphrase('description')) }} {{ Form::textarea('description', $value = null , $attributes = array('class'=>'form-control ckeditor', 'rows'=>'5', 'placeholder' => getPhrase('description'))) }}