<?php
    $showBottomNav = auth()->check()
        && (int) (auth()->user()->usertype ?? 0) === 4
        && !request()->routeIs('examslive');

    $isFrontRoute = fn (...$patterns) => request()->routeIs(...$patterns);
    $bottomNavItems = [
        [
            'route' => 'competitionlist',
            'label' => 'Home',
            'icon' => 'fa-home',
            'active' => $isFrontRoute('competitionlist', 'contestdetails', 'competitionjoin', 'examstart'),
        ],
        [
            'route' => 'scholershipresult',
            'label' => 'Results',
            'icon' => 'fa-trophy',
            'active' => $isFrontRoute('scholershipresult', 'myexamresultdetails', 'examsresultt', 'examsanswersheet', 'scoringresult'),
        ],
        [
            'route' => 'walletrecharge',
            'label' => 'Wallet',
            'icon' => 'fa-credit-card',
            'active' => $isFrontRoute('walletrecharge', 'walletamount', 'wallethistory', 'userwithdraw', 'withdrawhistory'),
        ],
        [
            'route' => 'gamehistory',
            'label' => 'History',
            'icon' => 'fa-history',
            'active' => $isFrontRoute('gamehistory'),
        ],
        [
            'route' => 'editprofile',
            'label' => 'Profile',
            'icon' => 'fa-user',
            'active' => $isFrontRoute('editprofile', 'profileimg', 'mobileotp', 'emailvarification', 'userpasswordchange'),
        ],
    ];
?>

<?php if($showBottomNav): ?>
    <nav class="jel-bottom-nav" aria-label="Student quick navigation">
        <?php $__currentLoopData = $bottomNavItems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <a href="<?php echo e(route($item['route'])); ?>" class="<?php echo e($item['active'] ? 'active' : ''); ?>">
                <i class="fa <?php echo e($item['icon']); ?>"></i>
                <span class="jel-bottom-nav__label"><?php echo e($item['label']); ?></span>
            </a>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </nav>
<?php endif; ?>
<?php /**PATH C:\xampp\htdocs\examproject\examproject_new\resources\views/include/frontfooter.blade.php ENDPATH**/ ?>