<?php $__env->startSection('content'); ?>



 <div class="page-heading">
                <div class="bread">
                    <h4><?php echo e(__('web.gallery')); ?></h4>
                    <nav aria-label="breadcrumb">
                        <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="<?php echo e(url(getCurrentLocale().'/')); ?>"><?php echo e(__('web.home')); ?></a></li>
                        <li class="breadcrumb-item active" aria-current="page"><?php echo e(__('web.gallery')); ?></li>
                        </ol>
                    </nav>
                </div>
        </div>  
        <main>
            <!--start gallery-pg-->   
            <section class="gallery-pg">
                <div class="container">
                    <div class="tabs">
                        <ul class="nav nav-pills mb-3" id="pills-tab" role="tablist">
                            <li class="nav-item" role="presentation">
                              <a class="nav-link active" id="pills-tab1-tab" onclick="category(this)" data-id="null" data-toggle="pill" href="#pills-tab1" role="tab" aria-controls="pills-tab1" aria-selected="true"><?php echo e(__('web.all')); ?></a>
                            </li>
                           <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <li class="nav-item" role="presentation">
                              <a class="nav-link " id="pills-tab1-tab" data-toggle="pill"  onclick="category(this)" data-id="<?php echo e($row->id); ?>"  href="#pills-tab1" role="tab" aria-controls="pills-tab1" aria-selected="true"><?php echo e(categoryname($row->id)); ?></a>
                            </li>
                           <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </ul>
                    </div>
                    <div class="row" id="categories">
                        <?php $__currentLoopData = $galleries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="col-lg-4 col-md-6">
                            <div class="item">
                               
                                <img src="<?php echo e(asset($row->image)); ?>">
                                
                                <a data-fancybox href="<?php if(is_null($row->video)): ?><?php echo e(asset($row->image)); ?><?php else: ?> <?php echo e($row->video); ?> <?php endif; ?>" class="more-butn">
                                    <i class="fas fa-plus"></i>
                                </a>
                                <div class="overlay-text">
                                    <span><?php echo e(galleryname($row->id)); ?></span>
                                    <h5><?php echo e(gallerydescription($row->id)); ?> </h5>
                                </div>
                            </div>
                        </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
                <img src="images/nawal-pattern-2.png" class="logo-pattern-r">
            </section>
        </main>
         <?php $__env->startPush('js'); ?>
   <script>
        function category(elem){
       
       var row = $(elem).attr('data-id');
    
      $.ajax({
          url : <?php echo json_encode(url(getCurrentLocale().'/categorydata/')); ?>+'/'+row,
          type : 'GET',
          data : 'nothing',
          dataType : 'json',
          success:function(data)
          {
           
            $('#categories').html(data);
             
          }
      
        })
        }
    </script>
   <?php $__env->stopPush(); ?>
        <?php $__env->stopSection(); ?>
<?php echo $__env->make('web.layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/nawalgym/public_html/resources/views/web/pages/gallery.blade.php ENDPATH**/ ?>