<?php $__env->startSection('header-script'); ?>
    <?php echo $__env->make('admin.layouts.datatable-header', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('content'); ?>
   <!-- Page-Title -->
                <div class="row">
                    <div class="col-sm-12">
                       <div class="btn-group pull-right m-t-25">
                            <a  href="<?php echo e(URL::to('admin/gallerys')); ?>"  class="btn btn-custom  waves-effect waves-light"  >New Gallery  <span class="m-l-5"><i class="fa fa-plus-square" aria-hidden="true"></i></span></a>
                             
                        </div>
                        <h4 class="page-title">Gallery Photo's</h4>
                        <span class="clearfix"></span>
                        
                        
                    </div>
                </div>
 <div class="row">
                    <div class="col-sm-12">
                        <div class="card-box">
                             

                           
                             <div class="row">
                             <table id="datatable" class="table table-striped dt-responsive nowrap">
                                <thead>
                                    <tr>
                                        <th>Name</th>
                                        <th class="text-center">Photo</th>
                                        <th >Publish Date</th>
                                        <th style="width: 60px;">Action</th>
                                         
                                    </tr>
                                </thead>

                                <tbody>
                                <?php $__currentLoopData = $gallerys; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $gallery): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td><?php echo e($gallery->gallery_name); ?></td> 
                                        <td class="text-center"> <img src="<?php echo e('../galleryphoto/'); ?><?php echo e($gallery->image); ?>" width="100px" /></td> 
                                        <td ><?php echo e($gallery->created_at->format('d M Y')); ?> </td>  
                                         <td  style="width: 60px;">
										 
										 <a href="<?php echo e(url('admin/delete_gallery/'.$gallery->id)); ?>" class="btn btn-sm  btn-danger"><i class="fa fa-trash"></i></a>
										
										 </td>   
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>   
                                     
                                     
                                     
                                     
                                     
                                      
                                </tbody>
                            </table>
                             </div>
                        </div>
                    </div><!-- end col -->
                </div>
                
                  
                 
                <!-- end row -->
 <?php $__env->stopSection(); ?>

 <?php $__env->startSection('footer-script'); ?>
     <?php echo $__env->make('admin.layouts.datatable-footer-script', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
 <?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>