<?php $this->load->view('top'); ?>
<section class="banner_category" style="background-image: url(<?php echo theme_url(); ?>images/sitemap-banner.jpg);">
    <div class="container">
        <!-- <h2 class="banner_subtitle">check out over <span>200+</span></h2> -->
        <h1 class="banner_title">Sitemap</h1>
    </div>
</section>
<div class="page_breadcrumbs">
    <div class="container">
        <ul>
            <li><a href="<?= site_url(); ?>" title="Home">Home</a></li>
            <li>Sitemap</li>
        </ul>
    </div>
</div>

<section class="wps_home_about about_page">
    <div class="container">
        <h2 class=" title-mn wow zoomIn" data-wow-duration="1s">Sitemap</h2>
        <div class="row">
            <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                <div class="sitemap_right_side">
                    <ul class="sitemap">
                    <li ><a href="<?php echo site_url(); ?>" title="Home">Home  </a></li>
                      <li ><a href="<?php echo site_url(); ?>about-us" title="About Us">About Us  </a></li>
                      <?php
                                    $maincat1 = $this->db->query("SELECT * FROM wps_categories WHERE status = '1' AND parent_id = '0' order by sort_order asc")->result_array();
                                    foreach ($maincat1 as $key => $valss) {
                                        $res11 = $this->db->query("SELECT * FROM wps_categories WHERE status = '1' AND parent_id = '" . $valss['category_id'] . "' order by category_id asc")->result_array();
                                        ?>
                        <li><a href="<?= site_url($valss['friendly_url']); ?>" title="<?php echo $valss['category_name']; ?>"><?php echo $valss['category_name']; ?></a>
                            <ul>
                            <?php foreach ($res11 as $submenu1) {
                                                    $subsubmenu1 = $this->db->query("SELECT * FROM wps_categories WHERE status = '1' AND parent_id = '" . $submenu1['category_id'] . "' order by category_id asc")->result_array();
                                                    ?>
                                <li><a href="<?= site_url($submenu1['friendly_url']); ?>" title="<?php echo $submenu1['category_name']; ?>"><?php echo $submenu1['category_name']; ?></a>
                                <ul>
                                <?php foreach ($subsubmenu1 as $subvalue1) { ?>
                                                   
                                <li><a href="<?= site_url($subvalue1['friendly_url']); ?>" title="<?php echo $subvalue1['category_name']; ?>"><?php echo $subvalue1['category_name']; ?></a></li>
                                <?php } ?>

                            </ul>
                            </li>
                                <?php } ?>

                            </ul>
                        </li>
                        <?php } ?>
                        <li><a href="javascript:void();" title="Resources">Resources 
                                        </a>
                                        <ul>
                                            <li><a href="<?php echo base_url();?>download" title="Downloads">Downloads</a></li>

                                            <li><a href="<?php echo base_url();?>blog" title="Blogs">Blogs</a></li>
                                            <li><a href="<?php echo base_url();?>faq" title="FAQs">FAQs</a></li>
                                            <li><a href="<?php echo base_url();?>photo-gallery" title="Product Gallery">Product Gallery</a></li>
                                            <li><a href="<?php echo base_url();?>certificate" title="Certificate">Certificate</a></li>
                                        </ul> 
                                    </li>   
                        <li ><a href="<?php echo site_url(); ?>testimonials" title="Testimonials">Testimonials  </a></li>
                        <li ><a href="<?php echo site_url(); ?>contact-us" title="Contact Us">Contact Us  </a></li>
                        <li><a href="<?= base_url('market-area'); ?>" title="Market Area">Market Area</a></li>
                    </ul>
                </div>
            </div>


        </div>

    </div>
</section>

<?php $this->load->view('bottom'); ?>