<?php include_once('layout/header.php'); ?>

    <div class="intro_wrapper">
        <div class="container">  
            <div class="row">        
                 <div class="col-sm-12 col-md-8 col-lg-8">
                    <div class="intro_text">
                        <div class="pages_links">
                            <a href="index.php" title="">Home</a>
                            <a href="projects.php" title="" class="active">Our Projects</a>
                        </div>
                    </div>
                </div>              

            </div>
        </div> 
    </div> 
</header> <!-- End Header -->



<!--Start Courses Area Section-->
<section class="popular_courses" id="popular_courses_page">
    <div class="container"> 
        <div class="row">
		
		
		
	<?php
				$activities = $con->getRows('pesticides', array('', 'order_by'=>'date desc'));
				if(!empty($activities)){
					foreach($activities as $row){ ?>
			
		
            <div class="col-12 col-sm-6 col-md-6 col-lg-4">
                <div class="single-courses">
                    <div class="courses_banner_wrapper">
                        <div class="courses_banner"><a href="#"><img src="assets/uploads/projects/images/<?=$row['image']?>" alt="" class="img-fluid"></a></div>
                        <div class="purchase_price">
                           
                        </div>
                    </div>
                    <div class="courses_info_wrapper">
                        <div class="courses_title">
                            <h3><a href="#"><?=$row['title']?></a></h3>
                      
                        </div>
                        <div class="courses_info">
                           
                            <a href=  "project-details.php?project_id=<?=$row['project_id']?>" class="cart_btn">Read More</a>
                        </div>
                    </div>
                </div><!-- Ends: .single courses -->
            </div><!-- Ends: . -->

<?php	}
				}else{
					echo"There are no new activities";
				}
			?>



            <div class="pagination_blog">
                <ul>
                    <li><a href="#">1</a></li>
                    <li class="current"><a href="#">2</a></li>
                    <li><a href="#" class=""><i class='flaticon-right-arrow'></i></a></li>
                </ul>
            </div>                                       
        </div>

    </div>
</section><!-- ./ End Courses Area section -->

<?php include_once('layout/footer.php'); ?>