<script type="text/javascript">
function changeSession(){
var ref=document.getElementById('language').value;
window.location.href="<?php echo e(url('/')); ?>"+"/"+ref;
}
</script>
<?php
$data=session('lng');
use App\Service;
$saving=Service::where('service_type','=','Saving')->orderBy('title','asc')->get();
$loan=Service::where('service_type','=','Loan')->orderBy('title','asc')->get();
$remittance=Service::where('service_type','=','Remittance')->orderBy('title','asc')->get();
?>
<!-- BEGIN TOP BAR -->
<!-- END TOP BAR -->
<!-- BEGIN HEADER -->
<div class="header"  style= "position: fixed;
top: 0;
padding-top:7px;
width: 100%;
z-index: 90; max-width: 100%; border-bottom: 2px solid #018232;
  border-bottom: : 3px solid #E20A17; background:  linear-gradient(0deg, #fff 3px, #fff 4px   )" >
  <div class="container">
    <?php if($data=="en"): ?>
    <a class="site-logo " href="<?php echo e(url("$data")); ?>"><img src="<?php echo e(url('images/logoEng.jpg')); ?>" alt="Logo" style="width: 85%"></a>
    <?php else: ?>
    <a class="site-logo " href="<?php echo e(url("$data")); ?>"><img src="<?php echo e(url('images/logoNp.jpg')); ?>" alt="Logo" style="width: 85%"></a>
    <?php endif; ?>
    <a href="javascript:void(0);" class="mobi-toggler"><i class="fa fa-bars"></i></a>
    
      <div class="col-md-6 col-sm-6 additional-nav" style="float: right;">
        <ul class="list-unstyled list-inline pull-right" style="margin-top: 6px;">
          <select onchange="changeSession()"  id="language" style="background-color: transparent;color: #000;">
            <option selected style="color: #018232d1;">Select Language</option>
            <option  value="en" style="color: #018232d1;">English</option>
            <option value="np" style="color: #018232d1;">Nepali</option>
          </select>
        </ul>
      </div>
    <!-- BEGIN NAVIGATION -->
    <div class="header-navigation pull-right font-transform-inherit">
      <ul>
        <li class="<?php echo e(Request::is("$data") ? "active":""); ?>"><a href="<?php echo e(url("$data")); ?>">Home</a></li>
        <li class="dropdown <?php echo e(Request::is("$data/about_us","$data/message_from","$data/board_of_directors","$data/management_team","$data/policy&procedure","$data/interest_rates") ? "active":""); ?>">
          <a class="dropdown-toggle" data-toggle="dropdown" data-target="#" href="javascript:;">
            About Us
          </a>
          <ul class="dropdown-menu">
            <li><a href="<?php echo e(url("$data/about_us#introduction")); ?>">Introdution</a></li>
            <li><a href="<?php echo e(url("$data/about_us#mission")); ?>">Mission</a></li>
            <li><a href="<?php echo e(url("$data/about_us#vision")); ?>">Vision</a></li>
            <li><a href="<?php echo e(url("$data/about_us#objective")); ?>">Objective</a></li>
            <li><a href="<?php echo e(url("$data/message_from")); ?>">Message From</a></li>
            <li ><a href="<?php echo e(url("$data/board_of_directors")); ?>">Board of Directors</a></li>
            <li ><a href="<?php echo e(url("$data/management_team")); ?>">Management Team</a></li>
            <li ><a href="<?php echo e(url("$data/policy&procedure")); ?>">Policy&Procedure</a></li>
            <li ><a href="<?php echo e(url("$data/interest_rates")); ?>">Interest Rates</a></li>
            
          </ul>
        </li>
        <li class="dropdown <?php echo e(Request::is("$data/service") ? "active":""); ?>">
          <a class="dropdown-toggle" data-toggle="dropdown" data-target="#" href="javascript:;">
            Services
          </a>
          <ul class="dropdown-menu">
            <li class="dropdown-submenu">
              <a class="dropdown-toggle hidden-sm hidden-xs" data-toggle="dropdown" href="<?php echo e(url("$data/service")); ?>?service=Saving">Saving <i class="fa fa-angle-right"></i></a>
              <a class="dropdown-toggle hidden-lg hidden-md"  href="<?php echo e(url("$data/service")); ?>?service=Saving">Saving <i class="fa fa-angle-right"></i></a>
              <ul class="dropdown-menu hidden-xs hidden-sm" role="menu" >
                <?php $__currentLoopData = $saving; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $save): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php
                $title=$save->title;
                ?>
                <li><a href="<?php echo e(url("$data/service/$title")); ?>?id=<?php echo e($save->token); ?>"><?php echo e($save->title); ?></a></li>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                
              </ul>
            </li>
            <li class="dropdown-submenu">
              <a class="dropdown-toggle hidden-sm hidden-xs" data-toggle="dropdown" href="<?php echo e(url("$data/service")); ?>?service=Loan">Loan <i class="fa fa-angle-right"></i></a>
              <a class="dropdown-toggle hidden-lg hidden-md"  href="<?php echo e(url("$data/service")); ?>?service=Loan">Loan <i class="fa fa-angle-right"></i></a>
              <ul class="dropdown-menu" role="menu">
                <?php $__currentLoopData = $loan; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $save): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php
                $title=$save->title;
                ?>
                <li><a href="<?php echo e(url("$data/service/$title")); ?>?id=<?php echo e($save->token); ?>"><?php echo e($save->title); ?></a></li>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
              </ul>
            </li>
            <li class="dropdown-submenu">
              <a class="dropdown-toggle hidden-sm hidden-xs" data-toggle="dropdown" href="<?php echo e(url("$data/service")); ?>?service=Remittance">Remittance <i class="fa fa-angle-right"></i></a>
              <a class="dropdown-toggle hidden-lg hidden-md"  href="<?php echo e(url("$data/service")); ?>?service=Remittance">Remittance <i class="fa fa-angle-right"></i></a>
              <ul class="dropdown-menu" role="menu">
                <?php $__currentLoopData = $remittance; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $save): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php
                $title=$save->title;
                ?>
                <li><a href="<?php echo e(url("$data/service/$title")); ?>?id=<?php echo e($save->token); ?>"><?php echo e($save->title); ?></a></li>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
              </ul>
            </li>
          </ul>
        </li>
        <li class="dropdown <?php echo e(Request::is("$data/news","$data/event","$data/gallery") ? "active":""); ?>">
          <a class="dropdown-toggle" data-toggle="dropdown" data-target="#" href="javascript:;">
            Activities
          </a>
          <ul class="dropdown-menu">
            <li><a href="<?php echo e(url("$data/news")); ?>">News</a></li>
            <li ><a href="<?php echo e(url("$data/event")); ?>">Events</a></li>
            <li><a href="<?php echo e(url("$data/gallery")); ?>">Gallery</a></li>
          </ul>
        </li>
        <li class="dropdown <?php echo e(Request::is("$data/report") ? "active":""); ?>">
          <a class="dropdown-toggle" data-toggle="dropdown" data-target="#" href="javascript:;">
            Reports
          </a>
          <ul class="dropdown-menu">
            <li><a href="<?php echo e(url("$data/report")); ?>?report=AGM Report">AGM Report</a></li>
            <li ><a href="<?php echo e(url("$data/report")); ?>?report=Balance Sheet">Balance Sheet</a></li>
            <li><a href="<?php echo e(url("$data/report")); ?>?report=Pearl Ratio">Pearl Ratio</a></li>
            <li><a href="<?php echo e(url("$data/report")); ?>?report=Trial Balance">Trial Balance</a></li>
          </ul>
        </li>
        <li class=" <?php echo e(Request::is("$data/career") ? "active":""); ?>"><a href="<?php echo e(url("$data/career")); ?>" >Career</a></li>
        <li class=" <?php echo e(Request::is("$data/contact") ? "active":""); ?>"><a href="<?php echo e(url("$data/contact")); ?>" >Contact Us</a></li>
        
        <!-- BEGIN TOP SEARCH -->
      
        <!-- END TOP SEARCH -->
      </ul>
    </div>
    <!-- END NAVIGATION -->
  </div>
</div>
<!-- Header END