{{-- @php
    $title = get_field('title');
@endphp

@if (have_rows('videos'))
    <section class="featured-videos">
        @if ($title)
            <div class='row'>
                <div class='col-xs-12'>
                    <h2 class="featured-videos section-title">{!! $title !!}</h2>
                </div>
            </div>
        @endif
        <div class='row'>
            <div class='col-xs-12'>
                <div class="featured-videos__items swiper-container">
                    <div class="swiper-wrapper">
                        @while (have_rows('videos'))
                            @php
                                the_row();
                                $video = get_sub_field( 'video' );
                                $video_title = get_sub_field( 'video_title' );
                                $video_text = get_sub_field( 'video_text' );
                                $author = get_sub_field( 'author' );
                                $link = get_sub_field( 'link' );
                            @endphp
                            <div class="featured-videos__item swiper-slide">
                                @if ($video)
                                    <div class="featured-videos__item__video">
                                        {!! $video !!}
                                    </div>
                                @endif
                                @if ($video_title || $video_text)
                                    <div class="featured-videos__item__content">
                                        <div class="featured-videos__item__left">
                                            @if ($video_title)
                                                <h3 class="featured-videos__item__title">{!! $video_title !!}</h3>
                                            @endif
                                            @if ($video_text)
                                                <div class="featured-videos__item__text">{!! $video_text !!}</div>
                                            @endif
                                            @if ($author)
                                                <p class="featured-videos__item__author">{!! $author !!}</p>
                                            @endif
                                        </div>
                                        @if ($link)
                                            <div class="featured-videos__item__right">
                                                @include('elements.button', ['data' => $link, 'type' => 'blue'])
                                            </div>
                                        @endif
                                    </div>
                                @endif
                            </div>
                        @endwhile
                    </div>
                </a>
            </div>
        </div>
    </section>
@endif --}}