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

                <section class="our-team-wrapper section-bg section-padding">
                    <div class="container">
                        <?php if(Auth::user()): ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('team 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($team_count_categories) && count($team_count_categories) > 0): ?>
                                    <div class="text-center mb-5 custom-category-link">
                                        <a href="<?php echo e(url($team_index->page_uri)); ?>" class="mb-2"><?php echo e(__('frontend.all')); ?></a>
                                        <?php $__currentLoopData = $team_count_categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $team_count_category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <?php if(isset($team_count_category->team_category->team_category_slug)): ?>
                                                    <a class="<?php if($category->category_name == $team_count_category->team_category->category_name): ?> current <?php endif; ?> mb-2" href="<?php echo e(route('default-team-category-index', $team_count_category->team_category->team_category_slug)); ?>"><?php echo e($team_count_category->team_category->category_name); ?> (<?php echo e($team_count_category->category_count); ?>)</a>
                                            <?php endif; ?>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php unset($team_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">Management</a>
                                            <a href="#" class="link-secondary">Departments</a>
                                            <a href="#" class="link-secondary">Business Development</a>
                                            <a href="#" class="link-secondary">Research & Development</a>
                                        </div>
                                    <?php endif; ?>
                                <?php endif; ?>
                            </div>
                        </div>
                        <?php if(is_countable($teams_paginate_style) && count($teams_paginate_style) > 0): ?>
                            <div class="row">
                                <?php $__currentLoopData = $teams_paginate_style; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <div class="col-xl-4 col-md-6">
                                        <?php if(Auth::user()): ?>
                                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('team 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="team.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="single-team-member">
                                            <?php if(!empty($item->section_image)): ?>
                                                <div class="member-img bg-cover" style="background-image: url(<?php echo e(asset('uploads/img/team/'.$item->section_image)); ?>)"></div>
                                            <?php endif; ?>
                                            <div class="member-info">
                                                <h4><?php echo e($item->name); ?></h4>
                                                <span><?php echo e($item->job); ?></span>
                                                <?php if(!empty($item->facebook_url)): ?> <a href="<?php echo e($item->facebook_url); ?>"><i class="fab fa-facebook-f"></i></a> <?php endif; ?>
                                                <?php if(!empty($item->twitter_url)): ?> <a href="<?php echo e($item->twitter_url); ?>"><i class="fab fa-twitter"></i></a> <?php endif; ?>
                                                <?php if(!empty($item->instagram_url)): ?> <a href="<?php echo e($item->instagram_url); ?>"><i class="fab fa-instagram"></i></a> <?php endif; ?>
                                                <?php if(!empty($item->youtube_url)): ?> <a href="<?php echo e($item->youtube_url); ?>"><i class="fab fa-youtube"></i></a> <?php endif; ?>
                                                <?php if(!empty($item->linkedin_url)): ?> <a href="<?php echo e($item->linkedin_url); ?>"><i class="fab fa-linkedin"></i></a> <?php endif; ?>
                                            </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($teams_paginate_style->links()); ?>

                                </div>
                            </div>
                        <?php else: ?>
                            <?php if(Auth::user() || $draft_view == null || $draft_view->status == 'enable'): ?>
                                <div class="row">
                                    <div class="col-xl-4 col-md-6">
                                        <div class="single-team-member">
                                            <div class="member-img bg-cover" style="background-image: url(<?php echo e(asset('uploads/img/dummy/435x430.webp')); ?>)"></div>
                                            <div class="member-info">
                                                <h4>Johnny Scott</h4>
                                                <span>CEO and founder</span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-xl-4 col-md-6">
                                        <div class="single-team-member">
                                            <div class="member-img bg-cover" style="background-image: url(<?php echo e(asset('uploads/img/dummy/435x430.webp')); ?>)"></div>
                                            <div class="member-info">
                                                <h4>Marion Keith</h4>
                                                <span>Content Writer/Marketer</span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-xl-4 col-md-6">
                                        <div class="single-team-member">
                                            <div class="member-img bg-cover" style="background-image: url(<?php echo e(asset('uploads/img/dummy/435x430.webp')); ?>)"></div>
                                            <div class="member-info">
                                                <h4>Romeo Noel</h4>
                                                <span>Graphic Designer</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('team 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="team.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="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="team.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_team')); ?>

                    </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="team.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-people-carry text-white"></i> <?php echo e(__('content.teams')); ?>

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