@if ($data->isNotEmpty())
    <div class="section header-stick mb-2 py-3">
        <div class="container">
            <div class="row align-items-center">
                <div class="col-lg-auto">
                    <div class="d-flex">
                        <span class="badge bg-primary text-uppercase col-auto p-2">Pengumuman</span>
                    </div>
                </div>

                <div class="col-lg mt-2 mt-lg-0">
                    <div class="fslider" data-speed="800" data-pause="6000" data-arrows="false" data-pagi="false"
                         style="min-height: 0;">
                        <div class="flexslider">
                            <div class="slider-wrap" style="font-size: 11pt">
                                @foreach ($data as $res)
                                    <div class="slide"><a class="text-black"
                                           href="{{ route('pengumuman', ['slug' => $res->slug]) }}">{{ Str::words($res->judul, 40, '...') }}</a>
                                    </div>
                                @endforeach
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@else
    <div class=" header-stick mb-2 py-3"></div>
@endif
