<?php if(is_plugin_active('language')): ?>
    <?php
        $supportedLocales = Language::getSupportedLocales();
    ?>
    <?php if($supportedLocales && count($supportedLocales) > 1): ?>
        <?php
            $languageDisplay = setting('language_display', 'all');
        ?>

        <div class="padtop10 mb-2 language">
            <?php if(setting('language_switcher_display', 'dropdown') == 'dropdown'): ?>
                <div id="langMenuDropdow" class="dropdown-menu dropdown-menu-left" aria-labelledby="langMenu">
                    <?php $__currentLoopData = $supportedLocales; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $localeCode => $properties): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if($localeCode != Language::getCurrentLocale()): ?>
                            <a class="dropdown-item" href="<?php echo e(Language::getSwitcherUrl($localeCode, $properties['lang_code'])); ?>">
                                <?php echo language_flag($properties['lang_flag'], $properties['lang_name']); ?>

                                <?php echo e($properties['lang_name']); ?>

                            </a>
                        <?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
                <a class="dropdown-toggle" href="#" role="button" id="langMenu" data-toggle="dropdown"
                   aria-haspopup="true" aria-expanded="false">
                    <i class="ti-world mr-5"></i>
                    <span><?php echo e(Language::getCurrentLocaleName()); ?></span>
                </a>
            <?php else: ?>
                <?php $__currentLoopData = $supportedLocales; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $localeCode => $properties): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if($localeCode != Language::getCurrentLocale()): ?>
                        <a class="<?php echo e($color ?? ''); ?>" href="<?php echo e(Language::getSwitcherUrl($localeCode, $properties['lang_code'])); ?>">
                            <?php if(($languageDisplay == 'all' || $languageDisplay == 'flag')): ?><?php echo language_flag($properties['lang_flag'], $properties['lang_name']); ?><?php endif; ?>
                            <?php if(($languageDisplay == 'all' || $languageDisplay == 'name')): ?>
                                <span><?php echo e($properties['lang_name']); ?></span><?php endif; ?>
                        </> &nbsp;
                    <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <?php endif; ?>
        </div>
    <?php endif; ?>
<?php endif; ?>
<?php /**PATH C:\Users\Admin\Documents\UltraNews v4.0.0 Nulled\UltraNews v4.0.0 Nulled\ultra-news\platform\themes/ultra/partials/language-switcher.blade.php ENDPATH**/ ?>