<div class="page-header navbar navbar-fixed-top">
    <div class="page-header-inner ">
        <!-- logo start -->
        <div class="page-logo">
            <a href="/dashboard"><span class="logo-default"><?php echo app('translator')->get('dashboard.smile'); ?></span> </a>
        </div>
        <!-- logo end -->
        <ul class="nav navbar-nav navbar-left in">
            <li><a href="#" class="menu-toggler sidebar-toggler"><i class="icon-menu"></i></a></li>
        </ul>
        <form class="search-form-opened" action="#" method="GET">
            <div class="input-group">
                <input type="text" class="form-control" placeholder="<?php echo app('translator')->get('dashboard.search'); ?>" name="query">
                <span class="input-group-btn">
                    <a href="javascript:;" class="btn submit">
                        <i class="icon-magnifier"></i>
                    </a>
                </span>
            </div>
        </form>
        <!-- start mobile menu -->
        <a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse">
            <span></span>
        </a>
        <!-- end mobile menu -->
        <!-- start header menu -->
        <div class="top-menu">
            <ul class="nav navbar-nav pull-right">
                <!-- start language menu -->
                <li class="dropdown language-switch">
                    <a class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">  <?php echo app('translator')->get('dashboard.language'); ?><span class="fa fa-angle-down"></span>
                    </a>
                    <ul class="dropdown-menu animated tada">
                        <li>
                            <a href="<?php echo e(url('locale/bn')); ?>" class="deutsch"><img src="<?php echo e(asset('admin/assets/img/flags/bd.png')); ?>" alt=""><?php echo e(" ".__('dashboard.bangla')); ?></a>
                        </li>
                        <li>
                            <a href="<?php echo e(url('locale/en')); ?>" class="english"><img src="<?php echo e(asset('admin/assets/img/flags/gb.png')); ?>" alt=""> English</a>
                        </li>
                    </ul>
                </li>
                <!-- end language menu -->
                <!-- start notification dropdown -->
                <li class="dropdown dropdown-extended dropdown-notification" id="header_notification_bar">
                    <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
                        <i class="fa fa-bell-o"></i>
                        <?php if(Auth::user()->unreadNotifications->count()): ?>
                        <span class="badge headerBadgeColor1">
                            <?php echo e(Auth::user()->unreadNotifications->count()); ?>

                        </span>
                        <?php endif; ?>
                    </a>
                    <ul class="dropdown-menu animated swing">
                        <li class="external">
                            <h3><span class="bold">Notifications</span></h3>
                            <span class="notification-label defaul-bgcolor">
                                <a href="<?php echo e(url('/markallasread')); ?>">Mark all as Read</a>
                            </span>
                        </li>
                        <li>
                            <ul class="dropdown-menu-list small-slimscroll-style" data-handle-color="#637283">
                                <?php $__currentLoopData = Auth::user()->unreadNotifications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $notification): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <li>
                                    <?php if($notification->type == 'App\Notifications\FarmerCreateNotification'): ?>

                                    <a href="/<?php echo e($notification->data['route']); ?>" class="text-success">
                                        <span class="time"><?php echo e(str_replace(['minutes', 'minute', 'second', 'seconds'], ['mins', 'min', 'sec', 'secs'], $notification->created_at->diffForHumans())); ?></span>
                                        <span class="details">
                                            <span><mark><?php echo e($notification->data['farmer_name']); ?></mark></span> registered as a farmer in <?php echo e($notification->data['branch_name']); ?></span>
                                    </a>
                                    <?php endif; ?>
                                    <?php if($notification->type == 'App\Notifications\UserCreateNotification'): ?>

                                    <a href="/<?php echo e($notification->data['route']); ?>" class="text-success">
                                        <span class="time"><?php echo e(str_replace(['minutes', 'minute', 'second', 'seconds'], ['mins', 'min', 'sec', 'secs'], $notification->created_at->diffForHumans())); ?></span>
                                        <span class="details">
                                            <span><mark><?php echo e($notification->data['user_name']); ?></mark></span> registered as a user
                                        </span>
                                    </a>
                                    <?php endif; ?>
                                </li>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </ul>
                            <div class="dropdown-menu-footer">
                                <a href="<?php echo e(url('/notifications')); ?>"> All notifications </a>
                            </div>
                        </li>
                    </ul>
                </li>
                <li class="dropdown dropdown-user">
                    <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
                        <span class="username username-hide-on-mobile"> <?php echo e(auth()->user()->name); ?> </span>
                        <i class="fa fa-angle-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-menu-default animated jello">
                        <li>
                            <a href="<?php echo e(route('admin.user.show', auth()->user())); ?>"><i class="icon-user"></i> Profile </a>
                        </li>
                        <li>
                            <a href="<?php echo e(route('settings')); ?>">
                                <i class="icon-settings"></i> Settings
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo e(route('admin.user.change-password')); ?>">
                                <i class="icon-lock"></i> Change Password
                            </a>
                        </li>
                        <li>
                            <a class="dropdown-item" href="<?php echo e(route('logout')); ?>" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
                                <i class="icon-logout"></i> Log Out
                            </a>
                            <form id="logout-form" action="<?php echo e(route('logout')); ?>" method="POST" style="display: none;">
                                <?php echo csrf_field(); ?>
                            </form>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</div>
<?php /**PATH C:\xampp\htdocs\forazi\resources\views/template/partials/topbar.blade.php ENDPATH**/ ?>