관리-도구
편집 파일: 7b4a2ec8a36693718b66d8acb89cc2d456979784.php
<?php use App\Models\Jobpost; use App\Models\Jobapplication; ?> <style> a.theme-btn.text-dark.mr-3 { color: white !important; } .modal.show .modal-dialog { transform: translate(0%, -34%) !important; top: 50% !important; } .modal-dialog .modal-content { border-radius: 0; height: 320px !important; padding: 30px !important; } .job-listing { display: flex; justify-content: space-between; padding: 0px 0px 0px 30px; transition: all .5s ease; background: #3333; align-items: center; border: 4px solid black; margin: 20px 0 20px 0; } .job-listing p { margin: 0; font-size: 18px; color: black; } .job-listing a { background: black; color: white !important; padding: 17px 50px; } .job-listing:hover { background: black; } .job-listing:hover a { background: white; color: black !important; } .job-listing:hover p { color: white; } </style> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/css/bootstrap.min.css"> <?php $__env->startSection('content'); ?> <!-- notify modal --> <div class="modal fade" id="notificationModal" tabindex="-1" aria-labelledby="notificationModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="d-flex justify-content-between align-items-center pb-5"> <h1 class="modal-title" id="notificationModalLabel">Send Invitations</h1> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <!-- Form Inside Modal --> <form action="<?php echo e(url('/candidate-notifications')); ?>" method="POST"> <?php echo csrf_field(); ?> <input type="hidden" name="candidate_id" value="<?php echo e($data[0]->id); ?>" class="form-control"> <?php if(auth()->guard()->check()): ?> <input type="hidden" name="company_id" id="company_name" value="<?php echo e(auth()->user()->id); ?>" class="form-control"> <input type="hidden" name="company_name" value="<?php echo e(auth()->user()->name); ?>" class="form-control"> <input type="hidden" name="company_email" id="company_email" value="<?php echo e(auth()->user()->email); ?>" class="form-control"> <?php endif; ?> <div class="mb-3"> <label for="job_url" class="form-label">Select Job</label> <select class="form-control" name="job_url" > <?php if(auth()->check()): ?> <?php $__currentLoopData = App\Models\Jobpost::where('company_name', auth()->user()->name)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $datas): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($datas->id); ?>"><?php echo e($datas->job_title); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <option value="">Please log in to view your job posts.</option> <?php endif; ?> </select> </div> <button type="submit" class="btn btn-primary w-100">Send Link</button> </form> </div> </div> </div> </div> <section class="user_hero_sec"> <div class="container"> <div class="user_profile_main"> <div class="user_bg_image"><img class="img_Fluid" src="<?php echo e(asset('public/theme/saintsaccessories/images/user_bg_img.jpg')); ?>" alt=""></div> <div class="user_profile_image"><img src="<?php echo e((asset('public/uploads/profile/'.$data[0]->profile_picture) !='')? asset('public/uploads/profile/'.$data[0]->profile_picture) : asset('public/theme/saintsaccessories/images/user_profile_picture.jpg')); ?>" alt=""></div> <div class="user_info"> <div class="d-flex justify-content-between"> <div> <h2 class="title"><?php echo e($data[0]->name); ?></h2> <h6 class="subtitle"><?php echo e($data[0]->email?? ''); ?></h6> <h6 class="subtitle"><?php echo e($data[0]->phone?? ''); ?></h6> <ul class="about_user_location" > <li>Minimun Desired Pay: <?php echo e($data[0]->minimum_pay); ?></li> </ul> <?php if(Auth::check()): ?> <?php if($data[0]->id == Auth::user()->id): ?> <a href="<?php echo e(url('/user-dashboard/'.Auth::user()->id)); ?>" class="theme-btn text-dark mr-3">Edit Profile</a> <?php endif; ?> <?php endif; ?> <!--<div class="follow_btn">--> <!-- <a href="#"><i class='bx bx-plus'></i>Follow</a>--> <!--</div>--> </div> <div class="employer-spotlight"> <!--<h6 class="mt-5">Employer Spotlight </h6>--> <!--<p>Coming Soon</p>--> <?php if(Auth::user()): ?> <?php if(Auth::user()->user_type == 'company'): ?> <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#notificationModal">Send Job Invitation</button> <?php endif; ?> <?php else: ?> <?php endif; ?> </div> </div> </div> <div class="about_other_info_about_user"> <?php if(session('success')): ?> <div class="alert alert-success"> <?php echo e(session('success')); ?> </div> <?php endif; ?> <!-- Nav tabs --> <div class="tab-container"> <div class="tab active" onclick="showTab('tab2')">Details</div> <div class="tab" onclick="showTab('tab3')">Applied Jobs</div> <div class="tab" onclick="showTab('tab4')">Career help </div> <div class="tab" onclick="showTab('tab5')">Roundtable Interview Request Form</div> <?php if(Auth::user()): ?> <?php if(Auth::user()->user_type == 'customer'): ?> <div class="tab" onclick="showTab('tab6')">See Job Notifications</div> <?php endif; ?> <?php else: ?> <?php endif; ?> </div> </div> </div> </div> </section> <section class="about_tabs_info"> <div class="container"> <div class="about_com"> <!-- Tab panes --> <div class="tab-content active" id="tab2"> <div class="about_content"> <div> <h3>Employee Information</h3> <p><?php echo e($data[0]->name); ?></p> <h6 class="subtitle">Purpose Of Joining This Platform</h6> <p><?php echo e($data[0]->purpose); ?></p> <h6 class="subtitle">Looking for Job</h6> <p><?php echo e($data[0]->job_title); ?></p> <h6 class="subtitle">Looking In Location</h6> <p><?php echo e($data[0]->job_location); ?></p> <h6 class="subtitle">Looking For Type Of Workplace</h6> <p><?php echo e($data[0]->workplace_type); ?></p> <h6 class="subtitle">Desired Pay</h6> <p>$<?php echo e($data[0]->desired_pay); ?></p> <!--<h6 class="subtitle">Minimum Desired Pay</h6>--> <!--<p>$<?php echo e($data[0]->minimum_pay); ?></p>--> </div> <div> <?php if(auth()->guard()->check()): ?> <?php if(Auth::user()->id == 1): ?> <h3>Contact Details</h3> <h6 class="subtitle">Email</h6> <p><?php echo e($data[0]->email); ?></p> <h6 class="subtitle">Phone</h6> <p><?php echo e($data[0]->phone); ?></p> <?php endif; ?> <?php endif; ?> <?php if($data[0]->user_resume != ''): ?> <div class="mt-5"> <a href="<?php echo e(asset('public/uploads/resume/'.$data[0]->user_resume)); ?>" class="theme-btn ml-2 mt-2" target="_blank">View Resume</a><br> <a href="<?php echo e(asset('public/uploads/certificates/'.$data[0]->user_certificate)); ?>" class="theme-btn ml-2 mt-3" target="_blank">View Certificate</a> </div> <?php endif; ?> </div> </div> </div> <div class="tab-content " id="tab3"> <div class="job_post d-none"> <div class="d-flex"> <span><i class='bx bxs-briefcase'></i></span> <div><h2>Are you hiring?</h2><p>Attract qualified applicants by posting and showcasing jobs on your page.</p></div> </div> <div class="follow_btn"> </div> </div> <div class="job_post"> <div class="job_persons_list"> <h2>All Applied Jobs</h2> <?php if(Auth::check()): ?> <?php $appliedJobs= Jobapplication::where('user_id',Auth::user()->id)->get(); $allJobs = Jobpost::whereIn('id',$appliedJobs)->get(); ?> <?php $__currentLoopData = $allJobs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $job): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="d-flex mt-3" style="border-bottom:1px solid beige"> <div> <span><i class='bx bxs-briefcase'></i></span> <img src="<?php echo e((asset('public/uploads/companyprofiles/'.$data[0]->companyprofileimage) !='')? asset('public/uploads/companyprofiles/'.$data[0]->company_profile_image) : asset('public/theme/saintsaccessories/images/user_profile_picture.jpg')); ?>" alt=""> </div> <div> <a href="<?php echo e(url('/company_detail/'.$job->id)); ?>"><h2><?php echo e($job->job_title); ?></h2></a> <P><?php echo e($job->company_name); ?></P> <p> Posted on( <?php echo e($job->created_at->format('Y-m-d')); ?> ) - Expire on( <?php echo e($job->job_post_expiry_date); ?> )</p> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </div> </div> </div> <div class="tab-content active" id="tab4"> <div class="about_content"> <div> <h3 class="mt-3">Resume Review</h3> <p>Coming Soon</p> <h3 class="mt-3">Interview Prep </h3> <p>Coming Soon</p> <!--</div>--> <!--<div>--> <h3 class="mt-3">Skill Builders </h3> <p>Coming Soon</p> </div> </div> </div> <!--<div class="tab-content active" id="tab5">--> <!-- <div class="about_content">--> <!-- <div>--> <!-- <form action="<?php echo e(url('/employe-roundtable')); ?>" method="POST">--> <!-- <?php echo csrf_field(); ?>--> <!-- <h3>Register For Roundtable</h3>--> <!-- <h2>Personal Details:</h2>--> <!-- <div class="row">--> <!-- <div class="col input-field">--> <!-- <label for="name" class="form-label">Full Name:</label>--> <!-- <input type="text" class="form-control" name=--> <!-- "full_name" aria-label="First name" required>--> <!-- </div>--> <!-- <div class="col input-field">--> <!-- <label for="inputEmail4" class="form-label"> Email Address:</label>--> <!-- <input type="text" class="form-control" name=--> <!-- "email_address"aria-label="First name" required>--> <!-- </div>--> <!-- <div class="col input-field">--> <!-- <label for="interest" class="form-label"> Position or Field of Interest:</label>--> <!-- <input type="text" class="form-control" name="position_field" aria-label="First name" required>--> <!-- </div>--> <!-- </div>--> <!-- <h2>Top Three Preferred Companies:</h2>--> <!-- <div class="row">--> <!-- <div class="col input-field">--> <!-- <input type="text" class="form-control" name="preferred_companies[]" aria-label="First name" required>--> <!-- </div>--> <!-- <div class="col input-field">--> <!-- <input type="text" class="form-control" name="preferred_companies[]" aria-label="Last name">--> <!-- </div>--> <!-- <div class="col input-field">--> <!-- <input type="text" class="form-control " name="preferred_companies[]" aria-label="Last name">--> <!-- </div>--> <!-- </div>--> <!-- <h2>Top 5 Skills or Assets:</h2>--> <!-- <div class="row">--> <!-- <div class="col input-field">--> <!-- <input type="text" name="skills[]" class="form-control" required>--> <!-- </div>--> <!-- <div class="col input-field">--> <!-- <input type="text" name="skills[]" class="form-control">--> <!-- </div>--> <!-- <div class="col input-field">--> <!-- <input type="text" name="skills[]" class="form-control" aria-label="Last name">--> <!-- </div>--> <!-- <div class="col input-field">--> <!-- <input type="text" name="skills[]" class="form-control " aria-label="Last name">--> <!-- </div>--> <!-- <div class="col input-field">--> <!-- <input type="text" name="skills[]" class="form-control " aria-label="Last name">--> <!-- </div>--> <!-- </div>--> <!-- <div class="contact-button">--> <!-- <button type="submit" class="theme-btn">Submit</button>--> <!-- </div>--> <!-- </form>--> <!-- </div>--> <!-- </div>--> <!--</div>--> <div class="tab-content" id="tab6"> <div style="display: block;" class="about_content"> <h2>Invitations</h2> <?php $__currentLoopData = App\Models\CandidateNotification::where('candidate_id', auth()->user()->id)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $jobpost): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="job-listing"> <p><strong>Company Name:</strong> <?php echo e($jobpost->company_name); ?></p> <a href="<?php echo e(url('company_detail/' . $jobpost->job_url)); ?>" target="_blank">Apply Now</a> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </div> </div> </section> <?php $__env->stopSection(); ?> <?php $__env->startSection('js-script'); ?> <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/js/bootstrap.bundle.min.js"></script> <script> function showTab(tabId) { // Hide all tab contents var tabContents = document.getElementsByClassName("tab-content"); for (var i = 0; i < tabContents.length; i++) { tabContents[i].classList.remove("active"); } // Show the selected tab content var selectedTab = document.getElementById(tabId); selectedTab.classList.add("active"); // Highlight the active tab var tabs = document.getElementsByClassName("tab"); for (var j = 0; j < tabs.length; j++) { tabs[j].classList.remove("active"); } event.target.classList.add("active"); } </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('theme.saintsaccessories.websiteEcom', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/eraas/public_html/resources/views/theme/saintsaccessories/user-profile.blade.php ENDPATH**/ ?>