<!-- 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>
		<?php if(Auth::check()): ?>
<span style="color: #ffffff;"> | </span><a href="javascript:void(0)">Welcome, <?php echo e(ucfirst(Auth::user()->name)); ?></a> 
			<?php if(Auth::user()->role_type == 'Examiner'): ?>
				<a href="<?php echo e(url('examiner-landing')); ?>" class="btn btn-danger" style="padding: 10px; font-size:12px;">Dashboard</a>
			<?php elseif(Auth::user()->role_type == 'Teacher'): ?>
				<a href="<?php echo e(url('teacher-dashboard')); ?>" class="btn btn-danger" style="padding: 10px; font-size:12px;">Dashboard</a>
			<?php elseif(Auth::user()->role_type == 'Admin'): ?>
				<a href="<?php echo e(url('admin/dashboard')); ?>" class="btn btn-danger" style="padding: 10px; font-size:12px;">Dashboard</a>
			<?php else: ?>
				<a href="<?php echo e(url('dashboard')); ?>" class="btn btn-danger" style="padding: 10px; font-size:12px;">Dashboard</a>
			<?php endif; ?>
			<a href="<?php echo e(url('/logout')); ?>" class="btn btn-danger" style="padding: 10px; font-size:12px;">Logout</a>
		<?php else: ?>
			<a href="login">Login</a>
			<a href="javascript:void(0)" data-toggle="modal" data-target="#myModal">Register</a>
		<?php endif; ?>
    </div>
  </div>
</section>

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

    <div class="logo float-left">
      <a href="/"><img src="<?php echo e(asset('images/site/logo.png')); ?>" alt="" class="img-fluid"></a>
    </div>

    <nav class="nav-menu float-right d-none d-lg-block">
      <ul>
        <?php if(Auth::check()): ?>
        <li class="d-lg-none"><a href="javascript:void(0)">Welcome, <?php echo e(ucfirst(Auth::user()->name)); ?></a></li>
        <li class="drop-down"><a href="">Profile</a>
          <ul>
            <li><a href="why-certification"><?php echo e(ucfirst(Auth::user()->name)); ?></a></li>
            <li><a href="how-to-apply"><?php echo e(Auth::user()->email); ?></a></li>
            <li><a href="eligibility"><?php echo e(Auth::user()->phone); ?></a></li>
            <li>
              <a href="fees">
                <SMALL>DATE OF BIRTH</SMALL><br>
                <h5><?php echo e(Auth::user()->dob); ?></h5>  
              </a>
            </li>
            <li>
              <a href="schedule">
                <SMALL>ADDRESS</SMALL><br>
                <b><?php echo e(ucfirst(Auth::user()->address_1)); ?>,</b><br>
                <b><?php echo e(ucfirst(Auth::user()->address_2)); ?></b>
              </a>
            </li>
            <li>
              <a href="benefits">
                  <b><?php echo e(ucfirst(Auth::user()->city)); ?> <?php echo e(ucfirst(Auth::user()->zipcode)); ?></b><br>
                  <b><?php echo e(ucfirst(Auth::user()->state)); ?>, <?php echo e(ucfirst(Auth::user()->country)); ?></b><br>
              </a>
            </li>
            <li>
              <a href="why-certification">
                  <a href="<?php echo e(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="<?php echo e(url('/change-password')); ?>" class="btn btn-success mt-2" style="margin-right: 20px !important;">Change Password</a>
              </a>
            </li>
          </ul>
        </li>
        <?php 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>
        <?php if(Auth::check()): ?>
        <li class="d-lg-none"><a href="<?php if(Auth::user()->role_type == 'Teacher'): ?><?php echo e(url('teacher-dashboard')); ?> <?php elseif(Auth::user()->role_type == 'Examiner'): ?> <?php echo e(url('examiner-landing')); ?> <?php elseif(Auth::user()->role_type == 'Admin'): ?> <?php echo e(url('admin/dashboard')); ?> <?php else: ?><?php echo e(url('dashboard')); ?><?php endif; ?>">Dashboard</a></li>
        <li class="d-lg-none"><a href="<?php echo e(url('/logout')); ?>">Logout</a></li>
        <?php 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>
        <?php 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="<?php echo e(url('student-registration')); ?>" class="btn btn-danger" style="padding: 10px; font-size:12px;">Student Register</a></p>
          <p>OR</p>
          <p><a href="<?php echo e(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>
<?php /**PATH D:\test\resources\views/site/layouts/header.blade.php ENDPATH**/ ?>