2020-05-08 05:06:24 +00:00
|
|
|
@extends('adminlte::page')
|
|
|
|
|
|
|
|
@section('title', 'Raspberry Network Team Management')
|
|
|
|
|
|
|
|
@section('content_header')
|
|
|
|
<h1>My Account / Apply / {{$vacancy->vacancyName}} Application</h1>
|
|
|
|
@stop
|
|
|
|
|
2020-05-08 07:10:25 +00:00
|
|
|
@section('js')
|
|
|
|
|
|
|
|
@if (session()->has('success'))
|
|
|
|
|
|
|
|
<script>
|
|
|
|
toastr.success("{{session('success')}}")
|
|
|
|
</script>
|
|
|
|
|
|
|
|
@elseif(session()->has('error'))
|
|
|
|
|
|
|
|
<script>
|
|
|
|
toastr.error("{{session('error')}}")
|
|
|
|
</script>
|
|
|
|
|
|
|
|
@endif
|
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
@if(!$isEligibleForApplication)
|
2020-05-08 07:10:25 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
<script>toastr.error("You do not have permission to view this page.", "Access denied")</script>
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
@endif
|
|
|
|
|
|
|
|
@stop
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
@section('content')
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
@if($isEligibleForApplication)
|
|
|
|
|
|
|
|
<div class="modal fade" tabindex="-1" id="confirm" role="dialog" aria-labelledby="modalConfirmLabel" aria-hidden="true">
|
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h5 class="modal-title" id="modalConfirmLabel">Please confirm</h5>
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
|
|
|
|
<p>Are you sure you want to submit your application? Please review each of your answers carefully before doing so.</p>
|
|
|
|
<p class="text-bold">Please note: Applications CANNOT be modified once they're submitted!</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-success" onclick="document.getElementById('submitApplicationForm').submit()"><i class="fas fa-check-double"></i> Accept & Send</button>
|
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Review</button>
|
|
|
|
</div>
|
2020-05-08 05:06:24 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
<div class="row">
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
<div class="col">
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
<div class="callout callout-success">
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
<p class="text-bold">You are applying for: {{$vacancy->vacancyName}}</p>
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
<p>We're glad you've decided to apply. Generally, applications take 48 hours to be processed and reviewed. Depending on the circumstances and the volume of applications, you may receive an answer in a shorter time.</p>
|
|
|
|
<p>Please fill out the form below. Keep all answers concise and complete. Please keep in mind that the age requirement is <b>at least 18 years old</b>.</p>
|
|
|
|
<p class="text-bold">Asking about your application will result in instant denial. Everything you need to know is here.</p>
|
|
|
|
|
|
|
|
</div>
|
2020-05-08 05:06:24 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
<div class="row">
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
<div class="col">
|
2020-05-08 05:06:24 +00:00
|
|
|
|
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
<div class="card">
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
<div class="card-header">
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
<div class="card-title"><h4>{{$vacancy->forms->formName}}</h4></div>
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
</div>
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
<div class="card-body">
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
<form action="{{route('saveApplicationForm', ['vacancySlug' => $vacancy->vacancySlug])}}" method="POST" id="submitApplicationForm">
|
|
|
|
@csrf
|
|
|
|
@foreach($preprocessedForm['fields'] as $fieldName => $field)
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
@switch ($field['type'])
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
@case('textarea')
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
<div class="form-group mt-2 mb-2">
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
<label for="{{$fieldName}}">{{$field['title']}}</label>
|
|
|
|
<textarea class="form-control" rows="7" name="{{$fieldName}}" id="{{$fieldName}}">
|
2020-05-08 05:06:24 +00:00
|
|
|
|
|
|
|
</textarea>
|
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
</div>
|
2020-05-08 07:10:25 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
@break
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
@case('textbox')
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
<div class="form-group mt-2 mb-2">
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
<label for="{{$fieldName}}">{{$field['title']}}</label>
|
|
|
|
<input type="text" name="{{$fieldName}}" id="{{$fieldName}}" class="form-control">
|
2020-05-08 05:06:24 +00:00
|
|
|
|
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
</div>
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
@break
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
@endswitch
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
@endforeach
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
</form>
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
</div>
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
<div class="card-footer text-center">
|
2020-05-08 05:06:24 +00:00
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
<button type="button" class="btn btn-success" onclick="$('#confirm').modal('show')"><i class="fas fa-paper-plane"></i> Send</button>
|
|
|
|
|
|
|
|
</div>
|
2020-05-08 05:06:24 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2020-05-10 05:36:42 +00:00
|
|
|
@else
|
|
|
|
|
|
|
|
<div class="alert alert-danger">
|
|
|
|
|
|
|
|
<p class="text-bold">Access denied</p>
|
|
|
|
|
|
|
|
<p>Your account is not permitted to submit another application. Please wait {{$eligibilityDaysRemaining}} more days before trying to submit an application.</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@endif
|
2020-05-08 05:06:24 +00:00
|
|
|
|
|
|
|
@stop
|