HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //var/www/quadcode-jobs/storage/framework/views/734543ea73dc8c518225ebc5a58deb3bf7b793b0.php
<?php
    $categories = \App\Repositories\CategoryRepository::getTopData();

    $vacancies = [];
    foreach($categories as $category) {
        foreach($category->vacancies as $vacancy) {
            $vacancies[] = $vacancy;
        }
    }

    $randKeys = array_rand($vacancies, min(count($vacancies), 5));

    $randKeys = is_array($randKeys) ? $randKeys : [$randKeys];

    if (app()->getLocale() === DEFAULT_LOCALE) {
        $vacancyUrl = route('job.show', [$vacancy->id]);
        $categoryUrl = route('category.show', [$vacancy->category->slug]);
        $locationUrl = route('location.show', [$vacancy->location->slug]);
    } else {
        $vacancyUrl = route('job.show.locale', [app()->getLocale(), $vacancy->id]);
        $categoryUrl = route('category.show.locale', [app()->getLocale(), $vacancy->category->slug]);
        $locationUrl = route('location.show.locale', [app()->getLocale(), $vacancy->location->slug]);
    }
?>
<section class="app-section app-section__anchor" id="hot-categories">
    <div class="container">
        <div class="app-section__inner">
            <header class="app-section__header">
                <h1><?php echo app('translator')->get('messages.Hot categories'); ?></h1>
            </header>
            <div class="app-section__description">
                <?php echo app('translator')->get('messages.HotCatDescription'); ?>
            </div>
            <div class="jobs">
                <div class="jobs-table">
                    <div class="jobs-table__headlines">
                        <div class="table-headline" data-column="job"><?php echo app('translator')->get('messages.Job'); ?></div>
                        <div class="table-headline" data-column="category"><?php echo app('translator')->get('messages.Department'); ?></div>
                        <div class="table-headline" data-column="location"><?php echo app('translator')->get('messages.Location'); ?></div>
                    </div>
                    <div class="jobs-table__content">
                        <?php $__currentLoopData = $randKeys; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php
                                $vacancy = $vacancies[$key];
                            ?>
                        <div class="table-lines">
                            <div class="table-line" data-column="job">
                                <a href="<?php echo e($vacancyUrl); ?>"><?php echo e($vacancy->getTitle()); ?>

                                <div class="table-chevron">
                                    <svg width="9" height="14" viewBox="0 0 9 14" fill="none" xmlns="http://www.w3.org/2000/svg">
                                        <path d="M1 13L7 7L1 1" stroke="white" stroke-width="2"/>
                                    </svg>
                                </div></a>
                            </div>
                            <div class="table-line" data-column="category"><a href="<?php echo e($categoryUrl); ?>"><?php echo e($vacancy->getCategoryTitle()); ?></a></div>
                            <div class="table-line" data-column="location"><a href="<?php echo e($locationUrl); ?>"><?php echo e($vacancy->getLocationTitle()); ?></a></div>
                        </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
                <a href=" <?php echo $block->translatedInput('url'); ?>" class="button"><?php echo app('translator')->get('messages.btn-all-jobs'); ?></a>
            </div>
        </div>
    </div>
</section>
<?php /**PATH /var/www/quadcode-jobs/resources/views/site/blocks/hot_categories.blade.php ENDPATH**/ ?>