<?php include_once 'header.php';?>

<?php 
 $cat_data = db_query("select * from tbl_category where category_url='$_REQUEST[cat_name]'");
 $cat = mysqli_fetch_array($cat_data);
 $cat_banner = $cat['category_inner_banner'];
 $more_img = db_query("select * from tbl_category_image where category_image_cat_id='$cat[category_id]'");
?>

<section class="page-title" style="background-image: url('uploaded_files/<?=$cat_banner?>');">
<div class="auto-container">
<div class="title-outer">
<h1 class="title"><?=$cat['category_name']?></h1>
<ul class="page-breadcrumb">
<li><a href="">Home</a></li>
<li><?=$cat['category_name']?></li>
</ul>
</div>
</div>
</section>


<!-- Services Section -->
<section class="pt-5 pb-5">
<div class="container">
<!--<div class="imm-text">-->
<!---->
<!--</div>-->
<div class="service_section" > 
<div class="row">
<!--<div class="col-lg-6 mb-4">-->
<!--<div class="service_img" >-->
<!-- <img src="<?=showImage($cat['category_image_name'], 'uploaded_files')?>" alt="<?=$cat['category_name']?>">-->
<!--</div>-->
<!--</div>-->
<div class="col-lg-12">
    <div class="service_img" >
 <img src="<?=showImage($cat['category_image_name'], 'uploaded_files')?>" alt="<?=$cat['category_name']?>">
</div>
    <div class="service_card" >
<h3>Puneet Immigration Services</h3>
<?=marketplaceText($cat['category_description'], $cat['m_description'])?>
</div>
    
</div>

</div>
</div>

<!--<div class="service_section" > 
<div class="row">
    
    <div class="col-lg-6">
        <div class="service_card" >
    <h3>Immigrate to Canada: Family Class</h3>
    <p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Eius, natus commodi distinctio nisi officia corporis voluptatum aliquam ipsam alias officiis nihil laboriosam perspiciatis amet harum, repellendus reiciendis doloribus reprehenderit? Nobis molestiae, possimus praesentium modi ipsam corrupti cupiditate veritatis ratione, odio corporis iure, rem suscipit. Vero placeat voluptatibus ducimus ipsa officiis quod consequuntur asperiores! Nobis molestiae, possimus praesentium modi ipsam corrupti cupiditate veritatis ratione, odio corporis iure, rem suscipit sit amet consectetur adipisicing elit. Eius, natus commodi distinctio nisi officia corporis voluptatum aliquam ipsam alias officiis nihil laboriosam perspiciatis amet harum.</p>

        </div>
        
    </div>
    <div class="col-lg-6">
        <div class="service_img" >
            <img src="assets/images/service_img.jpg" alt="">
        </div>
        
    </div>
    
</div>
</div>-->

<?php $faq = db_query("SELECT * FROM tbl_faq WHERE FIND_IN_SET('$cat[category_id]', category_ids)  ");
if(mysqli_num_rows($faq) > 0){?>
<div class="service_faq_section">
<div class="sec-title text-center">
<h2>Frequently Asked Questions</h2>
</div>
<div class="accordion accordion-flush" id="accordionFlushExample">

<?php while($row = mysqli_fetch_array($faq)){?>
 <div class="accordion-item">
<h2 class="accordion-header" id="flush-headingOne">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#flush-<?=$row['id']?>" aria-expanded="false" aria-controls="flush-collapseOne"><?=$row['question']?></button>
</h2>
<div id="flush-<?=$row['id']?>" class="accordion-collapse collapse" aria-labelledby="flush-headingOne" data-bs-parent="#accordionFlushExample">
<div class="accordion-body"><?=$row['answer']?></div>
</div>
</div>
<?php }?>
</div>
</div>
<?php }?>

<?php $services = db_query("select * from tbl_category where category_status='Active' and category_parent_id='$cat[category_id]' order by category_order_by");
if(mysqli_num_rows($services) > 0){?>
<div class="row">
<?php while($row=mysqli_fetch_array($services)){        
 $name = wordLimit($row['category_name'],20);
 $desc = wordLimit(strip_tags($row['category_description']),70);
?>
<div class="service-block col-lg-4 col-md-6 col-sm-12">
<div class="inner-box">
<div class="image-box">
<figure class="image"><a href="<?=url($row['category_url'])?>"><img src="<?=showImage($row['category_image_name'],'uploaded_files')?>" alt="<?=altTitle($row['image_alt'],$row['category_name'])?>" title="<?=altTitle($row['image_title'],$row['category_name'])?>"></a></figure>
<!--<div class="icon-box"><i class="icon fa fa-graduation-cap"></i></div>-->
</div>
<div class="content-box">
<h5 class="title"><a href="<?=url($row['category_url'])?>"><?=$name?></a></h5>
<div class="text"><?=$desc?></div>
<a href="<?=url($row['category_url'])?>" class="read-more">View Details <i class="fa fa-long-arrow-alt-right"></i></a>
</div>
</div>
</div>
<?php }?>
</div>
<?php }?>
</div>
</section>
<!-- End Services Section-->

<?php include_once 'footer.php';?>