<?php if(Auth::user()): ?>
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('portfolio 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('portfolio 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; ?>
                        <div class="row">
                            <div class="col-md-12">
                                <?php if(is_countable($portfolio_count_categories) && count($portfolio_count_categories) > 0): ?>
                                    <div class="text-center mb-5 custom-category-link">
                                        <a href="<?php echo e(url($portfolio_index->page_uri)); ?>" class="mb-2"><?php echo e(__('frontend.all')); ?></a>
                                        <?php $__currentLoopData = $portfolio_count_categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $portfolio_count_category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <?php if(isset($portfolio_count_category->portfolio_category->portfolio_category_slug)): ?>
                                                <a class="<?php if($category->category_name == $portfolio_count_category->portfolio_category->category_name): ?> current <?php endif; ?> mb-2" href="<?php echo e(route('default-portfolio-category-index', $portfolio_count_category->portfolio_category->portfolio_category_slug)); ?>"><?php echo e($portfolio_count_category->portfolio_category->category_name); ?> (<?php echo e($portfolio_count_category->category_count); ?>)</a>
                                            <?php endif; ?>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php unset($portfolio_count_category); ?>
                                    </div>
                                <?php else: ?>
                                    <?php if(Auth::user() || $draft_view == null || $draft_view->status == 'enable'): ?>
                                        <div class="text-center mb-5 custom-category-link">
                                            <a href="#" class="link-dark">Creative</a>
                                            <a href="#" class="link-secondary">Business</a>
                                            <a href="#" class="link-secondary">UI / UX Design</a>
                                            <a href="#" class="link-secondary">Marketing</a>
                                        </div>
                                    <?php endif; ?>
                                <?php endif; ?>
                            </div>
                        </div>

                        <?php if(is_countable($portfolios_paginate_style) && count($portfolios_paginate_style) > 0): ?>
                            <div class="row">
                                <?php $__currentLoopData = $portfolios_paginate_style; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__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('portfolio 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="portfolio.edit">
                                                    <input type="hidden" name="single_id" value="<?php echo e($item->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($item->section_image)): ?>
                                                <a href="<?php echo e(asset('uploads/img/portfolio/'.$item->section_image)); ?>" class="d-block popup-link"><img src="<?php echo e(asset('uploads/img/portfolio/'.$item->section_image)); ?>" alt="image"></a>
                                            <?php endif; ?>
                                                <div class="contents">
                                                <?php if(!empty($item->url)): ?>
                                                    <h5><a href="<?php echo e($item->url); ?>"><?php echo e($item->title); ?></a></h5>
                                                <?php else: ?>
                                                    <?php if(!empty($item->url)): ?>
                                                        <h5><a href="<?php echo e($item->url); ?>"><?php echo e($item->title); ?></a></h5>
                                                    <?php else: ?>
                                                        <h5><a href="<?php echo e(route('default-portfolio-detail-show', ['portfolio_slug' => $item->portfolio_slug])); ?>"><?php echo e($item->title); ?></a></h5>
                                                    <?php endif; ?>
                                                <?php endif; ?>
                                                <span><?php echo e($item->category_name); ?></span>
                                            </div>
                                        </div>
                                    </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php unset($item); ?>

                            </div>
                            <div class="row mt-80">
                                <div class="col-xl-12 justify-content-center">
                                    <?php echo e($portfolios_paginate_style->links()); ?>

                                </div>
                            </div>
                        <?php else: ?>
                            <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; ?>
                    </div>
                </section>

                <?php if(Auth::user()): ?>
                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('portfolio 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="portfolio.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="portfolio.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 me-2 mb-2">
                        <i class="fa fa-plus text-white"></i> <?php echo e(__('content.add_portfolio')); ?>

                    </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="portfolio.index">
                    <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 me-2 mb-2">
                        <i class="fas fa-briefcase text-white"></i> <?php echo e(__('content.portfolio')); ?>

                    </button>
                </form>
            </div>
        </div>
    <?php endif; ?>
<?php endif; ?>
<?php /**PATH /home/lltrusti/casinonexus.online/ajay/resources/views/frontend/portfolio/category-index-list.blade.php ENDPATH**/ ?>