<div class="topbar">
    <div class="topbar-left d-flex flex-row align-items-center">
        <h6><?php echo e(translate('Follow Us')); ?></h6>
        <ul class="topbar-social-list gap-2">
            <?php if(get_setting('facebook_link')): ?>
                <li><a href="<?php echo e(get_setting('facebook_link')); ?>"><i class='bx bxl-facebook'></i></a></li>
            <?php endif; ?>
            <?php if(get_setting('twitter_link')): ?>
                <li><a href="<?php echo e(get_setting('twitter_link')); ?>"><i class='bx bxl-twitter'></i></a></li>
            <?php endif; ?>
            <?php if(get_setting('linkedin_link')): ?>
                <li><a href="<?php echo e(get_setting('linkedin_link')); ?>"><i class='bx bxl-linkedin'></i></a></li>
            <?php endif; ?>
            <?php if(get_setting('youtube_link')): ?>
                <li><a href="<?php echo e(get_setting('youtube_link')); ?>"><i class='bx bxl-youtube'></i></a></li>
            <?php endif; ?>
            <?php if(get_setting('instagram_link')): ?>
                <li><a href="<?php echo e(get_setting('instagram_link')); ?>"><i class='bx bxl-instagram'></i></a></li>
            <?php endif; ?>
            <?php if(get_setting('pinterest_link')): ?>
                <li><a href="<?php echo e(get_setting('pinterest_link')); ?>"><i class='bx bxl-pinterest-alt'></i></a></li>
            <?php endif; ?>
        </ul>
    </div>
    <?php if(get_setting('email_address')): ?>
        <div class="email-area">
            <h6><?php echo e(translate('Email')); ?>: <a
                    href="mailto:<?php echo e(get_setting('email_address')); ?>"><?php echo e(get_setting('email_address')); ?></a></h6>
        </div>
    <?php endif; ?>
    <?php if(Auth::check() && Auth::user()->role == 1): ?>
        <div class="available-balance">
            <strong><?php echo e(translate('Available Balance')); ?>:</strong>
            <?php echo e(currency_symbol() . number_format(Auth::user()->wallet_balance, 2)); ?>

        </div>
    <?php endif; ?>


    <div class="topbar-right">
        <ul class="topbar-right-list">
            <?php
                if (Session::has('locale')) {
                    $locale = Session::get('locale', Config::get('app.locale'));
                } else {
                    $locale = get_setting('DEFAULT_LANGUAGE', 'en');
                }
            ?>
            <li><span class="langName"><?php echo e($locale); ?></span><img
                    src="<?php echo e(asset('assets/img/flags/' . $locale . '.png')); ?>" alt="<?php echo e(translate('Language')); ?>">
                <ul class="topbar-sublist" id="change-lang">
                    <?php $__currentLoopData = \App\Models\Language::all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <li><a class="dropdown-item" href="javascript:void(0)" data-flag="<?php echo e($language->code); ?>"
                                class="dropdown-item <?php if($locale == $language->code): ?> active <?php endif; ?>"><span><?php echo e($language->name); ?></span><img
                                    src="<?php echo e(asset('assets/img/flags/' . $language->code . '.png')); ?>"
                                    alt="image"></a>
                        </li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </ul>
            </li>
            <?php if(Auth::guest()): ?>
                <li><a href="<?php echo e(route('merchant.register.show')); ?>"><?php echo e(translate(get_setting('marchant_btn'))); ?></a>
                </li>
                <li><a href="<?php echo e(route('register')); ?>"><?php echo e(translate(get_setting('customer_btn'))); ?></a></li>
            <?php else: ?>
                <li><a href="<?php echo e(route('logout')); ?>"
                        onclick="event.preventDefault();
                                                     document.getElementById('logout-form').submit();"><?php echo e(translate('Logout')); ?></a>
                </li>
                <form id="logout-form" action="<?php echo e(route('logout')); ?>" method="POST" class="d-none">
                    <?php echo csrf_field(); ?>
                </form>
            <?php endif; ?>
        </ul>
    </div>
</div>
<?php /**PATH C:\ServBay\www\bidout-update\resources\views/frontend/template-1/partials/topbar.blade.php ENDPATH**/ ?>