<div id="tax-category-list">
        <div id="tax-breadcrumbs-container">
            <ul class="ss-navigatedown-ul">
                  <?php
						if($id){
							$url1 = Yii::app()->createUrl('place_an_ad/update',array('id'=>$id));
							$url2 = Yii::app()->createUrl('place_an_ad/update',array('id'=>$id,'section'=>$sectionM->slug ));
							$url3 = Yii::app()->createUrl('place_an_ad/update',array('id'=>$id,'section'=>$sectionM->slug,'type'=>$type));
							$url4 = Yii::app()->createUrl('place_an_ad/update',array('id'=>$id,'section'=>$sectionM->slug,'type'=>$type,'category'=>$categoryM2->slug));
						}
						else{
							$url1 =  Yii::app()->createUrl('place_an_ad/create') ;
							$url2 =  Yii::app()->createUrl('place_an_ad/create',array('section'=>$sectionM->slug )) ;
							$url3 =  Yii::app()->createUrl('place_an_ad/create',array('section'=>$sectionM->slug,'type'=>$type)) ;
							$url4 =  Yii::app()->createUrl('place_an_ad/create',array('section'=>$sectionM->slug,'type'=>$type,'category'=>$categoryM2->slug));
						}
               
               ?>
                <li class="ss-navigatedown">
                    <a href="<?php echo $url1;?>" class="breadcrumb">
                        <?php echo !empty($sectionM->for_name)? $sectionM->for_name:$sectionM->section_name;;?> 
                        <span class="fa fa-close"></span>
                    </a>
                </li>
                <li class="ss-navigatedown">
                    <a href="<?php echo $url2;?>" class="breadcrumb">
                        <?php echo  $typeM->category_name;;?> for <?php echo $sectionM->section_name;?>
                        <span class="fa fa-close"></span>
                    </a>
                </li>
                <li class="ss-navigatedown">
                    <a href="<?php echo $url3;?>" class="breadcrumb">
                        <?php echo  $categoryM2->category_name;?> for <?php echo $sectionM->section_name;?>
                        <span class="fa fa-close"></span>
                    </a>
                </li>
                <li class="ss-navigatedown">
                    <a href="<?php echo $url4;?>" class="breadcrumb">
                        <?php echo  $statesM2->state_name;?>  
                        <span class="fa fa-close"></span>
                    </a>
                </li>
                
            </ul>
		</div>

		<div id="tax-categories">
			<ul class="sale">
				<?php
				if($cityM){
				
				foreach($cityM as $k=>$v){
					if($id){
						$url = Yii::app()->createUrl('place_an_ad/update',array('id'=>$id,'section'=>$sectionM->slug,'type'=>$type,'category'=>$categoryM2->slug,'state'=>$statesM2->slug,'city'=>$v->slug));
					}
					else{
						$url = Yii::app()->createUrl('place_an_ad/create',array('section'=>$sectionM->slug,'type'=>$type,'category'=>$categoryM2->slug,'state'=>$statesM2->slug,'city'=>$v->slug));
				}	
					 ?>
				<li>
					<a href="<?php echo $url; ?>">
						<span><?php echo $v->city_name;?></span>
					</a>
				</li>
				<?php
				}
				}
				?> 
			</ul>
		</div>
	</div>
