<?php
$this->load->view('top_application');
?>
<div class="clearfix"></div>      
<div class="dir-alp dir-pa-sp-top">
  <div class="container">
    <div class="row">
      <div class="col-sm-12 col-md-12">
       <div class="dir-alp-tit">
        <h1>Market Area</h1>
        <ol class="breadcrumb">
          <li><a href="<?php echo site_url(); ?>">Home</a> </li>
          <li><a title="Market Area"> Market Area </a></li>        </ol>
      </div>
       
        <div class="privacy-policy">
          <div class="about-in-section">
            <div>
              <div>
                <!-- <h3 class="mt25">Indian States</h3>
                <ul class="market-list">
                  <?php
                  foreach ($state as $row) {
                    ?>
                    <li><a href="<?php echo site_url($row['temp_title']); ?>/directory"><?php echo $row['name']; ?></a></li>

                    <?php
                  }
                  ?>
                </ul> -->
                <div><h3 class="mt25">Indian Cities</h3>
                  <?php
                  foreach ($state as $row) {
                    $city = $this->db->query("SELECT id, city, temp_title, status FROM wps_cities_list WHERE status ='1' AND state_id = '" . $row['id'] . "' and temp_title In (SELECT page_url from wps_meta_tags where is_fixed = 'L')")->result_array();
                    if(count($city)>0){
                    ?>
                    <div><p class="mt25"><?php echo $row['name']; ?></p></div>
                    <ul class="market-list">
                      <?php
                      foreach ($city as $rows) {
                        if($rows['city'] != 'Central Delhi' || $rows['city'] != 'East Delhi' || $rows['city'] != 'North Delhi' || $rows['city'] != 'North East Delhi' || $rows['city'] != 'North West Delhi' || $rows['city'] != 'South Delhi' || $rows['city'] != 'South West Delhi' || $rows['city'] != 'West Delhi' || $rows['city'] != 'North Goa' || $rows['city'] != 'South Goa' || $rows['city'] != 'Mumbai Suburban'){
                        ?>
                        <li><a href="<?php echo site_url($rows['temp_title']); ?>/directory"><?php echo $rows['city']; ?></a></li>
                        <?php
                        }
                      }
                      ?>
                    </ul>
                    <?php
                  }
                  }
                  ?>
                </div>
              </div>	 
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<?php $this->load->view('bottom_application'); ?>