<?php
    Theme::asset()->usePath()->add('leaflet-css', 'plugins/leaflet/leaflet.css');
    Theme::asset()->container('footer')->usePath()->add('leaflet-js', 'plugins/leaflet/leaflet.js');
?>

<section class="section-box-2">
    <?php if(is_plugin_active('ads')): ?>
        <?php echo apply_filters('ads_render', null, 'job_before', ['class' => 'my-2 text-center']); ?>

    <?php endif; ?>

    <div class="container">
        <div class="banner-hero banner-image-single">
           <div class="wrap-cover-image">
               <?php if(! $job->hide_company && $company->id && $company->cover_image_url): ?>
                   <img src="<?php echo e($company->cover_image_url); ?>" alt="<?php echo e($company->name); ?>">
               <?php elseif(theme_option('default_company_cover_image')): ?>
                   <img src="<?php echo e(RvMedia::getImageUrl(theme_option('default_company_cover_image'))); ?>" alt="<?php echo e($company->name); ?>">
               <?php else: ?>
                   <img src="<?php echo e(Theme::asset()->url('imgs/backgrounds/cover-image-default.png')); ?>" alt="<?php echo e($company->name); ?>">
               <?php endif; ?>
           </div>
        </div>
        <div class="mt-10 d-flex align-items-center job-header-content">
            <div>
                <h3><?php echo e($job->name); ?>

                    <?php if($job->canShowSavedJob() && auth('account')->check()): ?>
                        <span class="<?php echo \Illuminate\Support\Arr::toCssClasses(['ml-5', 'job-bookmark-saved', 'save-job-active' => $job->is_saved != 0]); ?>">
                            <a class="job-bookmark-action align-middle" href="<?php echo e(route('public.account.jobs.saved.action')); ?>" data-job-id="<?php echo e($job->id); ?>">
                                <div class="d-inline-block favorite-icon">
                                    <span class="fi-rr-heart"></span>
                                </div>
                            </a>
                        </span>
                    <?php endif; ?>
                </h3>
                <div class="mt-0 mb-15">
                    <?php $__currentLoopData = $job->jobTypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $jobType): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <span class="card-briefcase"><?php echo e($jobType->name); ?></span>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <span class="card-time"><?php echo e($job->created_at->diffForHumans()); ?></span>
                </div>
            </div>
            <?php ($classButtonApply = 'btn btn-apply-icon btn-apply btn-apply-big hover-up ml-auto'); ?>
            <?php echo Theme::partial('apply-button', [
                'job' => $job,
                'class' => $classButtonApply,
                'wrapClass' => 'ms-auto'
             ]); ?>

        </div>
        <div class="border-bottom pt-10 pb-10"></div>
    </div>
</section>

<section class="section-box mt-50 job-detail-section">
    <div class="container">
        <div class="row">
            <div class="<?php echo \Illuminate\Support\Arr::toCssClasses(['col-md-12 col-sm-12 col-12', 'col-lg-8' => (! $job->hide_company && $company->id)]); ?>">
                <div class="job-overview">
                    <h5 class="border-bottom pb-15 mb-30"><?php echo e(__('Employment Information')); ?></h5>
                    <div class="row">
                        <?php if($job->categories->isNotEmpty()): ?>
                            <div class="col-md-12 d-flex mt-15">
                                <div class="sidebar-icon-item">
                                    <img src="<?php echo e(Theme::asset()->url('/imgs/page/job-single/industry.svg')); ?>" alt="<?php echo e(__('Industry')); ?>">
                                </div>
                                <div class="sidebar-text-info ml-10">
                                    <span class="text-description industry-icon mb-10"><?php echo e(__('Industry')); ?></span>
                                    <span class="small-heading">
                                        <?php $__currentLoopData = $job->categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <a href="<?php echo e($category->url); ?>"><?php echo e($category->name); ?></a> <?php if(! $loop->last): ?> / <?php endif; ?>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </span>
                                </div>
                            </div>
                        <?php endif; ?>

                        <?php if($job->careerLevel->name): ?>
                            <div class="col-md-6 d-flex mt-15">
                                <div class="sidebar-icon-item">
                                    <img src="<?php echo e(Theme::asset()->url('imgs/page/job-single/job-level.svg')); ?>" alt="<?php echo e(__('Job Level')); ?>">
                                </div>
                                <div class="sidebar-text-info ml-10">
                                    <span class="text-description joblevel-icon mb-10"><?php echo e(__('Job Level')); ?></span>
                                    <strong class="small-heading"><?php echo e($job->careerLevel->name); ?></strong>
                                </div>
                            </div>
                        <?php endif; ?>

                        <?php if($job->number_of_positions): ?>
                            <div class="col-md-6 d-flex mt-15">
                                <div class="sidebar-icon-item">
                                    <img src="<?php echo e(Theme::asset()->url('imgs/page/job-single/job-level.svg')); ?>" alt="<?php echo e(__('Open positions')); ?>">
                                </div>
                                <div class="sidebar-text-info ml-10">
                                    <span class="text-description joblevel-icon mb-10"><?php echo e(__('Open Positions')); ?></span>
                                    <strong class="small-heading"><?php echo e($job->number_of_positions); ?></strong>
                                </div>
                            </div>
                        <?php endif; ?>

                        <?php if($job->salary_from || $job->salary_to): ?>
                            <div class="col-md-6 d-flex mt-15">
                                <div class="sidebar-icon-item">
                                    <img src="<?php echo e(Theme::asset()->url('imgs/page/job-single/salary.svg')); ?>" alt="<?php echo e(__('Salary')); ?>">
                                </div>
                                <div class="sidebar-text-info ml-10">
                                    <span class="text-description salary-icon mb-10"><?php echo e(__('Salary')); ?></span>
                                    <?php if((! JobBoardHelper::isSalaryHiddenForGuests() || auth('account')->check())): ?>
                                        <strong class="small-heading text-primary fw-bold"><?php echo e($job->salary_text); ?></strong>
                                    <?php else: ?>
                                        <a class="job-hidden-job-for-guest-text mb-10" href="<?php echo e(route('public.account.login')); ?>">
                                            <?php echo e(__('Sign in to view salary')); ?>

                                        </a>
                                    <?php endif; ?>
                                </div>
                            </div>
                        <?php endif; ?>

                        <?php if($job->jobExperience->name): ?>
                            <div class="col-md-6 d-flex mt-15">
                                <div class="sidebar-icon-item">
                                    <img src="<?php echo e(Theme::asset()->url('imgs/page/job-single/experience.svg')); ?>" alt="<?php echo e(__('Experience')); ?>">
                                </div>
                                <div class="sidebar-text-info ml-10">
                                    <span class="text-description experience-icon mb-10"><?php echo e(__('Experience')); ?></span>
                                    <strong class="small-heading"><?php echo e($job->jobExperience->name); ?></strong>
                                </div>
                            </div>
                        <?php endif; ?>

                        <?php if($job->jobTypes->isNotEmpty()): ?>
                            <div class="col-md-6 d-flex mt-15">
                                <div class="sidebar-icon-item">
                                    <img src="<?php echo e(Theme::asset()->url('imgs/page/job-single/job-type.svg')); ?>" alt="<?php echo e(__('Job Type')); ?>">
                                </div>
                                <div class="sidebar-text-info ml-10">
                                    <span class="text-description jobtype-icon mb-10"><?php echo e(__('Job Type')); ?></span>
                                    <strong class="small-heading">
                                        <?php $__currentLoopData = $job->jobTypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $jobType): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <?php echo e($jobType->name); ?> <?php if(!$loop->last): ?>, <?php endif; ?>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </strong>
                                </div>
                            </div>
                        <?php endif; ?>

                        <?php if($job->full_address): ?>
                            <div class="col-md-6 d-flex mt-15">
                                <div class="sidebar-icon-item">
                                    <img src="<?php echo e(Theme::asset()->url('imgs/page/job-single/location.svg')); ?>" alt="<?php echo e(__('Location')); ?>">
                                </div>
                                <div class="sidebar-text-info ml-10">
                                    <span class="text-description mb-10"><?php echo e(__('Location')); ?></span>
                                    <strong class="small-heading">
                                        <?php echo e($job->full_address); ?>

                                        <?php echo e((JobBoardHelper::isZipCodeEnabled() && $job->zip_code) ? ', ' . $job->zip_code : ''); ?>

                                    </strong>
                                </div>
                            </div>
                        <?php endif; ?>

                        <?php if($job->start_date): ?>
                            <div class="col-md-6 d-flex mt-15">
                                <div class="sidebar-icon-item">
                                    <img src="<?php echo e(Theme::asset()->url('imgs/page/job-single/deadline.svg')); ?>" alt="<?php echo e(__('Start date')); ?>">
                                </div>
                                <div class="sidebar-text-info ml-10">
                                    <span class="text-description mb-10"><?php echo e(__('Start date')); ?></span>
                                    <strong class="small-heading"><?php echo e($job->start_date->translatedFormat('d M, Y')); ?></strong>
                                </div>
                            </div>
                        <?php endif; ?>

                        <?php if($job->application_closing_date): ?>
                                <div class="col-md-6 d-flex mt-15">
                                    <div class="sidebar-icon-item">
                                        <img src="<?php echo e(Theme::asset()->url('imgs/page/job-single/deadline.svg')); ?>" alt="<?php echo e(__('Apply Before')); ?>">
                                    </div>
                                <div class="sidebar-text-info ml-10">
                                    <span class="text-description mb-10"><?php echo e(__('Apply Before')); ?></span>
                                    <strong class="small-heading text-danger"><?php echo e($job->application_closing_date->translatedFormat('d M, Y')); ?></strong>
                                </div>
                            </div>
                        <?php endif; ?>

                        <?php if($job->is_freelance): ?>
                            <div class="col-md-6 d-flex mt-15">
                                <div class="sidebar-icon-item">
                                    <img src="<?php echo e(Theme::asset()->url('imgs/page/job-single/job-type.svg')); ?>" alt="<?php echo e(__('Type')); ?>">
                                </div>
                                <div class="sidebar-text-info ml-10">
                                    <span class="text-description mb-10"><?php echo e(__('Type')); ?></span>
                                    <strong class="small-heading">
                                        <?php echo e(__('Freelance')); ?>

                                    </strong>
                                </div>
                            </div>
                        <?php endif; ?>

                        <?php $__currentLoopData = $job->customFields; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $customField): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="col-md-6 d-flex mt-15">
                                <div class="sidebar-icon-item">
                                    <img src="<?php echo e(Theme::asset()->url('imgs/page/job-single/updated.svg')); ?>" alt="<?php echo e($customField->name); ?>">
                                </div>
                                <div class="sidebar-text-info ml-10">
                                    <span class="text-description mb-10"><?php echo e($customField->name); ?></span>
                                    <strong class="small-heading"><?php echo e($customField->value); ?></strong>
                                </div>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
                <div class="content-single">
                    <div class="ck-content">
                        <?php echo BaseHelper::clean($job->content); ?>

                    </div>
                </div>

                <?php if($job->skills->isNotEmpty()): ?>
                    <div class="mt-4">
                        <h5 class="mb-3"><?php echo e(__('Skills')); ?></h5>
                        <div class="job-details-desc">
                            <div class="mt-4">
                                <?php $__currentLoopData = $job->skills; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $skill): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <span class="badge bg-primary me-1"><?php echo e($skill->name); ?></span>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                        </div>
                    </div>
                <?php endif; ?>

                <?php if($job->tags->isNotEmpty()): ?>
                    <div class="mt-4">
                        <h5 class="mb-3"><?php echo e(__('Tags')); ?></h5>
                        <div class="job-details-desc">
                            <div class="mt-4">
                                <?php $__currentLoopData = $job->tags; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <a href="<?php echo e($tag->url); ?>">
                                        <span class="badge bg-primary me-1"><?php echo e($tag->name); ?></span>
                                    </a>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                        </div>
                    </div>
                <?php endif; ?>

                <?php if($job->latitude && $job->longitude): ?>
                    <div class="mt-4">
                        <h6 class="fs-16 mb-3"><?php echo e(__('Job location')); ?></h6>
                        <div class="job-board-street-map-container">
                            <div
                                class="job-board-street-map"
                                data-popup-id="#street-map-popup-template"
                                data-center="<?php echo e(json_encode([$job->latitude, $job->longitude])); ?>"
                                data-map-icon="<?php echo e((! JobBoardHelper::isSalaryHiddenForGuests() || auth('account')->check()) ? $job->salary_text : $job->name); ?>"
                            ></div>
                        </div>
                        <div class="d-none" id="street-map-popup-template">
                            <div>
                                <table width="100%">
                                    <tr>
                                        <td width="60" class="image-company">
                                            <div>
                                                <img src="<?php echo e($job->company_logo_thumb); ?>" width="40" alt="<?php echo e($job->hide_company ? $job->company_name : $job->name); ?>">
                                            </div>
                                        </td>
                                        <td>
                                            <div class="infomarker">
                                                <?php if($job->has_company): ?>
                                                    <h5>
                                                        <a href="<?php echo e($company->url); ?>" target="_blank"><?php echo e($company->name); ?></a>
                                                    </h5>
                                                <?php endif; ?>
                                                <div class="text-info">
                                                    <strong><?php echo e($job->name); ?></strong>
                                                </div>
                                                <div class="text-info">
                                                    <i class="mdi mdi-account"></i>
                                                    <span><?php echo e(__(':number Vacancy', ['number' => $job->number_of_positions])); ?></span>
                                                    <?php if($job->jobTypes->isNotEmpty()): ?>
                                                        <span>-</span>
                                                        <?php $__currentLoopData = $job->jobTypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $jobType): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                            <span><?php echo e($jobType->name); ?><?php if(! $loop->last): ?>, <?php endif; ?></span>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    <?php endif; ?>
                                                </div>
                                                <?php if($job->full_address): ?>
                                                    <div class="text-muted">
                                                        <i class="uil uil-map"></i>
                                                        <span><?php echo e($job->full_address); ?></span>
                                                    </div>
                                                <?php endif; ?>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                <?php endif; ?>

                <div class="single-apply-jobs">
                    <div class="row align-items-center">
                        <div class="col-md-5">
                            <?php ($classButtonApplyBottom = 'btn btn-default mr-15'); ?>
                            <?php echo Theme::partial('apply-button', [
                                'job' => $job,
                                'class' => $classButtonApplyBottom
                            ]); ?>

                        </div>

                        <?php echo $__env->make(Theme::getThemeNamespace('views.job-board.partials.share'), ['job' => $job], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    </div>
                </div>
            </div>
            <?php if(! $job->hide_company && $company->id): ?>
                <div class="col-lg-4 col-md-12 col-sm-12 col-12 pl-40 pl-lg-15 mt-lg-30">
                    <div class="sidebar-border">
                        <div class="sidebar-heading">
                            <div class="avatar-sidebar">
                                <figure>
                                    <a href="<?php echo e($company->url); ?>"><img alt="<?php echo e($company->name); ?>" src="<?php echo e($company->logo_thumb); ?>"></a>
                                </figure>
                                <div class="sidebar-info">
                                    <a href="<?php echo e($company->url); ?>"><span class="sidebar-company"><?php echo e($company->name); ?></span></a>
                                    <a class="link-underline mt-15" href="<?php echo e($company->url); ?>">
                                        <?php echo e($company->jobs_count == 1 ? __(':jobs Open Job', ['jobs' => 1]) : __(':jobs Open Jobs', ['jobs' => $company->jobs_count])); ?>

                                    </a>
                                </div>
                            </div>
                        </div>
                        <?php if(! JobBoardHelper::isCompanyInformationHiddenForGuests() || auth('account')->check()): ?>
                            <div class="sidebar-list-job">
                                <ul class="ul-disc">
                                    <?php if($company->address): ?>
                                        <li><?php echo e($company->address); ?></li>
                                    <?php endif; ?>
                                    <?php if($company->website): ?>
                                        <li><?php echo e(__('Website')); ?>: <?php echo e(rtrim($company->website, '/')); ?></li>
                                    <?php endif; ?>
                                    <?php if($company->phone): ?>
                                        <li><?php echo e(__('Phone')); ?>: <?php echo e($company->phone); ?></li>
                                    <?php endif; ?>
                                </ul>
                            </div>
                        <?php endif; ?>
                    </div>
                    <?php if($companyJobs->isNotEmpty()): ?>
                        <div class="sidebar-border">
                            <h6 class="f-18"><?php echo e(__('Similar jobs')); ?></h6>
                            <div class="sidebar-list-job">
                                <ul>
                                    <?php $__currentLoopData = $companyJobs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $companyJob): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <li>
                                            <div class="card-list-4 wow animate__ animate__fadeIn hover-up animated" style="visibility: visible; animation-name: fadeIn;">
                                                <div class="image">
                                                    <a href="<?php echo e($companyJob->company->url); ?>">
                                                        <img src="<?php echo e($companyJob->company->logo_thumb); ?>" width="50" alt="<?php echo e($companyJob->company->name); ?>">
                                                    </a>
                                                </div>
                                                <div class="info-text">
                                                    <h5 class="font-md font-bold color-brand-1">
                                                        <a href="<?php echo e($companyJob->url); ?>"><?php echo e($companyJob->name); ?></a>
                                                    </h5>
                                                    <div class="d-flex align-items-center gap-3 font-xs color-text-mutted mt-0">
                                                        <span class="fi-icon"><i class="fi-rr-briefcase"></i>
                                                            <?php if($job->jobTypes->isNotEmpty()): ?>
                                                                <?php $__currentLoopData = $job->jobTypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $jobType): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                                    <?php echo e($jobType->name); ?>

                                                                    <?php if(!$loop->last): ?>
                                                                        ,
                                                                    <?php endif; ?>
                                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                            <?php endif; ?>
                                                        </span>
                                                        <span class="fi-icon"><i class="fi-rr-clock"></i>
                                                            <time datetime="<?php echo e($companyJob->created_at->format('Y/m/d')); ?>">
                                                                <?php echo e($companyJob->created_at->translatedFormat('M d, Y')); ?>

                                                            </time>
                                                        </span>
                                                    </div>
                                                    <div class="mt-6">
                                                        <div class="similar-jobs-content">
                                                            <div class="d-flex align-items-center job-information">
                                                                <div class="job-location">
                                                                    <span class="card-location"><?php echo e($companyJob->location); ?></span>
                                                                </div>
                                                                <div class="job-salary">
                                                                    <h6 class="card-price text-nowrap mb-0">
                                                                        <?php echo Theme::partial('salary', ['job' => $companyJob]); ?>

                                                                    </h6>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </li>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </ul>
                            </div>
                        </div>
                    <?php endif; ?>
                </div>
            <?php endif; ?>
        </div>
    </div>

    <?php if(is_plugin_active('ads')): ?>
        <?php echo apply_filters('ads_render', null, 'job_after', ['class' => 'my-2 text-center']); ?>

    <?php endif; ?>
</section>
<?php /**PATH /home/icloudcsin/public_html/tngamechanger/platform/themes/jobbox/views/job-board/job.blade.php ENDPATH**/ ?>