<?php if(Auth::user()): ?>
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('gallery check')): ?>
        <div class="easier-mode">
            <div class="easier-section-area">
                <?php endif; ?>
                <?php endif; ?>

                <section class="portfolio-showcase-wrapper section-padding">
                    <div class="container">
                        <?php if(Auth::user()): ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('gallery check')): ?>
                                <!-- hover effect for mobile devices  -->
                                <div class="click-icon d-md-none text-center">
                                    <button class="custom-btn text-white">
                                        <i class="fa fa-mobile-alt text-white"></i> <?php echo e(__('content.touch')); ?>

                                    </button>
                                </div>
                            <?php endif; ?>
                        <?php endif; ?>
                        <?php if(is_countable($gallery_images_paginate_style) && count($gallery_images_paginate_style) > 0): ?>
                            <div class="row">
                                <?php $__currentLoopData = $gallery_images_paginate_style; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $gallery_image): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <div class="col-md-6 col-xl-4 grid-item">
                                        <?php if(Auth::user()): ?>
                                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('gallery check')): ?>
                                                <?php
                                                    $url = request()->path();
                                                    $modified_url = str_replace('/', '-bracket-', $url);
                                                ?>
                                                <form method="POST" action="<?php echo e(route('site-url.index')); ?>" class="d-inline-block">
                                                    <?php echo csrf_field(); ?>
                                                    <input type="hidden" name="route" value="gallery.edit">
                                                    <input type="hidden" name="single_id" value="<?php echo e($gallery_image->id); ?>">
                                                    <input type="hidden" name="site_url" value="<?php echo e($modified_url); ?>">
                                                    <button type="submit" class="me-2 custom-pure-button">
                                                        <i class="fa fa-edit text-info easier-custom-font-size-24"></i>
                                                    </button>
                                                </form>
                                            <?php endif; ?>
                                        <?php endif; ?>
                                        <div class="portfolio-item-card">
                                            <?php if(!empty($gallery_image->section_image)): ?>
                                                <a href="<?php echo e(asset('uploads/img/gallery/'.$gallery_image->section_image)); ?>" class="d-block popup-link"><img src="<?php echo e(asset('uploads/img/gallery/'.$gallery_image->section_image)); ?>" alt="image"></a>
                                            <?php endif; ?>
                                            <div class="contents">
                                                <h5><a href="#"><?php echo e($gallery_image->title); ?></a></h5>
                                                <span><?php echo e($gallery_image->subtitle); ?></span>
                                            </div>
                                        </div>
                                    </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php unset($gallery_image); ?>
                            </div>
                            <div class="row mt-80">
                                <div class="col-xl-12 justify-content-center">
                                    <?php echo e($gallery_images_paginate_style->links()); ?>

                                </div>
                            </div>
                        <?php else: ?>
                            <?php if(Auth::user() || $draft_view == null || $draft_view->status == 'enable'): ?>
                                <div class="row">
                                    <div class="col-md-6 col-xl-4 grid-item">
                                        <div class="portfolio-item-card">
                                            <a href="<?php echo e(asset('uploads/img/dummy/420x400.webp')); ?>" class="d-block popup-link"><img src="<?php echo e(asset('uploads/img/dummy/420x400.webp')); ?>" alt="image"></a>
                                            <div class="contents">
                                                <h5><a href="#">Creative art work</a></h5>
                                                <span>Branding</span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6 col-xl-4 grid-item">
                                        <div class="portfolio-item-card">
                                            <a href="<?php echo e(asset('uploads/img/dummy/420x400.webp')); ?>" class="d-block popup-link"><img src="<?php echo e(asset('uploads/img/dummy/420x400.webp')); ?>" alt="image"></a>
                                            <div class="contents">
                                                <h5><a href="#">Flowers in vases</a></h5>
                                                <span>Photography</span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6 col-xl-4 grid-item">
                                        <div class="portfolio-item-card">
                                            <a href="<?php echo e(asset('uploads/img/dummy/420x400.webp')); ?>" class="d-block popup-link"><img src="<?php echo e(asset('uploads/img/dummy/420x400.webp')); ?>" alt="image"></a>
                                            <div class="contents">
                                                <h5><a href="#">art design</a></h5>
                                                <span>Creative</span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6 col-xl-4 grid-item">
                                        <div class="portfolio-item-card">
                                            <a href="<?php echo e(asset('uploads/img/dummy/420x400.webp')); ?>" class="d-block popup-link"><img src="<?php echo e(asset('uploads/img/dummy/420x400.webp')); ?>" alt="image"></a>
                                            <div class="contents">
                                                <h5><a href="#">Open books</a></h5>
                                                <span>Creative</span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6 col-xl-4 grid-item">
                                        <div class="portfolio-item-card">
                                            <a href="<?php echo e(asset('uploads/img/dummy/420x400.webp')); ?>" class="d-block popup-link"><img src="<?php echo e(asset('uploads/img/dummy/420x400.webp')); ?>" alt="image"></a>
                                            <div class="contents">
                                                <h5><a href="#">Creative art work</a></h5>
                                                <span>Branding</span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6 col-xl-4 grid-item">
                                        <div class="portfolio-item-card">
                                            <a href="<?php echo e(asset('uploads/img/dummy/420x400.webp')); ?>" class="d-block popup-link"><img src="<?php echo e(asset('uploads/img/dummy/420x400.webp')); ?>" alt="image"></a>
                                            <div class="contents">
                                                <h5><a href="#">Work station</a></h5>
                                                <span>UI/UX Design</span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            <?php endif; ?>
                        <?php endif; ?>

                    </div>
                </section>

                <?php if(Auth::user()): ?>
                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('gallery check')): ?>
            </div>
            <div class="easier-middle">
                <?php
                    $url = request()->path();
                    $modified_url = str_replace('/', '-bracket-', $url);
                ?>
                <form method="POST" action="<?php echo e(route('site-url.index')); ?>" class="d-inline-block">
                    <?php echo csrf_field(); ?>
                    <input type="hidden" name="route" value="gallery.index">
                    <input type="hidden" name="style" value="">
                    <input type="hidden" name="site_url" value="<?php echo e($modified_url); ?>">
                    <button type="submit" class="custom-btn text-white me-2 mb-2">
                        <i class="fa fa-edit text-white"></i> <?php echo e(__('content.edit_section_title_description')); ?>

                    </button>
                </form>
                <form method="POST" action="<?php echo e(route('site-url.index')); ?>" class="d-inline-block">
                    <?php echo csrf_field(); ?>
                    <input type="hidden" name="route" value="gallery.create">
                    <input type="hidden" name="style" value="style1">
                    <input type="hidden" name="site_url" value="<?php echo e($modified_url); ?>">
                    <button type="submit" class="custom-btn text-white">
                        <i class="fa fa-plus text-white"></i> <?php echo e(__('content.add_gallery')); ?>

                    </button>
                </form>
            </div>
        </div>
    <?php endif; ?>
<?php endif; ?>
<?php /**PATH /home/lltrusti/casinonexus.online/ajay/resources/views/frontend/sections/gallery/gallery-style2.blade.php ENDPATH**/ ?>