|
@@ -0,0 +1,593 @@
|
|
|
+<?php
|
|
|
+$items =[
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'Application Submitted',
|
|
|
+ 'bool_prop' => 'is_application_submitted',
|
|
|
+ 'set_true' => 'setIsApplicationSubmittedToTrue',
|
|
|
+ 'set_false' => 'setIsApplicationSubmittedToFalse'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'Non Responsive',
|
|
|
+ 'bool_prop' => 'is_non_responsive',
|
|
|
+ 'set_true' => 'setIsNonResponsiveToTrue',
|
|
|
+ 'set_false' => 'setIsNonResponsiveToFalse'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'Withdrawn',
|
|
|
+ 'bool_prop' => 'is_withdrawn',
|
|
|
+ 'set_true' => 'setIsWithdrawnToTrue',
|
|
|
+ 'set_false' => 'setIsWithdrawnToFalse'
|
|
|
+
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'Withdrawn Communication Done',
|
|
|
+ 'bool_prop' => 'is_withdrawn_communication_done',
|
|
|
+ 'set_true' => 'setIsWithdrawnCommunicationDoneToTrue',
|
|
|
+ 'set_false' => 'setIsWithdrawnCommunicationDoneToFalse',
|
|
|
+ 'preconditions' => 'is_withdrawn'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'Cancelled',
|
|
|
+ 'bool_prop' => 'is_cancelled',
|
|
|
+ 'set_true' => 'setIsCancelledToTrue',
|
|
|
+ 'set_false' => 'setIsCancelledToFalse'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'CancelledCommunicationDone',
|
|
|
+ 'bool_prop' => 'is_cancelled_communication_done',
|
|
|
+ 'set_true' => 'setIsCancelledCommunicationDoneToTrue',
|
|
|
+ 'set_false' => 'setIsCancelledCommunicationDoneToFalse',
|
|
|
+ 'preconditions' => 'is_cancelled'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'Spam',
|
|
|
+ 'bool_prop' => 'is_spam',
|
|
|
+ 'set_true' => 'setIsSpamToTrue',
|
|
|
+ 'set_false' => 'setIsSpamToFalse'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'Waitlisted',
|
|
|
+ 'bool_prop' => 'is_waitlisted',
|
|
|
+ 'set_true' => 'setIsWaitlistedToTrue',
|
|
|
+ 'set_false' => 'setIsWaitlistedToFalse'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'Waitlisted Communication Done',
|
|
|
+ 'bool_prop' => 'is_waitlisted_communication_done',
|
|
|
+ 'set_true' => 'setIsWaitlistedCommunicationDoneToTrue',
|
|
|
+ 'set_false' => 'setIsWaitlistedCommunicationDoneToFalse',
|
|
|
+ 'preconditions' => 'is_cancelled'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'Rejected',
|
|
|
+ 'bool_prop' => 'is_rejected',
|
|
|
+ 'set_true' => 'setIsRejectedToTrue',
|
|
|
+ 'set_false' => 'setIsRejectedToFalse'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'RejectedCommunicationDone',
|
|
|
+ 'bool_prop' => 'is_rejected_communication_done',
|
|
|
+ 'set_true' => 'setIsRejectedCommunicationDoneToTrue',
|
|
|
+ 'set_false' => 'setIsRejectedCommunicationDoneToFalse',
|
|
|
+ 'preconditions' => 'is_rejected'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'Resigned',
|
|
|
+ 'bool_prop' => 'is_resigned',
|
|
|
+ 'set_true' => 'setIsResignedToTrue',
|
|
|
+ 'set_false' => 'setIsResignedToFalse'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'ResignedCommunicationDone',
|
|
|
+ 'bool_prop' => 'is_resigned_communication_done',
|
|
|
+ 'set_true' => 'setIsResignedCommunicationDoneToTrue',
|
|
|
+ 'set_false' => 'setIsResignedCommunicationDoneToFalse',
|
|
|
+ 'preconditions' => 'is_resigned'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'Terminated',
|
|
|
+ 'bool_prop' => 'is_terminated',
|
|
|
+ 'set_true' => 'setIsTerminatedToTrue',
|
|
|
+ 'set_false' => 'setIsTerminatedToFalse'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'TerminatedCommunicationDone',
|
|
|
+ 'bool_prop' => 'is_terminated_communication_done',
|
|
|
+ 'set_true' => 'setIsTerminatedCommunicationDoneToTrue',
|
|
|
+ 'set_false' => 'setIsTerminatedCommunicationDoneToFalse',
|
|
|
+ 'preconditions' => 'is_terminated'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'DNC',
|
|
|
+ 'bool_prop' => 'is_dnc',
|
|
|
+ 'set_true' => 'setIsDncToTrue',
|
|
|
+ 'set_false' => 'setIsDncToFalse'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'Application Received',
|
|
|
+ 'bool_prop' => 'is_application_received',
|
|
|
+ 'set_true' => 'setIsApplicationReceivedToTrue',
|
|
|
+ 'set_false' => 'setIsApplicationReceivedToFalse'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'Problem w/ Application',
|
|
|
+ 'bool_prop' => 'is_problem_with_application',
|
|
|
+ 'set_true' => 'setIsProblemWithApplicationToTrue',
|
|
|
+ 'set_false' => 'setIsProblemWithApplicationToFalse'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'Applicant Contacted',
|
|
|
+ 'bool_prop' => 'has_applicant_been_contacted',
|
|
|
+ 'set_true' => 'setHasApplicantBeenContactedToTrue',
|
|
|
+ 'set_false' => 'setHasApplicantBeenContactedToFalse'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'Awaiting Interviewer Decision',
|
|
|
+ 'bool_prop' => 'is_awaiting_interviewer_decision',
|
|
|
+ 'set_true' => 'setIsAwaitingInterviewerDecisionToTrue',
|
|
|
+ 'set_false' => 'setIsAwaitingInterviewerDecisionToFalse'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'Accepted By HR',
|
|
|
+ 'bool_prop' => 'is_accepted_by_hr',
|
|
|
+ 'set_true' => 'setIsAcceptedByHrToTrue',
|
|
|
+ 'set_false' => 'setIsAcceptedByHrToFalse'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'All Needed Documents Sent',
|
|
|
+ 'bool_prop' => 'are_all_needed_documents_sent',
|
|
|
+ 'set_true' => 'setAreAllNeededDocumentsSentToTrue',
|
|
|
+ 'set_false' => 'setAreAllNeededDocumentsSentToFalse'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'Problem With Documents',
|
|
|
+ 'bool_prop' => 'is_problem_with_documents',
|
|
|
+ 'set_true' => 'setIsProblemWithDocumentsToTrue',
|
|
|
+ 'set_false' => 'setIsProblemWithDocumentsToFalse'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'Exp. Profile Submitted',
|
|
|
+ 'bool_prop' => 'is_payroll_and_credentialing_submitted',
|
|
|
+ 'set_true' => 'setIsPayrollAndCredentialingSubmittedToTrue',
|
|
|
+ 'set_false' => 'setIsPayrollAndCredentialingSubmittedToFalse'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'Problem With Payroll Or Credentialing',
|
|
|
+ 'bool_prop' => 'is_problem_with_payroll_or_credentialing',
|
|
|
+ 'set_true' => 'setIsProblemWithPayrollOrCredentialingToTrue',
|
|
|
+ 'set_false' => 'setIsProblemWithPayrollOrCredentialingToFalse'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'Exp. Profile Verified - L1',
|
|
|
+ 'bool_prop' => 'is_payroll_information_verified',
|
|
|
+ 'set_true' => 'setIsPayrollInformationVerifiedToTrue',
|
|
|
+ 'set_false' => 'setIsPayrollInformationVerifiedToFalse'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'Exp. Profile Verified - L2',
|
|
|
+ 'bool_prop' => 'is_credentialing_information_verified',
|
|
|
+ 'set_true' => 'setIsCredentialingInformationVerifiedToTrue',
|
|
|
+ 'set_false' => 'setIsCredentialingInformationVerifiedToFalse'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'Background Check Cleared',
|
|
|
+ 'bool_prop' => 'is_background_check_cleared',
|
|
|
+ 'set_true' => 'setIsBackgroundCheckClearedToTrue',
|
|
|
+ 'set_false' => 'setIsBackgroundCheckClearedToFalse'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'Trained',
|
|
|
+ 'bool_prop' => 'is_trained',
|
|
|
+ 'set_true' => 'setIsTrainedToTrue',
|
|
|
+ 'set_false' => 'setIsTrainedToFalse'
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ 'label' => 'Working',
|
|
|
+ 'bool_prop' => 'is_working',
|
|
|
+ 'set_true' => 'setIsWorkingToTrue',
|
|
|
+ 'set_false' => 'setIsWorkingToFalse'
|
|
|
+ ]
|
|
|
+];
|
|
|
+
|
|
|
+$currentPro = $patient->shadowOfPro;
|
|
|
+?>
|
|
|
+
|
|
|
+<div class="mb-2 pt-2 pb-2 border-top">
|
|
|
+<div class="hr-steps-container">
|
|
|
+ <div>
|
|
|
+ <div>
|
|
|
+ @if($currentPro->is_training_needed)
|
|
|
+ <div class="d-flex align-items-center justify-content-between mb-2">
|
|
|
+ <h2 class="mb-0 font-weight-bold">Training Is Needed: </h2>
|
|
|
+ <div>
|
|
|
+ <div moe relative large>
|
|
|
+ <a href="#" start show class="text-sm font-weight-bold">
|
|
|
+ <i class="fa fa-edit"></i> Update
|
|
|
+ </a>
|
|
|
+ <form url="/api/proHr/updateTrainingNeededInformation" right>
|
|
|
+ <input type="hidden" name="uid" value="{{$currentPro->uid}}">
|
|
|
+
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Category</label>
|
|
|
+ <input type="text" name="category" class="form-control input-sm" value="{{$currentPro->training_needed_for_category}}">
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Description</label>
|
|
|
+ <textarea name="description" class="form-control input-sm">{{$currentPro->training_needed_for_description}}</textarea>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Memo</label>
|
|
|
+ <textarea name="memo" class="form-control input-sm">{{$currentPro->is_training_needed_memo}}</textarea>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Training Needed with Department</label>
|
|
|
+ <select name="trainingNeededWithDepartmentUid" id="" class="form-control input-sm">
|
|
|
+ <option value="">--select--</option>
|
|
|
+ @foreach($departments as $department)
|
|
|
+ <option value="{{$department->uid}}" {{$department->id == $currentPro->training_needed_with_department_id? 'selected': ''}}>{{$department->name}}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Training Needed with Pro</label>
|
|
|
+ <select name="trainingNeededWithProUid" id="" class="form-control input-sm">
|
|
|
+ <option value="">--select--</option>
|
|
|
+ @foreach($adminPros as $adminPro)
|
|
|
+ <option value="{{$adminPro->uid}}" {{$adminPro->id == $currentPro->training_needed_with_pro_id? 'selected': ''}}>{{$adminPro->name_first}} {{$adminPro->name_last}}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="">
|
|
|
+ <button type="button" class="btn btn-sm btn-primary" submit>Submit</button>
|
|
|
+ <button type="button" class="btn btn-sm btn-default border" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div moe relative>
|
|
|
+ <a href="#" class="ml-2 text-sm font-weight-bold" start show>
|
|
|
+ <i class="fa fa-undo text-danger"></i> Undo
|
|
|
+ </a>
|
|
|
+ <form url="/api/proHr/undoMakeTrainingNeeded" right>
|
|
|
+ <input type="hidden" name="uid" value="{{$currentPro->uid}}">
|
|
|
+
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Are you sure?</label>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="">
|
|
|
+ <button type="button" class="btn btn-sm btn-primary" submit>Submit</button>
|
|
|
+ <button type="button" class="btn btn-sm btn-default border" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="table-responsive mb-2">
|
|
|
+ <table class="table table-sm table-condensed table-bordered mb-0">
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">Category</td>
|
|
|
+ <td>{{$currentPro->training_needed_for_category}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">Description</td>
|
|
|
+ <td>{{$currentPro->training_needed_for_description}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">Memo</td>
|
|
|
+ <td>{{$currentPro->is_training_needed_memo}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">Pro</td>
|
|
|
+ <td>{{$currentPro->trainingNeededWithPro ? $currentPro->trainingNeededWithPro->name_display : '-'}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">Department</td>
|
|
|
+ <td>{{$currentPro->trainingNeededWithDepartment ? $currentPro->trainingNeededWithDepartment->name : '-'}}</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ @else
|
|
|
+ <div moe relative large>
|
|
|
+ <a href="#" start show>
|
|
|
+ <i class="fas fa-chalkboard-teacher"></i> Set Training Needed
|
|
|
+ </a>
|
|
|
+ <form url="/api/proHr/makeTrainingNeeded" right>
|
|
|
+ <input type="hidden" name="uid" value="{{$currentPro->uid}}">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Category</label>
|
|
|
+ <input type="text" name="category" class="form-control input-sm">
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Description</label>
|
|
|
+ <textarea name="description" class="form-control input-sm"></textarea>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Memo</label>
|
|
|
+ <textarea name="memo" class="form-control input-sm"></textarea>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Training Needed with Department</label>
|
|
|
+ <select name="trainingNeededWithDepartmentUid" id="" class="form-control input-sm">
|
|
|
+ <option value="">--select--</option>
|
|
|
+ @foreach($departments as $department)
|
|
|
+ <option value="{{$department->uid}}">{{$department->name}}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Training Needed with Pro</label>
|
|
|
+ <select name="trainingNeededWithProUid" id="" class="form-control input-sm">
|
|
|
+ <option value="">--select--</option>
|
|
|
+ @foreach($adminPros as $adminPro)
|
|
|
+ <option value="{{$adminPro->uid}}" >{{$adminPro->name_first}} {{$adminPro->name_last}}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="">
|
|
|
+ <button type="button" class="btn btn-sm btn-primary" submit>Submit</button>
|
|
|
+ <button type="button" class="btn btn-sm btn-default border" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div>
|
|
|
+ @if($currentPro->is_interview_needed)
|
|
|
+ <div class="d-flex align-items-center justify-content-between mb-2">
|
|
|
+ <h2 class="mb-0 font-weight-bold">Interview Is Needed </h2>
|
|
|
+ <div>
|
|
|
+ <div moe relative large>
|
|
|
+ <a href="#" start show class="text-sm font-weight-bold">
|
|
|
+ <i class="fa fa-edit"></i> Update
|
|
|
+ </a>
|
|
|
+ <form url="/api/proHr/updateInterviewNeededInformation" right>
|
|
|
+ <input type="hidden" name="uid" value="{{$currentPro->uid}}">
|
|
|
+
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Category</label>
|
|
|
+ <input type="text" name="category" class="form-control input-sm" value="{{$currentPro->interview_needed_for_category}}">
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Description</label>
|
|
|
+ <textarea name="description" class="form-control input-sm">{{$currentPro->interview_needed_for_description}}</textarea>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Memo</label>
|
|
|
+ <textarea name="memo" class="form-control input-sm">{{$currentPro->is_interview_needed_memo}}</textarea>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Training Needed with Department</label>
|
|
|
+ <select name="interviewNeededWithDepartmentUid" id="" class="form-control input-sm">
|
|
|
+ <option value="">--select--</option>
|
|
|
+ @foreach($departments as $department)
|
|
|
+ <option value="{{$department->uid}}" {{$department->id == $currentPro->interview_needed_with_department_id? 'selected': ''}}>{{$department->name}}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Training Needed with Pro</label>
|
|
|
+ <select name="interviewNeededWithProUid" class="form-control input-sm">
|
|
|
+ <option value="">--select--</option>
|
|
|
+ @foreach($adminPros as $adminPro)
|
|
|
+ <option value="{{$adminPro->uid}}" {{$adminPro->id == $currentPro->interview_needed_with_pro_id? 'selected': ''}}>{{$adminPro->name_first}} {{$adminPro->name_last}}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="">
|
|
|
+ <button type="button" class="btn btn-sm btn-primary" submit>Submit</button>
|
|
|
+ <button type="button" class="btn btn-sm btn-default border" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ <div moe relative>
|
|
|
+ <a href="#" start show class="ml-2 text-sm font-weight-bold">
|
|
|
+ <i class="fa fa-undo text-danger"></i> Undo
|
|
|
+ </a>
|
|
|
+ <form url="/api/proHr/undoMakeInterviewNeeded" right>
|
|
|
+ <input type="hidden" name="uid" value="{{$currentPro->uid}}">
|
|
|
+
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Are you sure?</label>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="">
|
|
|
+ <button type="button" class="btn btn-sm btn-primary" submit>Submit</button>
|
|
|
+ <button type="button" class="btn btn-sm btn-default border" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="table-responsive mb-2">
|
|
|
+ <table class="table table-sm table-condensed table-bordered mb-0">
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">Category</td>
|
|
|
+ <td>{{$currentPro->interview_needed_for_category}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">Description</td>
|
|
|
+ <td>{{$currentPro->interview_needed_for_description}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">Memo</td>
|
|
|
+ <td>{{$currentPro->is_interview_needed_memo}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">Pro</td>
|
|
|
+ <td>{{$currentPro->interviewNeededWithPro ? $currentPro->interviewNeededWithPro->name_display : '-'}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">Department</td>
|
|
|
+ <td>{{$currentPro->interviewNeededWithDepartment ? $currentPro->interviewNeededWithDepartment->name : '-'}}</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ @else
|
|
|
+ <div moe relative large>
|
|
|
+ <a href="#" start show>
|
|
|
+ <i class="fa fa-handshake"></i> Set Interview Needed
|
|
|
+ </a>
|
|
|
+ <form url="/api/proHr/makeInterviewNeeded" right>
|
|
|
+ <input type="hidden" name="uid" value="{{$currentPro->uid}}">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Category</label>
|
|
|
+ <input type="text" name="category" class="form-control input-sm">
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Description</label>
|
|
|
+ <textarea name="description" class="form-control input-sm"></textarea>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Memo</label>
|
|
|
+ <textarea name="memo" class="form-control input-sm"></textarea>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Interview Needed with Department</label>
|
|
|
+ <select name="interviewNeededWithDepartmentUid" id="" class="form-control input-sm">
|
|
|
+ <option value="">--select--</option>
|
|
|
+ @foreach($departments as $department)
|
|
|
+ <option value="{{$department->uid}}">{{$department->name}}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Interview Needed with Pro</label>
|
|
|
+ <select name="interviewNeededWithProUid" class="form-control input-sm">
|
|
|
+ <option value="">--select--</option>
|
|
|
+ @foreach($adminPros as $adminPro)
|
|
|
+ <option value="{{$adminPro->uid}}">{{$adminPro->name_first}} {{$adminPro->name_last}}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="">
|
|
|
+ <button type="button" class="btn btn-sm btn-primary" submit>Submit</button>
|
|
|
+ <button type="button" class="btn btn-sm btn-default border" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="mt-3">
|
|
|
+ <div class="d-flex align-items-baseline">
|
|
|
+ <div class="mb-0 mr-4">
|
|
|
+ <p class="mb-1"><b>New HR Stage:</b> {{ucwords(implode(' ', explode('_', $currentPro->new_hr_stage)))}} </p>
|
|
|
+ <p class="mb-1"><b>New HR Stage By:</b> {{$currentPro->newHrStageByPro ? $currentPro->newHrStageByPro->displayName() : '-'}} </p>
|
|
|
+ </div>
|
|
|
+ <div moe relative>
|
|
|
+ <a start show>
|
|
|
+ <i class="fa fa-sync"></i>
|
|
|
+ </a>
|
|
|
+ <form url="/api/pro/refreshHrStage" class="mcp-theme-1" right>
|
|
|
+ <input type="hidden" name="uid" value="{{$patient->shadowOfPro->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-secondary text-sm">Are you sure?</label>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div>
|
|
|
+ <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
+ <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <div class="mb-1 mr-3">
|
|
|
+ <p class="mb-1"><b>Previous HR Stage:</b> {{ucwords(implode(' ', explode('_', $currentPro->previous_hr_stage)))}} </p>
|
|
|
+ <p class="mb-1"><b>Previous HR Stage By:</b> {{$currentPro->previousHrStageByPro ? $currentPro->previousHrStageByPro->displayName() : '-'}} </p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <table class="table table-sm table-striped table-bordered vertical-align-middle mt-3">
|
|
|
+ @foreach($items as $item)
|
|
|
+ @if(!isset($item['preconditions'] )|| (isset($item['preconditions']) && $currentPro->{$item['preconditions']}) )
|
|
|
+ @if( $item['bool_prop'] == 'is_problem_with_application' || $item['bool_prop'] == 'is_non_responsive') @continue @endif
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ {{ $item['label'] }}
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ @if($currentPro->{$item['bool_prop']})
|
|
|
+ <div moe relative>
|
|
|
+ <a href="#" start show>
|
|
|
+ <div class="custom-control custom-switch">
|
|
|
+ <input type="checkbox" class="custom-control-input" id="{{ $item['bool_prop'] }}-switch" checked />
|
|
|
+ <label class="custom-control-label" for="{{ $item['bool_prop'] }}-switch"> </label>
|
|
|
+ </div>
|
|
|
+ </a>
|
|
|
+ <form url="/api/proHr/{{$item['set_false']}}" right>
|
|
|
+ <input type="hidden" name="uid" value="{{$currentPro->uid}}">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Are you sure?</label>
|
|
|
+ </div>
|
|
|
+ <div class="">
|
|
|
+ <button type="button" class="btn btn-sm btn-primary" submit>Submit</button>
|
|
|
+ <button type="button" class="btn btn-sm btn-default border" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @else
|
|
|
+ <div moe relative>
|
|
|
+ <a href="#" start show>
|
|
|
+ <div class="custom-control custom-switch">
|
|
|
+ <input type="checkbox" class="custom-control-input" id="{{ $item['bool_prop'] }}-switch" />
|
|
|
+ <label class="custom-control-label" for="{{ $item['bool_prop'] }}-switch"> </label>
|
|
|
+ </div>
|
|
|
+ </a>
|
|
|
+ <form url="/api/proHr/{{$item['set_true']}}" right>
|
|
|
+ <input type="hidden" name="uid" value="{{$currentPro->uid}}">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Are you sure?</label>
|
|
|
+ </div>
|
|
|
+ <div class="">
|
|
|
+ <button type="button" class="btn btn-sm btn-primary" submit>Submit</button>
|
|
|
+ <button type="button" class="btn btn-sm btn-default border" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endif
|
|
|
+ @endforeach
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+</div>
|