Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h5 class="card-title">{{ $product['name'] }}</h5>
- @php
- $img = explode('|',$product->image);
- @endphp
- <div id="carouselExampleCaptions" class="carousel slide" data-ride="carousel">
- <ol class="carousel-indicators">
- @foreach ($img as $item => $images)
- <li data-target="#carouselExampleCaptions" data-slide-to="{{ $images }}" class="{{ $loop->first ? 'active' : '' }}"></li>
- @endforeach
- </ol>
- <div class="carousel-inner">
- @foreach ($img as $item => $images)
- <div class="carousel-item">
- <img src="{{'./image/'. $images }}" class="d-block w-100" alt="...">
- <div class="carousel-caption d-none d-md-block">
- <h5>Second slide label</h5>
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
- </div>
- </div>
- @endforeach
- </div>
- <a class="carousel-control-prev" href="#carouselExampleCaptions" role="button" data-slide="prev">
- <span class="carousel-control-prev-icon" aria-hidden="true"></span>
- <span class="sr-only">Previous</span>
- </a>
- <a class="carousel-control-next" href="#carouselExampleCaptions" role="button" data-slide="next">
- <span class="carousel-control-next-icon" aria-hidden="true"></span>
- <span class="sr-only">Next</span>
- </a>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement