 <style>
.sidebar-area .widget.widget_categories ul li.active a
	{
		color: #c9180b;
	}
	 
	 .sidebar-area .widget h2 {
    color: #000000;
    font-size: 20px;
    font-weight: 600;
    text-transform: capitalize;
    position: relative;
    margin-bottom: 40px;
		 margin-top: 10px;
}
	 
	 .sidebar-area .widget h2:after {
    position: absolute;
    bottom: -20px;
    left: 0;
    content: "";
    background: #b90000;
    width: 60px;
    height: 3px;
}
	 
	 .sidebar-area .widget.widget_categories ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
	 .sidebar-area .widget.widget_categories ul li {
    display: block;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #dddddd;
}
	 i.fa.fa-arrow-circle-right{
		 color:#d40000;
	 }
	
</style>
<?php $cat=$_GET['cat'];
$cat1=$_GET['cat1'];
?>
                       <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12" style="background: #eee;margin-top: 15px;">
                        <div class="sidebar-area">
                             <?php if($_GET['cat1']==2) {?>
                            <div class="widget widget_categories">
                              <h2 class="widget-title">Residential Properties</h2>
                              <ul>
                               <?php $cat1=$_GET['cat1'];
								  $sel_prop_type=mysqli_query($con,"select * from tbl_property_type where category1='2'");
								  while($res_prop_type=mysqli_fetch_array($sel_prop_type)) {
									  $type=$res_prop_type['propertytypeid'];
								  ?>
                                <li <?php if($res_prop_type['propertytypeid']==$_GET['type']) {?>class="active" <?php } ?>><i class="fa fa-arrow-circle-right" aria-hidden="true"></i>  <a href="properties.php?cat=<?php echo $_GET['cat'];?>&cat1=<?php echo $res_prop_type['category1'];?>&type=<?php echo $res_prop_type['propertytypeid'];?>"><?php echo $res_prop_type['title'];?>   </a></li>
                               <?php } ?>
                              </ul>
                            </div>
                                <?php } ?>
                                    <?php if($_GET['cat1']==1) {?>                  
                             <div class="widget widget_categories">
                              <h2 class="widget-title">Commercial Properties</h2>
                              <ul>
                               <?php $cat1=$_GET['cat1'];
								  $sel_prop_type=mysqli_query($con,"select * from tbl_property_type where category1='1'");
								  while($res_prop_type=mysqli_fetch_array($sel_prop_type)) {
									  $type=$res_prop_type['propertytypeid'];
								  ?>
                                 <li <?php if($res_prop_type['propertytypeid']==$_GET['type']) {?>class="active" <?php } ?>><i class="fa fa-arrow-circle-right" aria-hidden="true"></i> <a href="properties.php?cat=<?php echo $_GET['cat'];?>&cat1=<?php echo $res_prop_type['category1'];?>&type=<?php echo $res_prop_type['propertytypeid'];?>"><?php echo $res_prop_type['title'];?>   </a></li>
                               <?php } ?>
                              </ul>
                            </div>
                              <?php } ?>                        
                        </div>
                    </div>