 <?php
     $language = App\Models\Language::all();
     $selectLang = $language->where('code', config('app.locale'))->first();
     $currentLang = session('lang') ? $language->where('code', session('lang'))->first() : $language->where('is_default', Status::YES)->first();
 ?>

<div class="dropdown lang-box">
    <button class="lang-box-btn" data-bs-toggle="dropdown">
        <span class="thumb">
            <img class="fit-image" src="<?php echo e(getImage(getFilePath('language') . '/' . $currentLang->image, getFileSize('language'))); ?>" alt="bd">
        </span>
        <span class="text"><?php echo e(__($currentLang->name)); ?></span>
        <span class="icon">
            <i class="fas fa-angle-down"></i>
        </span>
    </button>

    <ul class="dropdown-menu">
        <?php $__currentLoopData = $language; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <li class="lang-box-item" data-code="<?php echo e($item->code); ?>">
                <a href="<?php echo e(route('lang', $item->code)); ?>" class="lang-box-link">
                    <div class="thumb">
                        <img src="<?php echo e(getImage(getFilePath('language') . '/' . $item->image, getFileSize('language'))); ?>" alt="usa">
                    </div>
                    <span class="text"><?php echo e(__($item->name)); ?></span>
                </a>
            </li>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </ul>
</div>
<?php /**PATH C:\laragon\www\projects\custom_viserdesk\Files\core\resources\views/templates/basic/partials/language.blade.php ENDPATH**/ ?>