 @if (count($sliderData))
 <div class="slider slider-initial">
   <div class="swiper-container mySwiper slider1">
     <div class="swiper-wrapper">
       @foreach ($sliderData as $slide)
         <a class="swiper-slide"  href="{{$slide['slider_path']}}">
             <img src="{{ url()->to('/') . '/storage/' .$slide['path'] }}" alt="{{$slide['title']}}" />
         </a>
       @endforeach
     </div>
     <div class="swiper-button-next"></div>
     <div class="swiper-button-prev"></div>
     <div class="swiper-pagination"></div>
   </div>
 </div>
 @endif




