Skip to content

Commit

Permalink
Update _carousel.blade.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Sep 28, 2021
1 parent e8c31c5 commit 16cf0b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/views/public/_carousel.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
<img class="carousel-image swiper-slide" src="{!! $image->present()->image(2880, 1920) !!}" alt="">
@endforeach
</div>
@if ($model->images->count() > 1)
<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>
@endif
</div>
@if ($model->images->count() > 1)
<div class="carousel-pagination swiper-pagination"></div>
Expand All @@ -17,7 +19,7 @@

@push('js')
<script>
new Swiper('.carousel', {
new Swiper('.carousel-swiper', {
loop: true,
grabCursor: true,
speed: 800,
Expand Down

0 comments on commit 16cf0b2

Please sign in to comment.