<commit_before>@if ($model->images->count() > 0)
<div class="carousel-container">
    <div class="carousel @if ($model->images->count() > 1)carousel-swiper @endif swiper-container">
        <div class="swiper-wrapper">
            @foreach ($model->images as $image)
            <img class="carousel-image swiper-slide" src="{!! $image->present()->image(2880, 1920) !!}" alt="">
            @endforeach
        </div>
    </div>
    @if ($model->images->count() > 1)
    <div class="swiper-pagination"></div>
    @endif
</div>
@endif<commit_msg>Update _carousel.blade.php<commit_after>@if ($model->images->count() > 0)
<div class="carousel-container">
    <div class="carousel @if ($model->images->count() > 1)carousel-swiper @endif swiper-container">
        <div class="swiper-wrapper">
            @foreach ($model->images as $image)
            <img class="carousel-image swiper-slide" src="{!! $image->present()->image(2880, 1920) !!}" alt="">
            @endforeach
        </div>
        <div class="carousel-button carousel-button-prev swiper-button-prev swiper-button-white"></div>
        <div class="carousel-button carousel-button-next swiper-button-next swiper-button-white"></div>
    </div>
    @if ($model->images->count() > 1)
    <div class="carousel-pagination swiper-pagination"></div>
    @endif
</div>
@endif

@push('js')
<script>
    new Swiper('.carousel', {
        loop: true,
        grabCursor: true,
        speed: 800,
        autoplay: {
            delay: 6000,
        },
        navigation: {
            prevEl: '.carousel-button-prev',
            nextEl: '.carousel-button-next',
        },
        pagination: {
            el: '.carousel-pagination',
            type: 'bullets',
            clickable: true,
        },
        // slidesPerView: 1,
        // allowTouchMove: true,
        // watchOverflow: true,
        // spaceBetween: 50,
        // breakpoints: {
        //   1100: {
        //     slidesPerView: 2,
        //   },
        // },
    });

</script>
@endpush
{'fraction_non_alphanumeric': 0.1787128712871287, 'fraction_numerical': 0.018316831683168316, 'mean_word_length': 2.1977848101265822, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 51, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2878366', 'n_tokens_mistral': 661, 'n_tokens_neox': 628, 'n_words': 122}