<nav class="navbar navbar-top navbar-expand navbar-light bg-secondary border-bottom">
   <div class="container-fluid">
      <div class="collapse navbar-collapse" id="navbarSupportedContent">
         <!-- Search form -->
       
         <!-- Navbar links -->
         <ul class="navbar-nav align-items-center ml-md-auto">
            <li class="nav-item d-xl-none">
               <!-- Sidenav toggler -->
               <div class="pr-3 sidenav-toggler sidenav-toggler-light" data-action="sidenav-pin" data-target="#sidenav-main">
                  <div class="sidenav-toggler-inner">
                     <i class="sidenav-toggler-line"></i>
                     <i class="sidenav-toggler-line"></i>
                     <i class="sidenav-toggler-line"></i>
                  </div>
               </div>
            </li>
            @if(Request::is('user/*'))
            <li class="nav-item dropdown notifications-icon none notifications-area">
               <a class="nav-link" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                  <i class="ni ni-bell-55"></i>
               </a>
               <div class="dropdown-menu dropdown-menu-xl dropdown-menu-right py-0 overflow-hidden">
                  <!-- Dropdown header -->
                  <div class="px-3 py-3">
                     <h6 class="text-sm text-muted m-0">{{ __('You have') }} <strong class="text-primary notification-count">0</strong> {{ __('notifications.') }}</h6>
                  </div>
                  <!-- List group -->
                  <div class="list-group list-group-flush notifications-list">
                     

                  </div>
                  <!-- View all -->
                 
               </div>
            </li>

            <li class="nav-item dropdown">
               <a class="nav-link" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                  <i class="ni ni-ungroup"></i>
               </a>
               <div class="dropdown-menu dropdown-menu-lg dropdown-menu-dark bg-default dropdown-menu-right">
                  <div class="row shortcuts px-4">
                     <a href="{{ url('/user/device') }}" class="col-4 shortcut-item">
                        <span class="shortcut-media avatar rounded-circle bg-gradient-red">
                           <i class="fi-rs-sensor-on"></i>
                        </span>
                        <small>{{ __('Devices') }}</small>
                     </a>
                     <a href="{{ url('/user/sent-text-message') }}" class="col-4 shortcut-item">
                        <span class="shortcut-media avatar rounded-circle bg-gradient-orange">
                           <i class="fi fi-rs-paper-plane"></i>
                        </span>
                        <small>{{ __('Single Send') }}</small>
                     </a>
                     <a href="{{ url('/user/bulk-message') }}" class="col-4 shortcut-item">
                        <span class="shortcut-media avatar rounded-circle bg-gradient-purple">
                           <i class="fi fi-rs-rocket-lunch"></i>
                        </span>
                        <small>{{ __('Bulk Send') }}</small>
                     </a>
                     <a href="{{ __('/user/chatbot') }}" class="col-4 shortcut-item">
                        <span class="shortcut-media avatar rounded-circle bg-gradient-info">
                           <i class="fas fa-robot"></i>
                        </span>
                        <small>{{ __('Chatbot') }}</small>
                     </a>                  
                     <a href="{{ url('/user/contact') }}" class="col-4 shortcut-item">
                        <span class="shortcut-media avatar rounded-circle bg-gradient-yellow">
                           <i class="fi  fi-rs-address-book"></i>
                        </span>
                        <small>{{ __('Contacts') }}</small>
                     </a>
                     <a href="{{ url('/user/logs') }}" class="col-4 shortcut-item">
                        <span class="shortcut-media avatar rounded-circle bg-gradient-green">
                           <i class="ni ni-books"></i>
                        </span>
                        <small>{{ __('Reports') }}</small>
                     </a>
                  </div>
               </div>
            </li>
             @endif
         </ul>

         <ul class="navbar-nav align-items-center ml-auto ml-md-0">
            <li class="nav-item dropdown">
               <a class="nav-link pr-0" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                  <div class="media align-items-center">
                     <span class="avatar avatar-sm rounded-circle">
                        <img alt="Image placeholder" src="{{ Auth::user()->avatar == null ? 'https://ui-avatars.com/api/?name='.Auth::user()->name : asset(Auth::user()->avatar) }}">
                     </span>
                     <div class="media-body ml-2 d-none d-lg-block">
                        <span class="mb-0 text-sm  font-weight-bold">{{ Auth::user()->name }}</span>
                     </div>
                  </div>
               </a>
               <div class="dropdown-menu dropdown-menu-right">
                  <div class="dropdown-header noti-title">
                     <h6 class="text-overflow m-0">{{ __('Welcome!') }}</h6>
                  </div>
                  <a href="{{ Request::is('user/*') ? url('/user/profile') : url('/admin/profile') }}" class="dropdown-item">
                     <i class="ni ni-single-02"></i>
                     <span>{{ __('My profile') }}</span>
                  </a>
                  @if(Request::is('user/*'))
                  <a href="{{ url('/user/subscription') }}" class="dropdown-item">
                     <i class="ni ni-settings-gear-65"></i>
                     <span>{{ __('Subscription') }}</span>
                  </a>
                  <a href="{{ url('/user/auth-key') }}" class="dropdown-item">
                     <i class="fas fa-code"></i>
                     <span>{{ __('Auth Key') }}</span>
                  </a>
                  @endif
                  <a href="{{ Request::is('user/*') ? url('/user/support') : url('/admin/support') }}" class="dropdown-item">
                     <i class="ni ni-support-16"></i>
                     <span>{{ __('Support') }}</span>
                  </a>
                  <div class="dropdown-divider"></div>
                  <a href="#!" class="dropdown-item logout-button">
                     <i class="ni ni-user-run"></i>
                     <span>{{ __('Logout') }}</span>
                  </a>
               </div>
            </li>
         </ul>
      </div>
   </div>
</nav>
<!-- Header -->
<!-- Header -->