<!DOCTYPE html>
<html lang="zxx">
	<head>
    <?php include("head.php"); ?>
    <?php include("module/service.php"); ?>
    <link href="assets/stylesheet/jquery.growl.css" rel="stylesheet" type="text/css" />
    <?php include("module/usercheck.php"); ?>
	<?php include("module/userinfo.php"); ?>
    <?php
    $property=$service_query->select_user_property($con,$userid);

    ?>
    </head>
	
    <body class="blue-skin dashboard">
        <!-- ============================================================== -->
        <!-- Preloader - style you can find in spinners.css -->
        <!-- ============================================================== -->
        <div id="preloader"><div class="preloader"><span></span><span></span></div></div>
		
        <!-- ============================================================== -->
        <!-- Main wrapper - style you can find in pages.scss -->
        <!-- ============================================================== -->
        <div id="main-wrapper">
		
            <!-- ============================================================== -->
            <!-- Top header  -->
            <!-- ============================================================== -->
            <!-- Start Navigation -->
			<?php include("header1.php"); ?>
			<!-- End Navigation -->
			<div class="clearfix"></div>
			<!-- ============================================================== -->
			<!-- Top header  -->
			<!-- ============================================================== -->
			
			<!-- ============================ Page Title Start================================== -->
			<div class="page-title">
				<div class="container">
					<div class="row">
						<div class="col-lg-12 col-md-12">
							
							<h2 class="ipt-title">Welcome!</h2>
							<span class="ipn-subtitle">Welcome To Your Account</span>
							
						</div>
					</div>
				</div>
			</div>
			<!-- ============================ Page Title End ================================== -->
			
			<!-- ============================ User Dashboard ================================== -->
			<section class="bg-light">
				<div class="container-fluid">
					<div class="row">
						<div class="col-lg-12 col-md-12">
							<div class="filter_search_opt">
								<a href="javascript:void(0);" onclick="openFilterSearch()">Dashboard Navigation<i class="ml-2 ti-menu"></i></a>
							</div>
						</div>
					</div>
								
					<div class="row">
						
						<div class="col-lg-3 col-md-12">
							
							<div class="simple-sidebar sm-sidebar" id="filter_search">
								
								<div class="search-sidebar_header">
									<h4 class="ssh_heading">Close Filter</h4>
									<button onclick="closeFilterSearch()" class="w3-bar-item w3-button w3-large"><i class="ti-close"></i></button>
								</div>
								<?php include("dashboard-menu.php")?>
								
							</div>
						</div>
						
						<div class="col-lg-9 col-md-12">
							<div class="dashboard-wraper">
							
								<!-- Bookmark Property -->
								<div class="form-submit">	
									<h4>My Property</h4>
								</div>
								
								<div class="row">
								<?php
								if(($property)>0){
                                    foreach($property as $prow){

                                        $propertyid= $prow['pk_property_id'];
                                   
                                ?>
									<!-- Single Property -->
									<div class="col-md-12 col-sm-12 col-md-12">
										<div class="singles-dashboard-list">
											<div class="sd-list-left">
												<img src="assets/property/demohouse.jpg" class="img-fluid" alt="" />
											</div>
											<div class="sd-list-right">
												<h4 class="listing_dashboard_title"><a href="singleproperty.php?pid=<?php echo $prow['id']; ?>" class="theme-cl"><?php echo $prow['property_name']; ?></a></h4>
												<div class="user_dashboard_listed">
													Price: <?php echo $prow['price']; ?>
												</div>
												<div class="user_dashboard_listed">
													Property-Type <a href="javascript:void(0);" class="theme-cl"><?php  $sql1="select * from  cnf_mst_service_type where pk_service_code='".$prow['fk_service_type']."'";
                                                                                            $result1=$conn->query($sql1);     $row1=$result1->fetch_assoc();
                                                                                                echo $row1['service_name'];
                                                                                      ?></a> 
												</div>
												<div class="user_dashboard_listed">
													City: <a href="javascript:void(0);" class="theme-cl"><span><i class="lni-map-marker"></i><?php 
                                                                                            
                                                                                            $sql7="select * from   utm_mst_state where pk_utm_state_id='".$prow['fk_utm_state_id']."'";
                                                                                            $result7=$conn->query($sql7);     $row7=$result7->fetch_assoc();
                                                                                                echo $row7['state_name'];
                                                                                      ?></span></a> , Area:<?php echo $prow['area_no']; ?>
                                                                                      <?php 
                                                                                                                                          
                                                                                                                                          $sql6="select * from  area_unit where id='".$prow['fk_area_unit']."'";
                                                                                                                                          $result6=$conn->query($sql6);     $row6=$result6->fetch_assoc();
                                                                                                                                              echo $row6['area_unit_name'];
                                                                                                                                    ?>
												</div>
												<div class="action">
													<a href="#" data-bs-toggle="tooltip" data-bs-placement="top" title="Edit"><i class="ti-pencil"></i></a>
													<a href="singleproperty.php?pid=<?php echo $prow['id']; ?>" data-bs-toggle="tooltip" data-bs-placement="top" title="202 User View"><i class="ti-eye"></i></a>
													
												</div>
											</div>
										</div>
									</div>
                                <?php
                                }
							}else{
								echo "No Property Found!!";
							}

                                ?>
									
								</div>
								
							</div>
						</div>
						
					</div>
				</div>
			</section>
			<!-- ============================ User Dashboard End ================================== -->
			
			<!-- ============================ Call To Action ================================== -->
			<section class="theme-bg call-to-act-wrap">
				<div class="container">
					<div class="row">
						<div class="col-lg-12">
							
							<div class="call-to-act">
								<div class="call-to-act-head">
									<h3>Want to Become a Real Estate Agent?</h3>
									<span>We'll help you to grow your career and growth.</span>
								</div>
								<a href="#" class="btn btn-call-to-act">SignUp Today</a>
							</div>
							
						</div>
					</div>
				</div>
			</section>
			<!-- ============================ Call To Action End ================================== -->
			
			<!-- ============================ Footer Start ================================== -->
            <?php include("footer.php"); ?>
			
			<a id="back2Top" class="top-scroll" title="Back to top" href="#"><i class="ti-arrow-up"></i></a>
			

		</div>
		<!-- ============================================================== -->
		<!-- End Wrapper -->
		<!-- ============================================================== -->


		<!-- ============================================================== -->
		<!-- All Jquery -->
		<!-- ============================================================== -->
		<?php include("foot.php"); ?>
		<!-- ============================================================== -->
		<!-- This page plugins -->
		<!-- ============================================================== -->
		
		<script>
			function openFilterSearch() {
				document.getElementById("filter_search").style.display = "block";
			}
			function closeFilterSearch() {
				document.getElementById("filter_search").style.display = "none";
			}
		</script>
   <script src="assets/javascript/jquery.growl.js" type="text/javascript"></script>
	</body>
</html>