<?php $__env->startSection('content-frontend'); ?>
    
    <div class="breadcumb-wrapper" data-bg-src="<?php echo e(asset('assets/img/bg/breadcumb-bg.jpg')); ?>">
        <div class="container">
            <div class="breadcumb-content">
                <h1 class="breadcumb-title">Career Page</h1>
                <ul class="breadcumb-menu">
                    <li><a href="<?php echo e(url('/')); ?>">Home</a></li>
                    <li>Career</li>
                </ul>
            </div>
        </div>
    </div>

    
    <div class="space">
        <div class="container">
            
            <div class="th-sort-bar mb-4">
                <div class="row gy-4 justify-content-between align-items-center">
                    <div class="col-lg">
                        <p class="woocommerce-result-count mb-0">
                            <strong><?php echo e($totalJobs); ?></strong> jobs recommended for you
                        </p>
                    </div>
                    <div class="col-lg-auto">
                        <form method="GET" action="<?php echo e(url('career')); ?>" class="d-sm-flex align-items-center">
                            
                            <div class="woocommerce-ordering me-sm-3 mb-10 mb-sm-0">
                                <select name="kota" class="orderby" onchange="this.form.submit()">
                                    <option value="">All Cities</option>
                                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $kotas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $kota): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                                        <option value="<?php echo e($kota); ?>"
                                            <?php echo e(request('kota') == $kota ? 'selected' : ''); ?>>
                                            <?php echo e($kota); ?>

                                        </option>
                                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                                </select>
                            </div>

                            
                            <div class="woocommerce-ordering">
                                <select name="sort" class="orderby" onchange="this.form.submit()">
                                    <option value="latest" <?php echo e(request('sort') == 'latest' ? 'selected' : ''); ?>>Sort by
                                        Latest</option>
                                    <option value="deadline" <?php echo e(request('sort') == 'deadline' ? 'selected' : ''); ?>>Sort by
                                        Deadline</option>
                                    <option value="oldest" <?php echo e(request('sort') == 'oldest' ? 'selected' : ''); ?>>Sort by
                                        Oldest</option>
                                </select>
                            </div>

                            
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(request('search')): ?>
                                <input type="hidden" name="search" value="<?php echo e(request('search')); ?>">
                            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        </form>
                    </div>
                </div>
            </div>

            
            <form method="GET" action="<?php echo e(url('career')); ?>" class="mb-4">
                <div class="input-group" style="max-width: 500px;">
                    <input type="text" name="search" class="form-control" placeholder="Search position, description..."
                        value="<?php echo e(request('search')); ?>">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(request('kota')): ?>
                        <input type="hidden" name="kota" value="<?php echo e(request('kota')); ?>">
                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(request('sort')): ?>
                        <input type="hidden" name="sort" value="<?php echo e(request('sort')); ?>">
                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    <button class="btn btn-primary" type="submit">
                        <i class="fa-solid fa-search"></i> Search
                    </button>
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(request()->hasAny(['search', 'kota'])): ?>
                        <a href="<?php echo e(url('career')); ?>" class="btn btn-outline-secondary">
                            <i class="fa-solid fa-xmark"></i> Reset
                        </a>
                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                </div>
            </form>

            
            <div class="row gy-30">
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__empty_1 = true; $__currentLoopData = $lowongans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $lowongan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                    <div class="col-lg-6 col-xxl-4">
                        <div class="job-post white-bg">
                            <div class="job-content smoke-bg">
                                <div class="job-post_date d-flex align-items-center justify-content-between">
                                    <span class="date">
                                        <i class="fa-regular fa-calendar me-1"></i>
                                        <?php echo e($lowongan->BatasWaktuFormatted); ?>

                                    </span>
                                    <div class="icon">
                                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($lowongan->masih_berlaku): ?>
                                            <span class="badge bg-success">Open</span>
                                        <?php else: ?>
                                            <span class="badge bg-secondary">Closed</span>
                                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                    </div>
                                </div>
                                <div class="job-post_author d-sm-flex align-items-center text-center text-sm-start">
                                    <div class="job-author">
                                        
                                        <img src="<?php echo e(asset('assets/img/career/career-logo.jpg')); ?>"
                                            alt="<?php echo e($lowongan->Posisi); ?>"
                                            onerror="this.src='https://ui-avatars.com/api/?name=<?php echo e(urlencode($lowongan->Posisi)); ?>&background=ff6b00&color=fff'">
                                    </div>
                                    <div class="author-info">
                                        <span class="company-name">Jasuindo</span>
                                        <span class="job-title"><?php echo e($lowongan->Posisi); ?></span>
                                        <span class="location">
                                            <i class="fa-light fa-location-dot"></i> <?php echo e($lowongan->Kota); ?>

                                        </span>
                                    </div>
                                </div>

                                
                                <div class="job-description mt-2">
                                    <p class="mb-0 text-muted small">
                                        <?php echo e(Str::limit(strip_tags($lowongan->Deskripsi), 100)); ?>

                                    </p>
                                </div>
                            </div>

                            <div
                                class="job-wrapper d-sm-flex align-items-center justify-content-between text-center text-sm-start">
                                <span class="price">
                                    <i class="fa-regular fa-clock me-2"></i>
                                    Deadline: <?php echo e(\Carbon\Carbon::parse($lowongan->BatasWaktu)->diffForHumans()); ?>

                                </span>
                                <a
                                    href="<?php echo e(route('frontend.career.detail', ['id' => $lowongan->id, 'slug' => $lowongan->slug])); ?>">
                                    <span class="th-btn style3">Apply Now</span>
                                </a>
                            </div>
                        </div>
                    </div>
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                    <div class="col-12 text-center py-5">
                        <i class="fa-regular fa-folder-open fa-3x text-muted mb-3"></i>
                        <h4 class="text-muted">No jobs available at the moment</h4>
                        <p class="text-muted">Please check back later or try different filters.</p>
                        <a href="<?php echo e(url('career')); ?>" class="th-btn style3 mt-3">Reset Filters</a>
                    </div>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>

            
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($lowongans->hasPages()): ?>
                <div class="th-pagination mt-60 text-center mb-0">
                    <ul>
                        
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($lowongans->onFirstPage()): ?>
                            <li><a class="disabled"><i class="fa-sharp fa-light fa-arrow-left"></i></a></li>
                        <?php else: ?>
                            <li><a href="<?php echo e($lowongans->previousPageUrl()); ?>">
                                    <i class="fa-sharp fa-light fa-arrow-left"></i>
                                </a></li>
                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                        
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $lowongans->getUrlRange(1, $lowongans->lastPage()); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page => $url): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($page == $lowongans->currentPage()): ?>
                                <li><a class="active" href="#"><?php echo e($page); ?></a></li>
                            <?php else: ?>
                                <li><a href="<?php echo e($url); ?>"><?php echo e($page); ?></a></li>
                            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>

                        
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($lowongans->hasMorePages()): ?>
                            <li><a class="next-page" href="<?php echo e($lowongans->nextPageUrl()); ?>">
                                    <i class="fa-sharp fa-light fa-arrow-right"></i>
                                </a></li>
                        <?php else: ?>
                            <li><a class="next-page disabled">
                                    <i class="fa-sharp fa-light fa-arrow-right"></i>
                                </a></li>
                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </ul>
                </div>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('frontend.index', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\laragon\www\cms-compro\resources\views/frontend/career.blade.php ENDPATH**/ ?>