@csrf
@if($userData->role_id == 1)
{{ Form::select('company_id',$companies,null,['class'=>'form-control select2','id'=>'company','placeholder' => 'Select Company']) }}
@else
{{ Form::hidden('company_id',($userData->role_id == 2 ? $userData->id : $userData->parent_user_id),['id'=>'company']) }}
@endif
{{ Form::text('start_date',Input::old('start_date'),['class'=>'form-control','id'=>'start_date','placeholder' => 'dd/mm/yyyy']) }}
@if(isset($errors) && $errors->first('start_date'))
{{ $errors->first('start_date') }}
@endif
{{ Form::text('end_date',Input::old('end_date'),['class'=>'form-control','id'=>'end_date','placeholder' => 'dd/mm/yyyy']) }}
@if(isset($errors) && $errors->first('end_date'))
{{ $errors->first('end_date') }}
@endif