<div>
    
    @if(Route::is('user.dashboard') || Route::is('user.find-job'))
        <!-- Headlines Code -->
        <b><h4>
        <marquee scrollamount="6" class="mt-2">
        @foreach (headlines() as $key=>$headline)
                <a href="{{ $headline->link }}" class="text-white" style="font-size:16px;"><i class="fe fe-link me-2 white-text" aria-hidden="true"></i>{{ $headline->title }}</a>
            @endforeach
        </marquee></h4></b>
    @endif
    
    @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">
                    @if(ad_banner()->count() > 0)
                        @foreach (ad_banner() as $key => $ads)
                            @if ($ads->approval == 1)
                                @if ($ads->exp_date < date('Y-m-d'))
                                @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 @if($key==0) active @endif">
                                                        <a href="{{ $ads->link }}">
                                                            <img class="d-block ads-img" src="{{ URL::to($ads->image) }}" alt="Ad banner">
                                                        </a>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                @endif
                            @endif
                        @endforeach
                    @else
                        <div class="card" style="margin-top: 50px;">
                            <div class="card-body">
                                <h4 class="card-title text-center">Paid Ads</h4>
                            </div>
                        </div>
                    @endif
                </div>
            </div>
        </div>
    @endif
    
</div>
