@if(checkUserModuleAccess(17,'write'))

Contractor Invitation Link Generate

Generate registration link for Contractors
{{ Form::open(['route' => 'company_invitation.send','class'=>'form-horizontal form-material','data-parsley-validate'=>'','method'=>'POST','autocomplete'=>'off','enctype'=>'multipart/form-data','id'=>'companyInvitationForm']) }} @csrf
@if(isset($userData) && ($userData->role_id < 2)) @php $companies = getCompanies(); @endphp
{{ Form::select('company_id',$companies,(Input::old('company_id') ? Input::old('company_id') : (isset($reference_invitation->company_data) && $reference_invitation->company_data ? $reference_invitation->company_data->id : '') ),['class'=>'form-control select2','data-parsley-required'=>'true','placeholder' => 'Select Company']) }} @if(isset($errors) && $errors->first('company_id')) {{ $errors->first('company_id') }} @endif
@else @if(isset($userData) && ($userData->role_id > 2)) {{ Form::hidden('company_id',$userData->parent_user_id) }} @else {{ Form::hidden('company_id',$userData->id) }} @endif @endif
{{ Form::text('email',(Input::old('email') ? Input::old('email') : (isset($reference_invitation) && $reference_invitation ? $reference_invitation->email : '') ),['class'=>'form-control','placeholder' => 'Invitation Email','data-parsley-type'=>'email']) }} @if(isset($errors) && $errors->first('email')) {{ $errors->first('email') }} @endif

OR

{{ Form::file('invitation_emails',['class'=>'form-control','id'=>'invitation_emails','placeholder' => 'Invitation Email']) }} @if(isset($errors) && $errors->first('invitation_emails')) {{ $errors->first('invitation_emails') }} @endif
{{ Form::close() }}
@endif