<!-- BEGIN: Header-->
<!-- ======= Top Bar ======= -->
<section id="topbar" class="d-none d-lg-block">
  <div class="container-swarkul clearfix">
  <div class="float-left top-floater">
  <marquee>Online classes for short term courses.</marquee>
</div>
    <div class="float-right social-links">
      <a href="enquiry">Enquiry</a>
      <a href="contact">Contact</a>
		@if(Auth::check())
<span style="color: #ffffff;"> | </span><a href="javascript:void(0)">Welcome, {{ ucfirst(Auth::user()->name) }}</a> 
			@if(Auth::user()->role_type == 'Examiner')
				<a href="{{ url('examiner-landing') }}" class="btn btn-danger" style="padding: 10px; font-size:12px;">Dashboard</a>
			@elseif(Auth::user()->role_type == 'Teacher')
				<a href="{{ url('teacher-dashboard') }}" class="btn btn-danger" style="padding: 10px; font-size:12px;">Dashboard</a>
			@elseif(Auth::user()->role_type == 'Admin')
				<a href="{{ url('admin/dashboard') }}" class="btn btn-danger" style="padding: 10px; font-size:12px;">Dashboard</a>
			@else
				<a href="{{ url('dashboard') }}" class="btn btn-danger" style="padding: 10px; font-size:12px;">Dashboard</a>
			@endif
			<a href="{{ url('/logout') }}" class="btn btn-danger" style="padding: 10px; font-size:12px;">Logout</a>
		@else
			<a href="login">Login</a>
			<a href="javascript:void(0)" data-toggle="modal" data-target="#myModal">Register</a>
		@endif
    </div>
  </div>
</section>

<!-- ======= Header ======= -->
<header id="header">
  <div class="container-swarkul">

    <div class="logo float-left">
      <a href="/"><img src="{{asset('images/site/logo.png')}}" alt="" class="img-fluid"></a>
    </div>

    <nav class="nav-menu float-right d-none d-lg-block">
      <ul>
        @if(Auth::check())
        <li class="d-lg-none"><a href="javascript:void(0)">Welcome, {{ ucfirst(Auth::user()->name) }}</a></li>
        <li class="drop-down"><a href="">Profile</a>
          <ul>
            <li><a href="why-certification">{{ ucfirst(Auth::user()->name) }}</a></li>
            <li><a href="how-to-apply">{{ Auth::user()->email }}</a></li>
            <li><a href="eligibility">{{ Auth::user()->phone }}</a></li>
            <li>
              <a href="fees">
                <SMALL>DATE OF BIRTH</SMALL><br>
                <h5>{{ Auth::user()->dob }}</h5>  
              </a>
            </li>
            <li>
              <a href="schedule">
                <SMALL>ADDRESS</SMALL><br>
                <b>{{ ucfirst(Auth::user()->address_1) }},</b><br>
                <b>{{ ucfirst(Auth::user()->address_2) }}</b>
              </a>
            </li>
            <li>
              <a href="benefits">
                  <b>{{ ucfirst(Auth::user()->city)  }} {{ ucfirst(Auth::user()->zipcode)  }}</b><br>
                  <b>{{ ucfirst(Auth::user()->state)  }}, {{ ucfirst(Auth::user()->country)  }}</b><br>
              </a>
            </li>
            <li>
              <a href="why-certification">
                  <a href="{{ url('/student-edit') }}" class="btn btn-success mt-2" style="margin-right: 20px !important;">Edit Bio</a>
              </a>
            </li>
            <li>
              <a href="why-certification">
                  <a href="{{ url('/change-password') }}" class="btn btn-success mt-2" style="margin-right: 20px !important;">Change Password</a>
              </a>
            </li>
          </ul>
        </li>
        @endif
        <li class="active"><a href="/">Home</a></li>
        <li><a href="about-us">About Us</a></li>
        <li class="drop-down"><a href="">Certification</a>
          <ul>
            <li><a href="why-certification">Why?</a></li>
            <li><a href="how-to-apply">How to Apply?</a></li>
            <li><a href="eligibility">Eligibility</a></li>
            <li><a href="fees">Fees</a></li>
            <li><a href="schedule">Schedule</a></li>
            <li><a href="benefits">Benefits</a></li>
          </ul>
        </li>
        <li><a href="syllabus">Syllabus</a></li>
        <li><a href="advisory-committee">Advisory Committee</a></li>
        <li><a href="apply">Apply</a></li>
        <li class="d-lg-none">
          <hr style="border-top: thin solid #fff;">
        </li>
        <li class="d-lg-none"><a href="enquiry">Enquiry</a></li>
        <li class="d-lg-none"><a href="contact">Contact</a></li>
        @if(Auth::check())
        <li class="d-lg-none"><a href="@if(Auth::user()->role_type == 'Teacher'){{ url('teacher-dashboard') }} @elseif(Auth::user()->role_type == 'Examiner') {{ url('examiner-landing') }} @elseif(Auth::user()->role_type == 'Admin') {{ url('admin/dashboard') }} @else{{ url('dashboard') }}@endif">Dashboard</a></li>
        <li class="d-lg-none"><a href="{{ url('/logout') }}">Logout</a></li>
        @else
        <li class="d-lg-none"><a href="login">Login</a></li>
        <li class="d-lg-none"><a href="javascript:void(0)" data-toggle="modal" data-target="#myModal">Register</a></li>
        @endif
      </ul>
    </nav><!-- .nav-menu -->

  </div>
</header>
<!-- End Header -->

<!-- Register Popup -->
<div class="modal fade" id="myModal" role="dialog">
    <div class="modal-dialog modal-sm">
      <div class="modal-content">
        
        <div class="modal-body">
         <center> 
		 <p><a href="{{ url('student-registration') }}" class="btn btn-danger" style="padding: 10px; font-size:12px;">Student Register</a></p>
          <p>OR</p>
          <p><a href="{{ url('teacher-registration') }}" class="btn btn-danger" style="padding: 10px; font-size:12px;">Teacher Register</a></p>
		  </center>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        </div>
      </div>
    </div>
  </div>
</div>
