<section class="latest-photo-gallery">
    <div class="row">
        <div class="col-md-12">
            <div class="nbr rounded  school-gallery" style="visibility: visible; animation-duration: 3s; animation-name: slideInUp;">
                <div class="media g-mb-15">
                    <div class="col-md-12 text-center">
                        <div class="title">
                            <h4>Gallery of SOTY</h4>
                        </div>
                        <div class="filtr-container">
                            <div class="owl-carousel owl-theme gallery-slider">
                                @foreach($galleries as $gallery) 
                                    <div class="box">
                                        <img src="galleryphoto/{{$gallery->image}}" alt="">
                                        <div class="box-content">
                                            <h3 class="title">{{$gallery->gallery_name}}</h3>
                                            <ul class="icon">
                                                <li><a href="galleryphoto/{{$gallery->image}}" data-lightbox="lightbox" data-title="{{$gallery->gallery_name}}"><i class="fa fa-search-plus" aria-hidden="true"></i></a></li>
                                                <li><a href="{{URL::to('/gallery')}}"><i class="fa fa-link"></i></a></li>
                                            </ul>
                                        </div>
                                    </div>
                                @endforeach
                            </div>
                        </div>     
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>