<?php if(Module::isEnabled('Currency') &&
        Route::has('set-currency') &&
        allCurrencies()?->where('status', 'active')->count() > 1): ?>
    <li class="set-currency-header dropdown border rounded-2 mx-2"><a href="javascript:;" data-bs-toggle="dropdown"
            class="nav-link dropdown-toggle nav-link-lg nav-link-user">
            <div class="d-sm-none d-md-inline-block">
                <?php echo e(allCurrencies()?->firstWhere('currency_code', getSessionCurrency())?->currency_name ?? __('Select Currency')); ?>

            </div>
        </a>
        <div class="dropdown-menu py-0 dropdown-menu-left">
            <?php $__empty_1 = true; $__currentLoopData = allCurrencies()?->where('status', 'active'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $currency): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <a href="<?php echo e(getSessionCurrency() == $currency->currency_code ? 'javascript:;' : route('set-currency', ['currency' => $currency->currency_code])); ?>"
                    class="dropdown-item has-icon <?php echo e(getSessionCurrency() == $currency->currency_code ? 'bg-light' : ''); ?>">
                    <?php echo e($currency->currency_name); ?>

                </a>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <a href="javascript:;"
                    class="dropdown-item has-icon <?php echo e(getSessionCurrency() == 'USD' ? 'bg-light' : ''); ?>">
                    <?php echo e(__('USD')); ?>

                </a>
            <?php endif; ?>
        </div>
    </li>
<?php endif; ?>
<?php /**PATH D:\laragon\www\docment_latest\main_files\resources\views/backend_layouts/partials/currency_select.blade.php ENDPATH**/ ?>