관리-도구
편집 파일: 6f713ce728c35b1fd3e111d144507ff1df5620e5.php
<?php use App\Models\Jobpost; use App\Models\Company; $allJobs = Jobpost::all(); if(isset($filteredJobs)){ $allJobs = $filteredJobs; } ?> <style> .hidden { display: none; } .tabs-custom.general button#show-all-btn { background: black; color: white; width: fit-content; padding: 13px 60px; transition: all .6s ease; border-radius: 20px; margin: 0 0 0 20px; } .tabs-custom.general button#show-all-btn:hover { background: transparent; color: black; border: 1px solid black; transform: translate(0px, -10px); } </style> <?php $__env->startSection('content'); ?> <!-- Find the perfect Employers Section Start --> <section class="perfect-employer"> <div class="container"> <div class="row"> <div class="col-lg-12"> <div class="employer-txt"> <h2><?php echo get_trans_option('jobseekerpgetitle'); ?></h2> </div> <!--Old --> <div class="employerkeyword-box"> <div class="row"> <form action="<?php echo e(route('search-jobs')); ?>" method="GET"> <div class="row"> <div class="col-lg-4" > <div class="company-title"> <input type="search" name="job_title" placeholder="Job Title or Keywords"> </div> </div> <div class="col-lg-4"> <div class="city-postcode"> <select name="job_country" id="country-select"> <option value="">Select Country</option> </select> </div> </div> <div class="col-lg-4"> <div class="location-search"> <div class="location-selects"> <select name="job_city" id="city-select"> <option value="">Select City</option> </select> </div> <div class="job-searchs"> <button type="submit"><span><i class='bx bx-search'></i></span></button> </div> </div> </div> <div class="col-lg-12"> <div class="jobs-category"> <div class="job-related"> <select name="job_type"> <option value="" selected disabled>Job Type</option> <option value="Full-Time">Full-Time</option> <option value="Part-Time">Part-Time</option> <option value="Contract">Contract</option> </select> </div> <div class="job-related"> <select name="experience_level"> <option value="" selected disabled>Experience Level</option> <option value="Experienced">Experienced</option> <option value="Mid-Level">Mid-Level</option> <option value="Junior">Junior</option> </select> </div> <div class="job-related"> <select name="estimated_salary"> <option value="" selected disabled>Salary estimate</option> <option value="5000-Above">$5000-Above</option> <option value="3000-5000">$3000-$5000</option> <option value="1000-3000">$1000-$3000</option> <option value="1-1000">$1-$1000</option> </select> </div> </div> </div> </div> </form> </div> </div> </div> </div> </section> <!-- Find the perfect Employers Section End --> <section class="featured-job"> <div class="container"> <div class="row"> <div class="col-lg-12"> <div class="feature-txt"> <h2>Pinned Jobs</h2> </div> </div> <?php $__currentLoopData = App\Models\JobPost::where('pinned_jobs', 1)->limit(3)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $job): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-lg-4"> <div class="technical-writer"> <div class="business-icon"> <!--<img src="<?php echo e(asset('public/theme/saintsaccessories/images/Icon-awesome-business-time.png')); ?>" alt="">--> <h6><?php echo e($job->industry); ?></h6> </div> <h5><a href="<?php echo e(url('company_detail/'.$job->id)); ?>"><?php echo e($job->job_title); ?></a></h5> <div class="row"> <div class="col-lg-8 p-0"> <div class="san-fransico"> <span><i class='bx bx-world'></i></span> <p><?php echo e($job->job_location); ?></p> </div> </div> <div class="col-lg-4"> <div class="full-time"> <a href="#"><?php echo e($job->job_type); ?></a> </div> </div> </div> <div class="spare-detail"> <div class="spare-txt"> <span><?php echo e($job->job_post_expiry_date); ?></span> <h6><?php echo e($job->company_date); ?></h6> </div> <div class="spare-img"> <img src="<?php echo e(asset('public/uploads/companyprofiles/logo (1).png')); ?>" alt=""> </div> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </section> <!-- suggest apply saved jobs tab section start --> <section class="Suggest-job-tab"> <div class="container"> <div class="row"> <div class="col-lg-12"> <ul class="tabs-custom-nav"> <li><a href="#tab1" class="current">All Jobs</a></li> <!--<li><a href="#tab2">Meco Torch</a></li>--> <!--<li><a href="#tab3">Rust Remover</a></li>--> </ul> </div> <div class="col-lg-12"> <div class="tabs-custom general pb-5"> <div id="tab1" class="selected tab-content-panel"> <div class="col-lg-12"> <div class="suggest-para"> <!--<p>Below are other jobs you might like, based on your resume, prior job--> <!-- applications and search history.</p>--> <p>These are all available jobs </p> </div> </div> <div class="ct-show-job-colums" > <div class="row"> <!--<div class="row">--> <?php if(count($allJobs) > 1): ?> <?php $__currentLoopData = $allJobs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $job): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-md-3"> <div class="suggest-job-box"> <?php $company = App\Models\Company::where('company_name', $job->company_name)->first(); ?> <?php if($company && $company->company_profile_image): ?> <img src="<?php echo e(asset('public/uploads/companyprofiles/' . $company->company_profile_image)); ?>" alt=""> <?php endif; ?> <h4><?php echo e($job->company_name); ?> - <?php echo e($job->job_title); ?> Required</h4> <!--<h6>The Staff Pad</h6>--> <h6><?php echo e($job->contact_person); ?></h6> <div class="suggest-listed"> <div class="listed-txt"> <span><i class='bx bxs-briefcase'></i></span> <p><?php echo e(App\Models\Jobpost::where('company_name', $job->company_name)->count() ?? 0); ?></p> </div> <!--<div class="listed-txt"> <span><i class='bx bx-plus-medical'></i></span> <p>Not Listed</p> </div>--> <div class="listed-txt"> <span><i class='bx bxs-dollar-circle'></i></span> <p>$<?php echo e($job->min_salary); ?>-$<?php echo e($job->max_salary); ?></p> </div> </div> <div class="job-short-detail"> <h5><?php echo e((strlen($job->job_description) > 100) ? substr($job->job_description, 0, 60) : $job->job_description); ?></h5> </div> <div class="job-detail-pg-btn"> <a href="<?php echo e(url('/company_detail/'.$job->id)); ?>">View Details</a> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <button id="show-all-btn">Show All....</button> <?php else: ?> <div class="col-12 pr-0"> <div class="d-flex align-items-center justify-content-center w-100"> <h5>No Jobs Found!</h5> </div> </div> <?php endif; ?> </div> </div> </div> </div> <?php echo e((isset($filteredJobs))? $filteredJobs->links() : ''); ?> </div> <div id="tab2" class="tab-content-panel d-none"> <div class="row"> <div class="col-lg-8"> <div class="applied-jobs-suggest"> <img src="images/null-applied-jobs.svg" alt=""> <p>You have not applied to any jobs yet.</p> </div> </div> <div class="col-lg-4"> <div class="new-skill-new-job"> <div class="job-star"> <img src="images/job-star.png" alt=""> </div> <div class="job-text"> <h6>Gain a New Skill, Get a New Job</h6> <p>Fast track your skills development and get ready for a new career with on-demand online courses.</p> <a href="#">See the courses <i class='bx bx-right-arrow-alt'></i></a> </div> </div> <div class="install-mobile-app"> <img src="images/mobile-png.png" alt=""> <h5>Serious about your job search?</h5> <p>Get notified when employers are checking you out</p> <a href="#">Install Mobile App</a> </div> <div class="job seeker-advice"> <div class="job-bulb"> <span><i class='bx bx-bulb'></i></span> <h6>Job Seeker Advice</h6> </div> <p>Recent articles from our job seeker blog:</p> <div class="job-advice-button"> <a href="#">A Solid July Jobs Report Increases Potential for a...</a> <span>Aug. 4, 2023</span> </div> <div class="job-advice-button"> <a href="#">Real wage growth has returned to its pre-pandemic ...</a> <span>Jul. 19, 2023</span> </div> <div class="job-advice-button"> <a href="#">The May Jobs Report Sends Mixed Signals</a> <span>Jul. 19, 2023</span> </div> <div class="read-button"> <a href="#">Read the blog</a> </div> </div> <div class="found-a-job"> <div class="found-emoji"> <span>☺</span> <h5>Found a job</h5> </div> <p>Tell us your job search success story!</p> <div class="read-button"> <a href="#">I Got Hired!</a> </div> </div> </div> </div> </div> <div id="tab3" class="tab-content-panel d-none"> <div class="row"> <div class="col-lg-8"> <div class="applied-jobs-suggest"> <img src="images/saved-job.JPG" alt=""> <p>You do not have any saved jobs.</p> </div> </div> <div class="col-lg-4"> <div class="new-skill-new-job"> <div class="job-star"> <img src="images/job-star.png" alt=""> </div> <div class="job-text"> <h6>Gain a New Skill, Get a New Job</h6> <p>Fast track your skills development and get ready for a new career with on-demand online courses.</p> <a href="#">See the courses <i class='bx bx-right-arrow-alt'></i></a> </div> </div> <div class="install-mobile-app"> <img src="images/mobile-png.png" alt=""> <h5>Serious about your job search?</h5> <p>Get notified when employers are checking you out</p> <a href="#">Install Mobile App</a> </div> <div class="job seeker-advice"> <div class="job-bulb"> <span><i class='bx bx-bulb'></i></span> <h6>Job Seeker Advice</h6> </div> <p>Recent articles from our job seeker blog:</p> <div class="job-advice-button"> <a href="#">A Solid July Jobs Report Increases Potential for a...</a> <span>Aug. 4, 2023</span> </div> <div class="job-advice-button"> <a href="#">Real wage growth has returned to its pre-pandemic ...</a> <span>Jul. 19, 2023</span> </div> <div class="job-advice-button"> <a href="#">The May Jobs Report Sends Mixed Signals</a> <span>Jul. 19, 2023</span> </div> <div class="read-button"> <a href="#">Read the blog</a> </div> </div> <div class="found-a-job"> <div class="found-emoji"> <span>☺</span> <h5>Found a job</h5> </div> <p>Tell us your job search success story!</p> <div class="read-button"> <a href="#">I Got Hired!</a> </div> </div> </div> </div> </div> </div> </div> </div> </div> </section> <!-- suggest apply saved jobs tab section start --> <script> document.addEventListener("DOMContentLoaded", function () { var divs = document.querySelectorAll('.ct-show-job-colums .col-md-3'); for (var i = 20; i < divs.length; i++) { divs[i].classList.add('hidden'); } document.getElementById("show-all-btn").addEventListener("click", function () { for (var i = 20; i < divs.length; i++) { divs[i].classList.remove('hidden'); } this.style.display = 'none'; }); }); document.addEventListener("DOMContentLoaded", function () { const countrySelect = document.getElementById('country-select'); const citySelect = document.getElementById('city-select'); // Static data for countries and their cities const countryData = { "United Kingdom": [ "London", "Birmingham", "Manchester", "Liverpool", "Bristol", "Leeds", "Sheffield", "Glasgow", "Newcastle" ], "United States": [ "Washington DC", "New York", "Los Angeles", "Chicago", "Houston", "Phoenix", "Philadelphia", "San Antonio", "San Diego" ], "Canada": [ "Toronto", "Vancouver", "Montreal", "Calgary", "Ottawa", "Edmonton", "Quebec City", "Winnipeg", "Halifax" ], "Australia": [ "Sydney", "Melbourne", "Brisbane", "Perth", "Adelaide", "Gold Coast", "Canberra", "Hobart", "Darwin" ] }; // Populate the country dropdown for (let country in countryData) { const option = document.createElement('option'); option.value = country; option.textContent = country; countrySelect.appendChild(option); } // Event listener for country selection countrySelect.addEventListener('change', function () { // Clear previous city options citySelect.innerHTML = '<option value="">Select City</option>'; const selectedCountry = this.value; if (selectedCountry) { const cities = countryData[selectedCountry]; // Populate cities based on selected country cities.forEach(city => { const option = document.createElement('option'); option.value = city; option.textContent = city; citySelect.appendChild(option); }); } }); }); </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/all_jobs.blade.php ENDPATH**/ ?>