<div>
    
    <?php if(Route::is('user.dashboard') || Route::is('user.find-job')): ?>
        <!-- Headlines Code -->
        <b><h4>
        <marquee scrollamount="6" class="mt-2">
            <?php $__currentLoopData = headlines(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$headline): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <a href="<?php echo e($headline->link); ?>" class="text-white" style="font-size:16px;"><i class="fe fe-link me-2 white-text" aria-hidden="true"></i><?php echo e($headline->title); ?></a>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </marquee></h4></b>
    <?php endif; ?>
    
    <?php if(Route::is('user.dashboard') || Route::is('user.find-job')): ?>
        <!-- Paid Ads Code -->
        <div class="container-fluid">
            <div class="row justify-content-center">
                <div class="col-lg-6 col-md-6 col-10">
                    <?php $__currentLoopData = ad_banner(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $ads): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if($ads->approval == 1): ?>
                            <?php if($ads->exp_date < date('Y-m-d')): ?>
                            <?php else: ?>
                                <div class="card" style="margin-top: 50px;">
                                    <div class="card-body">
                                        <h4 class="card-title text-center">Paid Ads</h4>
                                        <div id="carouselExampleSlidesOnly" class="carousel slide" data-bs-ride="carousel" data-bs-interval="20000">
                                            <div class="carousel-inner" role="listbox">
                                                <div class="carousel-item <?php if($key==0): ?> active <?php endif; ?>">
                                                    <a href="<?php echo e($ads->link); ?>">
                                                        <img class="d-block ads-img" src="<?php echo e(URL::to($ads->image)); ?>" alt="Ad banner">
                                                    </a>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            <?php endif; ?>
                        <?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
            </div>
           <div class="text-center mt-3">
    <!-- Find Job Button -->
              <a href="<?php echo e(route('user.find-job')); ?>" class="btn my-2" style="background: #15ff00; font-weight: 800; font-size: 16px; padding: 10px 20px; border-radius: 5px; display: inline-flex; align-items: center; gap: 10px;">
                <i class="fas fa-search-dollar" style="font-size: 20px;"></i>
                <span>Micro Job</span>
            </a>
            
            <a href="<?php echo e(route('user.ads-click_create')); ?>" class="btn my-2" style="background: #15ff00; font-weight: 800; font-size: 16px; padding: 10px 20px; border-radius: 5px; display: inline-flex; align-items: center; gap: 10px;">
                <i class="fas fa-search-dollar" style="font-size: 20px;"></i>
                <span>Ads Job</span>
            </a>
            
            <a href="<?php echo e(route('user.survey-and-offers')); ?>" class="btn my-2" style="background: #15ff00; font-weight: 800; font-size: 16px; padding: 10px 20px; border-radius: 5px; display: inline-flex; align-items: center; gap: 10px;">
                <i class="fas fa-search-dollar" style="font-size: 20px;"></i>
                <span>Survey & Offers</span>
            </a>
            
            <!-- Post Job Button -->
            <a href="<?php echo e(route('user.job-create')); ?>" class="btn my-2" style="background: yellow; font-weight: 800; font-size: 16px; padding: 10px 20px; border-radius: 5px; display: inline-flex; align-items: center; gap: 10px;">
                <i class="fas fa-briefcase" style="font-size: 20px;"></i>
                <span>Post Job</span>
            </a>
                
            <a href="<?php echo e(route('user.ads-create')); ?>" class="btn my-2" style="background: yellow; font-weight: 800; font-size: 16px; padding: 10px 20px; border-radius: 5px; display: inline-flex; align-items: center; gap: 10px;">
                <i class="fas fa-briefcase" style="font-size: 20px;"></i>
                <span>Post Ads</span>
            </a>
            
            <!-- View Applications Button -->
            <a href="<?php echo e(url('user/referral')); ?>" class="btn my-2" style="background: blue; color: white; font-weight: 800; font-size: 16px; padding: 10px 20px; border-radius: 5px; display: inline-flex; align-items: center; gap: 10px;">
                <i class="fa fa-users" style="font-size: 20px;"></i>
                <span>Share & Earn</span>
            </a>
            
            <a href="<?php echo e(url('user/deposit')); ?>" class="btn my-2" style="background: green; color: white; font-weight: 800; font-size: 16px; padding: 10px 20px; border-radius: 5px; display: inline-flex; align-items: center; gap: 10px;">
                <i class="fas fa-credit-card" style="font-size: 20px;"></i>
                <span>Deposit</span>
            </a>
            
            <a href="<?php echo e(url('user/new-withdraw-request')); ?>" class="btn my-2" style="background: red; color: white; font-weight: 800; font-size: 16px; padding: 10px 20px; border-radius: 5px; display: inline-flex; align-items: center; gap: 10px;">
                <i class="fas fa-wallet" style="font-size: 20px;"></i>
                <span>Withdraw</span>
            </a>
            
            <a href="https://heylink.me/joynalabedinjrt" class="btn my-2" style="background: yellow; color: black; font-weight: 800; font-size: 16px; padding: 10px 20px; border-radius: 5px; display: inline-flex; align-items: center; gap: 10px;">
                <i class="fas fa-headset" style="font-size: 20px;"></i>
                <span>Support</span>
            </a>


</div>

        </div>
    <?php endif; ?>
    
</div>
<?php /**PATH /home/mhmaicro/public_html/resources/views/user/layouts/partials/headline-and-ads.blade.php ENDPATH**/ ?>