<?php
    $iconsReplace = [
        'whatsapp' => Theme::asset()->url('images/whatsapp.svg'),
        'telegram' => Theme::asset()->url('images/telegram.svg')
    ]
?>
<div class="top-bar pt-10 pb-10 <?php echo e($background); ?> <?php echo e($color ?? ''); ?> d-none d-md-block">
    <div class="container">
        <div class="row">
            <div class="col-6 text-left">
                <?php if(is_plugin_active('language')): ?>
                    <div class="language d-inline-block font-small <?php echo e($color ?? ''); ?>">
                        <?php echo Theme::partial('language-switcher', ['color' => $color ?? '']); ?>

                    </div>
                <?php endif; ?>
                <div class="d-inline-block">
                    <ul>
                        <li>
                            <span class="font-small"><i class="ti-calendar mr-5"></i>
                                <?php echo e(date(theme_option('post_date_format', 'D, M Y'))); ?>

                            </span>
                        </li>
                    </ul>
                </div>
            </div>

            <div class="col-6 text-right">
                <?php if(!empty(theme_option('social_links'))): ?>
                    <ul class="header-social-network d-inline-block list-inline <?php echo e($color ?? ''); ?>">
                        <?php $__currentLoopData = json_decode(theme_option('social_links'), true); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $socialLink): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <li class="list-inline-item align-middle">
                                <a href="<?php echo e($socialLink[2]['value']); ?>"
                                   target="_blank"
                                   class="d-flex social-icon <?php echo e($color ?? ''); ?> <?php echo e(strtolower($socialLink[1]['value'])); ?>-icon text-xs-center"
                                   title="<?php echo e($socialLink[0]['value']); ?>">
                                    <?php if( isset($iconsReplace[strtolower($socialLink[1]['value'])])): ?>
                                        <img src="<?php echo e($iconsReplace[strtolower($socialLink[1]['value'])]); ?>" width="12"
                                             alt="icon">
                                    <?php else: ?>
                                        <i class="ti-<?php echo e(strtolower($socialLink[1]['value'])); ?>"></i>
                                    <?php endif; ?>
                                </a>
                            </li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </ul>
                <?php endif; ?>

                <?php if(theme_option('allow_account_login', '') == 'yes'): ?>
                    <div class="vline-space d-inline-block"></div>
                    <div class="user-account d-inline-block font-small">
                        <?php if(!auth('member')->check()): ?>
                            <a href="<?php echo e(route('public.member.login')); ?>" role="button"
                               class="<?php echo e($color ?? ''); ?>">
                                <i class="ti-user"></i>
                                <span><?php echo e(__('Login')); ?></span>
                            </a>
                        <?php else: ?>
                            <a class="dropdown-toggle" href="#" role="button"
                               class="<?php echo e($color ?? ''); ?>"
                               id="userMenu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                <i class="ti-user"></i>
                                <span><?php echo e(__('Account')); ?></span>
                            </a>
                            <div id="userMenuDropdow" class="dropdown-menu dropdown-menu-right"
                                 aria-labelledby="userMenu">
                                <a class="dropdown-item" href="<?php echo e(route('public.member.dashboard')); ?>">
                                    <i class="ti-pencil-alt"></i><?php echo e(__('Your Dashboard')); ?>

                                </a>
                                <a class="dropdown-item" href="<?php echo e(route('public.member.settings')); ?>">
                                    <i class="ti-stats-up"></i><?php echo e(__('Edit profile')); ?>

                                </a>

                                <?php if(is_plugin_active('pro-posts')): ?>
                                    <a class="dropdown-item" href="<?php echo e(route('public.favorite-post-listing')); ?>">
                                        <i class="ti-heart"></i><?php echo e(__('My Favorite Posts')); ?>

                                    </a>
                                    <a class="dropdown-item" href="<?php echo e(route('public.bookmark-post-listing')); ?>">
                                        <i class="ti-bookmark"></i><?php echo e(__('My Bookmark Posts')); ?>

                                    </a>
                                    <a class="dropdown-item" href="<?php echo e(route('public.recently-viewed-posts')); ?>">
                                        <i class="ti-bookmark"></i><?php echo e(__('My Viewed Posts')); ?>

                                    </a>
                                <?php endif; ?>
                                <div class="dropdown-divider"></div>
                                <a class="dropdown-item" href="#"
                                   onclick="event.preventDefault(); document.getElementById('logout-form').submit();" t>
                                    <i class="ti-share"></i><?php echo e(__('Logout')); ?>

                                </a>
                                <form id="logout-form" action="<?php echo e(route('public.member.logout')); ?>" method="POST"
                                      style="display: none;">
                                    <?php echo csrf_field(); ?>
                                </form>
                            </div>
                        <?php endif; ?>
                    </div>
                <?php endif; ?>
            </div>
        </div>
    </div>
</div>
<!--End top bar-->
<?php /**PATH C:\Users\Admin\Documents\UltraNews v4.0.0 Nulled\UltraNews v4.0.0 Nulled\ultra-news\platform\themes/ultra/partials/header/top-bar.blade.php ENDPATH**/ ?>