@guest

  @if(session()->has('ip_base_access'))

  <section class="m-0 p-0 bg-light shadow-sm">

      <div class="container">

        <ul class="nav justify-content-end">

          <li class="nav-item">

              <a class="nav-link text-secondary dropdown-toggle msc" href="#" role="button" id="msc" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> My Subscriptions</a>



              <div class="dropdown-menu profile p-2" id="msc">          



                <a class="dropdown-item"  href="/browse-by-subscribe"><i class="fas fa-book mr-2"></i> Journals</a>



                <a class="dropdown-item" href="/browse-ebook-subscribe"><i class="fas fa-book-reader mr-2"></i> Books</a>

                

              </div>

           </li>

          <li class="nav-item">

            <a class="nav-link text-dark  user-name pl-2 pt-2" href="#"><i class="livicon" data-name="users" data-size="20" data-c="#d6d6d6" data-hc="#d6d6d6" data-loop="true"></i> <strong>Welcome</strong> {{ session()->get('access_org_name') }}</a>

          </li>

        </ul>

      </div>

  </section>

  @endif

 @else

@if(session()->has('referral_base_access'))

  

  <section class="m-0 p-0 bg-light shadow-sm">

      <div class="container">

        <ul class="nav justify-content-end">

          <li class="nav-item">

              <a class="nav-link text-secondary dropdown-toggle msc" href="#" role="button" id="msc" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> My Subscriptions</a>



              <div class="dropdown-menu profile p-2" id="msc">          



                <a class="dropdown-item"  href="/browse-by-subscribe"><i class="livicon" data-name="notebook" data-size="30" data-c="#d6d6d6" data-hc="#d6d6d6" data-loop="true"></i> Journals</a>



                <a class="dropdown-item" href="/browse-ebook-subscribe"><i class="livicon" data-name="doc-portrait" data-size="30" data-c="#d6d6d6" data-hc="#d6d6d6" data-loop="true"></i> Books</a>

                

              </div>

          </li>

          <li class="nav-item">

            <a class="nav-link text-dark  user-name pl-2 pt-2" href="#"><i class="livicon" data-name="users" data-size="20" data-c="#d6d6d6" data-hc="#d6d6d6" data-loop="true"></i> <strong>Welcome</strong>  {{ Auth::user()->display_name }}</a>

          </li>

        </ul>

      </div>

  </section>



 @else



<section class="m-0 p-0 bg-light shadow-sm">

          <div class="container">

            <ul class="nav justify-content-end">

              <li class="nav-item">

                  <a class="nav-link text-secondary dropdown-toggle msc" href="#" role="button" id="msc" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> My Subscriptions</a>



                  <div class="dropdown-menu profile p-2" id="msc">          



                    <a class="dropdown-item"  href="/browse-by-subscribe"><i class="fas fa-book mr-2"></i> Journals</a>



                    <a class="dropdown-item" href="/browse-ebook-subscribe"><i class="fas fa-book-reader mr-2"></i> Books</a>



                  </div>

               </li>



              <li class="nav-item">

                <a class="nav-link text-dark dropdown-toggle user-name mt-1" href="#" role="button" id="profile" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">

                  <span class="img">                

                            @if(Auth::user()->pic)

                            <img src="{!! url('/').'/uploads/users/'.Auth::user()->pic !!}">

                            @elseif(Auth::user()->gender === "male")

                            <img src="{{ asset('assets/images/authors/avatar3.png') }}">

                            @elseif(Auth::user()->gender === "female")

                            <img src="{{ asset('assets/images/authors/avatar5.png') }}">

                            @else

                            <img src="{{ asset('assets/images/authors/no_avatar.jpg') }}">

                            @endif 

                            </span>

                            <span class="name"> <strong>Welcome</strong> {{ Auth::user()->display_name }}</span></a>

                <div class="dropdown-menu profile p-2" id="profile">                                       

                    <a class="dropdown-item" href="/home"><i class="far fa-address-card mr-2"></i> Dashboard</a>

                    <a class="dropdown-item" href="/home/editprofile"><i class="fas fa-coins mr-2"></i> Edit Profile</a>

                    <a class="dropdown-item" href="/marklist"><i class="fas fa-check mr-2"></i> Wish List</a>

                    @if(Auth::user()->counter_usage_report == 1)

                      @if(!empty($available_token))

                      <a class="dropdown-item" href="/home/tokenreport"><i class="fas fa-chart-area mr-2"></i> Token</a>

                      @endif

                    <a class="dropdown-item" href="/home/usagereport"><i class="fas fa-chart-area mr-2"></i> Total Usage</a>

                    @endif

                    <a class="dropdown-item" href="/help"><i class="far fa-question-circle mr-2"></i> Help</a>

                    <a class="dropdown-item" href="javascript:void(0)" onclick="event.preventDefault();

                                             document.getElementById('logout-form').submit();">

                    <i class="fas fa-sign-out-alt"></i>

                    {{ __('Logout') }}

                    </a>

                  </div>

              </li>

            </ul>

          </div>

        </section>

        <form action="{{ route('logout') }}" id="logout-form" method="POST" style="display: none;">

            @csrf

        </form>



  @endif 

@endguest