<?php
$page_url = current_url();  

?>
<section class="sidebar">

      <ul class="sidebar-menu" data-widget="tree">
        <li class="active treeview">
          <a href="file://///SS02/php7/htdocs/contractor_app/application/views/backend/manage-stuff.html" class="tpnv">
            <i class="fa fa-dashboard"></i> <span>NAVIGATION</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
            <ul class="treeview-menu">
			
				<!-- <li class="treeview ">
				  <a href="#"><i class="fa fa-flag" aria-hidden="true"></i> <span>Reports</span>
					<span class="pull-right-container">
						<i class="fa fa-angle-right pull-right" aria-hidden="true"></i>
						<i class="fa fa-angle-down pull-right" aria-hidden="true"></i>
					  </span>
				  </a>
				  <ul class="treeview-menu">
					<li><a href="#"><i class="fa fa-user" aria-hidden="true"></i> Create User</a></li>
					<li><a href="#"><i class="fa fa-trash" aria-hidden="true"></i> Delete User</a></li>
					<li><a href="#"><i class="fa fa-pencil" aria-hidden="true"></i> Update User</a></li>
				  </ul>
				</li> -->
                                
                                <?php 
                   $sub_page = "http://capp.strandwebsites.com/contractor_app/index.php/admin/subscription";
                   $client_page = "http://capp.strandwebsites.com/contractor_app/index.php/admin/clients";
                   $con_page ="http://capp.strandwebsites.com/contractor_app/index.php/admin/contractor";
                   $job_cat ="http://capp.strandwebsites.com/contractor_app/index.php/admin/jobCategories";
                   $job_details ="http://capp.strandwebsites.com/contractor_app/index.php/admin/job_details";
                   $payment = "http://capp.strandwebsites.com/contractor_app/index.php/admin/payment";
                   $setting ="http://capp.strandwebsites.com/contractor_app/index.php/admin/setting";
                   $msg = "http://capp.strandwebsites.com/contractor_app/index.php/admin/messages"; 
                   $rating = "http://capp.strandwebsites.com/contractor_app/index.php/admin/rating_reviews"; 
                   $reports ="http://capp.strandwebsites.com/contractor_app/index.php/admin/report";
                   
                   ?>
                 <li class="<?php if($page_url == $sub_page){echo 'active';}?>"><a href="<?php echo base_url();?>index.php/admin/subscription"><i class="fa fa-google-wallet"></i>Subscription</a></li>
                <li class="<?php if($page_url == $client_page){echo 'active';}?>"><a href="<?php echo base_url();?>index.php/admin/clients"><i class="fa fa-users"></i>Clients</a></li>
                <li class="<?php if($page_url == $con_page){echo 'active';}?>"><a href="<?php echo base_url();?>index.php/admin/contractor"><i class="fa fa-user"></i>Contractors</a></li>
                <li class="<?php if($page_url == $job_cat){echo 'active';}?>"><a href="<?php echo base_url();?>index.php/admin/jobCategories"><i class="fa fa-briefcase"></i>Job Categories</a></li>
                <li class="<?php if($page_url == $job_details){echo 'active';}?>"><a href="<?php echo base_url();?>index.php/admin/job_details"><i class="fa fa-briefcase"></i>Job Details</a></li>
                <li class="<?php if($page_url == $payment){echo 'active';}?>"><a href="<?php echo base_url();?>index.php/admin/payment"><i class="fa fa-money"></i>Payments</a></li>
                <li class="<?php if($page_url == $setting){echo 'active';}?>"><a href="<?php echo base_url();?>index.php/admin/setting"><i class="fa fa-money"></i>Settings</a></li>
                <li class="<?php if($page_url == $msg){echo 'active';}?>"><a href="<?php echo base_url();?>index.php/admin/messages"><i class="fa fa-commenting"></i>Messages</a></li>
                <li class="<?php if($page_url == $rating){echo 'active';}?>"><a href="<?php echo base_url();?>index.php/admin/rating_reviews"><i class="fa fa-star"></i>Ratings & Reviews</a></li>
                <li class="<?php if($page_url == $reports){echo 'active';}?>"><a href="<?php echo base_url();?>index.php/admin/report"><i class="fa fa-flag"></i>Reports</a></li>
            </ul>   
        </li>
        
      </ul>
    </section>