LittleDemon WebShell


Linux in-mum-web1499.main-hosting.eu 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
Path : /home/u901718425/domains/panel.urbanpillar.in/public_html/
File Upload :
Command :
Current File : /home/u901718425/domains/panel.urbanpillar.in/public_html/propertydetails.php

<?php
include_once "cdn/globle.php";

$roll = (in_array('roll',array_keys($_SESSION)) && in_array('Property',array_keys($_SESSION['roll'])) ? array_values($_SESSION['roll']['Property']) : []);
if(isset($_SESSION['roll_name']) && $_SESSION['roll_name'] != 'user' && in_array('view',$roll) ){
?>
<!doctype html>
<html lang="en">

<?php
include 'widgets/head.php';
?>
<style>
    /* Example: If the parent of the autocomplete dropdown has a class 'parent-container' */
.pac-container {
    z-index: 99999 !important;
}

</style>
<body class="d-flex">
      <div class="messages position-fixed w-100 p-3 top-0 start-0 z-2">

  </div>
<?php
include 'widgets/aside.php';
?>
<div class="page  overflow-y-auto" style="width: calc(100% - 280px); height:100vh;">
<?php
include 'widgets/header.php';
?>

<div class="body d-flex flex-wrap pb-4">
    <div class="row bg-white rounded-3 p-4 m-4 shadow w-100 ">
        <div class="col-6 col-sm-12 col-md-6">Refrence url of website</div>
        <div class="col-6 col-sm-12 col-md-6">
            <a href="" id="refrence" target="_blank" ></a>
        </div>
    </div>
    <div class="d-flex bg-white rounded-3 p-4 m-4 shadow w-100 flex-column ">
        <div class="d-flex flex-column mb-3 w-100 ">
            <h6 class=" fw-semibold fs-6">Project Details</h6>
            <small class="text-secondary fw-normal fs-8">Update your project detials and address.</small>
        </div>
        <form onsubmit="return false" id="projectDetails" enctype="multipart/form-data">
            <div class="row mt-4">
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Project Name <sup class="text-danger">*</sup></label>
                    <input type="text" class="form-control" name="title" id="title" aria-describedby="helpId" placeholder=""  data-bs-toggle="tooltip" data-bs-placement="top" title="Add Property" required/>
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Project Address <sup class="text-danger">*</sup></label>
                    <input type="text" class="form-control" name="address" id="address" aria-describedby="helpId" placeholder="" required />
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Area <sup class="text-danger">*</sup></label>
                    <input type="text" class="form-control" id="area" name="area" aria-describedby="helpId" placeholder="" required />
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">City <sup class="text-danger">*</sup></label>
                    <input type="text" class="form-control" id="locality" name="city" aria-describedby="helpId" placeholder=""  required/>
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">State/Province <sup class="text-danger">*</sup></label>
                    <input type="text" class="form-control" id="state" name="state" aria-describedby="helpId" placeholder="" required/>
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                        <label for="" class="form-label">Country <sup class="text-danger">*</sup></label>
                        <select class="form-select" name="contry" id="country" readonly required>
                            <option value="India" selected>India</option>
                        </select>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Postal code <sup class="text-danger">*</sup></label>
                    <input type="text" class="form-control" id="postcode" name="zip" aria-describedby="helpId" placeholder="" required/>
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Latitude <sup class="text-danger">*</sup></label>
                    <input type="text" class="form-control" id="lat" name="lat" aria-describedby="helpId" placeholder=""  readonly required/>
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Longitude <sup class="text-danger">*</sup></label>
                    <input type="text" class="form-control" id="lon" name="lon" aria-describedby="helpId" placeholder=""  readonly required/>
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 mb-3">
                    <div id="map" class="w-100 rounded-3  bg-light " style="height: 300px;">
                    </div>  
                </div>
                <div class="col-12 col-sm-12 mb-3">
                    <label for="" class="form-label">Description</label>
                    <textarea class="form-control w-100" name="description" id="description" rows="4"></textarea>
                </div>
                
                
            </div>
            <?php if(in_array('edit',$roll)){ ?>
            <div class="d-grid gap-2 justify-content-end my-2">
              <button type="button"  data="projectDetails" class="btn btn-danger fs-7">SAVE</button>
            </div>
            <?php } ?>
        </form>
    </div>
    <div class="d-flex bg-white rounded-3 p-4 m-4 shadow w-100 flex-column ">
        <div class="d-flex flex-column mb-3 w-100 ">
            <h6 class=" fw-semibold fs-6">Project Information</h6>
            <small class="text-secondary fw-normal fs-8">Update your account's project infromation.</small>
        </div>
        <form onsubmit="return false" id="projectInfo">
            <div class="row g-3 w-100 mt-4">
                
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Sell / Resell</label>
                    <select class="form-select" name="for_r_s" id="for_r_s">
                        <option selected disabled>Select one</option>
                        <option value="sell">Sell</option>
                        <option value="resell">Resell</option>
                    </select>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Property Category</label>
                    <select class="form-select" name="category" id="category">
                    <option selected disabled>Select one</option>
                    <option value="Residential">Residential</option>
                    <option value="Commercial">Commercial</option>
                    </select>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Property Type</label>
                    <select class="form-select" name="property_type" id="property_type">
                        <option selected disabled>Select one</option>
                        <optgroup label="Residential">
                            <option value="Apartment">Apartment</option>
                            <option value="Bungalow">Bungalow</option>
                            <option value="Plot">Plot</option>
                            <option value="Villa">Villa</option>
                            <option value="Studio Apartment">Studio Apartment</option>
                        </optgroup>
                        <optgroup label="Commercial">
                            <option value="Shop">Shop</option>
                            <option value="Office">Office</option>
                        </optgroup>
                            <option value="Other">Other</option>
                    </select>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Construction Status</label>
                    <select class="form-select" name="construction_status" id="construction_status">
                        <option selected disabled>Select one</option>
                        <option value="Under Construction">Under Construction</option>
                        <option value="Ready To Move">Ready To Move</option>
                        <option value="Other">Other</option>
                    </select>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Daveloper   <a data-bs-toggle="modal" data-bs-target="#addDeveloper" class="btn btn-sm p-0 "><span class="material-icons fs-6 text-secondary" data-bs-toggle="tooltip" data-bs-placement="top" title="Add Developer">person_add</span> </a></label>
                    <select class="form-select" name="developer" id="developer"></select>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Property Rera</label>
                    <input type="number" class="form-control" id="rara" name="rara" aria-describedby="helpId" placeholder="Enter Without ( P )" onkeydown="javascript: return event.keyCode == 69 ? false : true" />
                    <small id="helpIdrara" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Possession</label>
                    <input type="month" class="form-control" id="possession" name="possession" aria-describedby="helpId" placeholder="Enter Without ( P )"/>
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 my-3">
                    <div class="d-flex justify-content-between">
                    <label for="" class="form-label">Amenities</label>
                    <div class="col-12 col-sm-4 col-md-4 col-lg-3">
                        <div class="input-group mb-3">
                              <input type="text" id="amenitysearch"  class="form-control" placeholder="Search Amenity" aria-label="Recipient's username" aria-describedby="basic-addon2">
                              <div class="input-group-append">
                                <div class="btn btn-outline-secondary" id="amenitysearchclear" type="button">Clear</div>
                              </div>
                            </div>
                    </div>
                    </div>
                    <div class="row p-3 overflow-auto" style="height:300px;" id="amenities-list">
                        <div class="col-12 form-check fs-7" style="height: 40px;">
                            <input class="form-check-input" type="checkbox" value="amenities" id="amenities" />
                            <label class="form-check-label" for="amenities"> Default checkbox </label>
                        </div>
                    </div>
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
            </div>
            <?php if(in_array('edit',$roll)){ ?>
            <div class="d-grid gap-2 justify-content-end my-2">
              <button type="button" name="save" data="projectInfo" class="btn btn-danger fs-7">SAVE</button>
            </div>
            <?php } ?>
        </form>
    </div>
    <div class="bg-white rounded-3 p-4 m-4 shadow w-100 flex-column " id="projectImageSample">
        <div class="d-flex flex-column mb-3 w-100 ">
            <h6 class=" fw-semibold fs-6">Project Sample Images</h6>
            <small class="text-secondary fw-normal fs-8">Upload project smple images form google.</small>
        </div>
        <div  class="projectImageSample" >
            <div class="row w-100 mt-4">
            </div>
        </div>
    </div>
    <div class="d-flex bg-white rounded-3 p-4 m-4 shadow w-100 flex-column ">
        <div class="d-flex flex-column mb-3 w-100 ">
            <h6 class=" fw-semibold fs-6">Project Images</h6>
            <small class="text-secondary fw-normal fs-8">Upload project images and amenities images here.</small>
        </div>
        <form onsubmit="return false" id="projectImage" enctype="multipart/form-data">
            <div class="row w-100 mt-4">
                
                <div class="col-6 col-sm-6 col-md-2 mb-3 position-relative ">
                    <img src="/files/addimage.png" class="file h-auto w-100 z-1">
                    <input type="file"  class="form-control position-absolute opacity-0 h-100 start-0 top-0 "  name="image"  id="file"  placeholder=""  aria-describedby="fileHelpId"  />
                    <small id="name" class="form-text text-muted d-none ">Help text</small>
                </div>
            </div>
            <?php if(in_array('edit',$roll)){ ?>
            <div class="d-grid gap-2 justify-content-end my-2">
              <button type="button" name="save" id="save-projectImage" data="projectImage"  class="btn btn-danger fs-7">SAVE</button>
            </div>
            <?php } ?>
        </form>
    </div>
    <div class="d-flex bg-white rounded-3 p-4 m-4 shadow w-100 flex-column Residential-d" >
        <div class="d-flex flex-column mb-3 w-100 ">
            <h6 class=" fw-semibold fs-6">Project Floor Plans</h6>
            <small class="text-secondary fw-normal fs-8">Upload project floor plan images and details.</small>
        </div>
        <form onsubmit="return false" id="projectFloorPlan">
            <div class="row g-3 w-100 mt-4">
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">BHK</label>
                    
                     <div class="row g-0">
                        <div class="col-7">
                            <input type="number" class="form-control" step="0.5"name="bhk" step="0.5" id="bhk" placeholder="1.5 BHK"  />
                        </div>
                        <div class="col-5">
                            <select class="form-select" name="bhklable" id="bhklable">
                                <option value="RK">RK</option>
                                <option value="Studio Apartment">Studio Apartment</option>
                                <option value="BHK">BHK</option>
                            </select>
                        </div>
                    
                    </div>
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Square Feet</label>
                    <input type="number" class="form-control" name="sqft" id="sqft" placeholder="564 in Sq.Ft."  />
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Price on Request</label>
                    <div class="form-check form-switch form-switch-lg fs-4">
                      <input class="form-check-input" value="1"  type="checkbox" id="pr_on_request" name="pr_on_request">
                      <label class="form-check-label fs-6" for="flexSwitchCheckDefault"></label>
                    </div>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label col-12">Price</label>
                    <div class="row g-0">
                        <div class="col-7">
                            <input type="number" class="form-control " name="price" step="0.01" id="price" placeholder="1.2 Cr OR 80 Lakh" />
                        </div>
                        <div class="col-5">
                            <select class="form-select" name="pricelable" id="pricelable">
                                <option value="lakh">Lakh</option>
                                <option value="cr">Cr</option>
                            </select>
                        </div>
                    
                    </div>
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                 <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Bedroom</label>
                    <input type="number" class="form-control"  id="bedroom" name="bedroom" aria-describedby="helpId" placeholder=""  />
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                 <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Bathroom</label>
                    <input type="number" class="form-control"  id="bathroom" name="bathroom" aria-describedby="helpId" placeholder=""  />
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Gallery / Balcony</label>
                    <div class="form-check form-switch form-switch-lg fs-4">
                      <input class="form-check-input" value="1"  type="checkbox" id="balcony" name="balcony">
                      <label class="form-check-label fs-6" for="flexSwitchCheckDefault"></label>
                    </div>
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Dry Balcony</label>
                    <div class="form-check form-switch form-switch-lg fs-4">
                      <input class="form-check-input"  value="1" type="checkbox" id="drybalcony" name="drybalcony">
                      <label class="form-check-label fs-6" for="flexSwitchCheckDefault"></label>
                    </div>
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Phase</label>
                    <input type="text" class="form-control" id="phase" name="phase" aria-describedby="helpId" placeholder=""  />
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Tower</label>
                    <input type="text" class="form-control" step="A" aria-describedby="helpId" placeholder=""  />
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Furnish Type</label>
                    <select class="form-select" id="furnish_status" name="furnish_status" placeholder="Select one">
                         <option selected disabled>Select one</option>
                         <option value="Fully Furnish">Fully Furnish</option>
                        <option value="Semi Furnish">Semi Furnish</option>
                        <option value="None">None</option>
                    </select>
                </div>
                <div class="col-6 col-sm-6 col-md-2 mb-3 position-relative ">
                    <label for="" class="form-label">Floor Plan</label>
                        <div class="col-12 col-sm-12 col-md-8 position-relative ">
                        <img src="/files/addimage.png" class="plan h-auto w-100 z-1">
                        <input type="file"  class="form-control position-absolute opacity-0 h-100 start-0 top-0 "  name="floor_plan_image"  id="plan"  placeholder=""  aria-describedby="fileHelpId"  />
                        <small id="name" class="form-text text-muted d-none ">Help text</small>
                    </div>
                </div>
            </div>
            <?php if(in_array('edit',$roll)){ ?>
            <div class="d-flex gap-2 justify-content-end my-2">
              <button type="button" id="clear-projectFlooPlan" data="projectFlooPlan" class="btn btn-secondary  fs-7">CLEAR</button>
              <button type="button" name="save" id="save-projectFlooPlan" data="projectFlooPlan" class="btn btn-danger fs-7">SAVE</button>
            </div>
            <?php } ?>
        </form>
    </div>
    <div class="d-none bg-white rounded-3 p-4 m-4 shadow w-100 flex-column Commercial-d" >
        <div class="d-flex flex-column mb-3 w-100 ">
            <h6 class=" fw-semibold fs-6">Commercial Plans</h6>
            <small class="text-secondary fw-normal fs-8">Upload project floor plan images and details.</small>
        </div>
        <form onsubmit="return false" id="commercialfloor">
            <div class="row g-3 w-100 mt-4">
               
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Square Feet</label>
                    <input type="number" class="form-control" name="sqft" id="sqft" placeholder="564 in Sq.Ft."  />
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Price on Request</label>
                    <div class="form-check form-switch form-switch-lg fs-4">
                      <input class="form-check-input" value="1"  type="checkbox" id="pr_on_request" name="pr_on_request">
                      <label class="form-check-label fs-6" for="flexSwitchCheckDefault"></label>
                    </div>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label col-12">Price</label>
                    <div class="row g-0">
                        <div class="col-7">
                            <input type="number" class="form-control " name="price" step="0.01" id="price" placeholder="1.2 Cr OR 80 Lakh" />
                        </div>
                        <div class="col-5">
                            <select class="form-select" name="pricelable" id="pricelable">
                                <option value="lakh">Lakh</option>
                                <option value="cr">Cr</option>
                            </select>
                        </div>
                    
                    </div>
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Washroom</label>
                    <div class="form-check form-switch form-switch-lg fs-4">
                      <input class="form-check-input"  value="1" type="checkbox" id="washroom" name="washroom">
                      <label class="form-check-label fs-6" for="flexSwitchCheckDefault"></label>
                    </div>
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">lift</label>
                    <div class="form-check form-switch form-switch-lg fs-4">
                      <input class="form-check-input"  value="1" type="checkbox" id="lift" name="lift">
                      <label class="form-check-label fs-6" for="flexSwitchCheckDefault"></label>
                    </div>
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">staircase</label>
                    <div class="form-check form-switch form-switch-lg fs-4">
                      <input class="form-check-input"  value="1" type="checkbox" id="staircase" name="staircase">
                      <label class="form-check-label fs-6" for="flexSwitchCheckDefault"></label>
                    </div>
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Phase</label>
                    <input type="text" class="form-control" id="phase" name="phase" aria-describedby="helpId" placeholder=""  />
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Tower</label>
                    <input type="text" class="form-control" step="A" aria-describedby="helpId" placeholder=""  />
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Furnish Type</label>
                    <select class="form-select" id="furnish_status" name="furnish_status" placeholder="Select one">
                         <option selected disabled>Select one</option>
                         <option value="Fully Furnish">Fully Furnish</option>
                        <option value="Semi Furnish">Semi Furnish</option>
                        <option value="None">None</option>
                    </select>
                </div>
                <div class="col-6 col-sm-6 col-md-2 mb-3 position-relative ">
                    <label for="" class="form-label">Commercial Plan</label>
                        <div class="col-12 col-sm-12 col-md-8 position-relative ">
                        <img src="/files/addimage.png" class="plan h-auto w-100 z-1">
                        <input type="file"  class="form-control position-absolute opacity-0 h-100 start-0 top-0 "  name="commercial_plan"  id="commercial_plan"  placeholder=""  aria-describedby="fileHelpId"  />
                        <small id="name" class="form-text text-muted d-none ">Help text</small>
                    </div>
                </div>
            </div>
            <?php if(in_array('edit',$roll)){ ?>
            <div class="d-flex gap-2 justify-content-end my-2">
              <button type="button" id="clear-commercialfloor" data="commercialfloor" class="btn btn-secondary  fs-7">CLEAR</button>
              <button type="button" name="save" id="save-commercialfloor" data="commercialfloor" class="btn btn-danger fs-7">SAVE</button>
            </div>
            <?php } ?>
        </form>
    </div>
    <div class="w-100 px-3 Residential">
        <div class="sect w-auto mx-2 shadow rounded-4 Residential">
            <div class="table-responsive fs-8 mt-3 ">
              <table class="table">
                <thead>
                  <tr>
                    <th class="text-secondary " scope="col">PLAN</th>
                    <th class="text-secondary " scope="col">BHK</th>
                    <th class="text-secondary " scope="col">PHASE/TOWER</th>
                    <th class="text-secondary " scope="col">PRICE</th>
                    <th class="text-secondary " scope="col">FURNISH</th>
                    <th class="text-secondary " scope="col">BY</th>
                    <th class="text-secondary " scope="col">DATE</th>
                    <th class="text-secondary " scope="col">ACTION</th>
                  </tr>
                </thead>
                <tbody id="projectPlan" class=" overflow-y-auto " style="height: 400px;">
                </tbody>
              </table>
            </div>
        </div>
    </div>
    <div class="w-100 px-3 Commercial" style="display:none">
        <div class="sect w-auto mx-2 shadow rounded-4 Commercial">
            <div class="table-responsive fs-8 mt-3 ">
              <table class="table">
                <thead>
                  <tr>
                    <th class="text-secondary " scope="col">PLAN</th>
                    <th class="text-secondary " scope="col">SQFT</th>
                    <th class="text-secondary " scope="col">PHASE/TOWER</th>
                    <th class="text-secondary " scope="col">PRICE</th>
                    <th class="text-secondary " scope="col">FURNISH</th>
                    <th class="text-secondary " scope="col">WASHROOM</th>
                    <th class="text-secondary " scope="col">BY</th>
                    <th class="text-secondary " scope="col">DATE</th>
                    <th class="text-secondary " scope="col">ACTION</th>
                  </tr>
                </thead>
                <tbody id="comercialPlan" class=" overflow-y-auto " style="height: 400px;">
                </tbody>
              </table>
            </div>
        </div>
    </div>
    <div class="d-flex bg-white rounded-3 p-4 m-4 shadow w-100 flex-column ">
            <div class="d-flex flex-column mb-3 w-100 ">
                <h6 class=" fw-semibold fs-6">Project Social Media</h6>
                <small class="text-secondary fw-normal fs-8">save project social media links.</small>
            </div>
            <div class="row  w-100" id="socialmedia">
               
            </div>
             <form onsubmit="return false" id="socialmedia-form">
                <div class="row g-3 w-100 mt-4">
                    <div class="col-12 col-sm-12 col-md-3 mb-3">
                        <label for="" class="form-label">Link <span id="media_is_name"></span></label>
                        <input type="text" class="form-control" name="path" id="path" />
                        <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                    </div>
                    <div class="col-12 col-sm-12 col-md-3 mb-3">
                        <label for="" class="form-label">Social Media Platform</label>
                        <select class="form-select" id="media_is" name="media_is">
                            <option selected disabled>Select one</option>
                             <option value="youtube">YouTube</option>
                            <option value="instagram">Instagram</option>
                        </select>
                    </div>
                </div>
                <?php if(in_array('edit',$roll)){ ?>
             <div class="d-grid gap-2 justify-content-end my-2">
              <button type="button" id="save-social-media" data="socialmedia"  class="btn btn-danger fs-7">SAVE</button>
            </div>
            <?php } ?>
        </form>
    </div>
    <?php if(in_array('edit',$roll)){ ?>
    <div class="d-flex bg-white rounded-3 p-4 m-4 shadow w-100 flex-column ">
        <div class="d-flex flex-column mb-3 w-100 ">
            <h6 class=" fw-semibold fs-6">Save Project</h6>
            <small class="text-secondary fw-normal fs-8">save or draft your project.</small>
                <!--<p class="fs-7 mt-3">Once the project is deleted, all of its resources and data will be permanently deleted.</p>-->
        </div>
            <div class="d-flex gap-2 justify-content-start my-2">
                <button type="button" id="in-active-project" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-placement="top" title="" data-bs-original-title="Save Project as draft">IN-ACTIVE</button>
                <button type="button" id="active-project" class="btn btn-danger fs-7" data-bs-toggle="tooltip" data-bs-placement="top" title="" data-bs-original-title="Active project to display in client">ACTIVE</button>
            </div>
        </div>
        <?php } ?>
        <?php if(in_array('delete',$roll)){ ?>
    <div class="d-flex bg-white rounded-3 p-4 m-4 shadow w-100 flex-column ">
        <div class="d-flex flex-column mb-3 w-100 ">
            <h6 class=" fw-semibold fs-6">Delete Project</h6>
            <small class="text-secondary fw-normal fs-8">Parmanently delete your project.</small>
                <p class="fs-7 mt-3">Once the project is deleted, all of its resources and data will be permanently deleted.</p>
        </div>
        <div class="d-grid gap-2 justify-content-start my-2">
          <button type="button" name="delete" data-bs-toggle="modal" data-bs-target="#deleteConfirmation"  class="btn btn-danger fs-7">DELETE PROJECT</button>
        </div>
    </div>
    <?php  } ?>
</div>
<?php if(in_array('delete',$roll)){ ?>
<div class="modal fade" id="deleteConfirmation" tabindex="-1" aria-labelledby="Delete Confirmation" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel">Delete Project</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <div class="d-flex flex-column ">
                    <p class=" text-secondary ">Are you sure you want to delete project?.</p>
                    <h6 id="profile-name" class="text-capitalize"></h6>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
                <button type="button" id="delete-project" class="btn btn-danger">Delete</button>
            </div>
        </div>
    </div>
</div>
<?php } ?>
<?php if(in_array('edit',$roll)){ ?>
<div class="modal fade" id="addDeveloper"  tabindex="-1"  aria-labelledby="Add Developer"  aria-hidden="true">
    <div class="modal-dialog">
        <form onsubmit="return false" id="Add_Developer">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel">Add Developer</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                
                    <div class="row g-3 w-100 mt-4">
                        <div class="col-6 col-sm-12 col-md-6 mb-3">
                            <label for="" class="form-label">Developer Name</label>
                            <input type="text" class="form-control" name="name" id="developername" aria-describedby="helpId" placeholder=""  />
                            <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                        </div>
                        <div class="col-6 col-sm-12 col-md-6 mb-3">
                            <label for="" class="form-label">Developer Address</label>
                            <input type="text" class="form-control" name="address" id="developerAddress" aria-describedby="helpId" placeholder=""  />
                            <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                        </div>
                    </div>
                
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
                <button type="button" id="save-developer" class="btn btn-danger">Save</button>
            </div>
            </form>
        </div>
    </div>
</div>
<div class="modal fade" id="amenitiesform"tabindex="-1" aria-labelledby="Add Amenity" aria-hidden="true">
    <div class="modal-dialog">
        <form class="modal-content" onsubmit="return false" id="addAmenitie">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel">Add Amenities</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <a href="https://fontawesome.com/">f-icon</a>
                <a href="https://fonts.google.com/icons?icon.set=Material+Icons">M-icon</a>
                
                    <div class="row g-3 w-100 mt-4">
                        <div class="col-4 col-sm-12 col-md-4 mb-3">
                            <label for="" class="form-label">Amenity Name</label>
                            <input type="text" class="form-control" name="name" aria-describedby="helpId" placeholder=""  />
                            <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                        </div>
                        <div class="col-4 col-sm-12 col-md-4 mb-3">
                            <label for="" class="form-label">Amenity Icon</label>
                            <input type="text" class="form-control" name="icon" aria-describedby="helpId" placeholder=""  />
                            <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                        </div>
                        <div class="col-4 col-sm-12 col-md-4 mb-3">
                            <label for="" class="form-label">Amenity catagory</label>
                            <select class="form-select" id="lable" name="lable">
                                     <option value="Residential">Residential</option>
                                    <option value="Commercial">Commercial</option>
                                    <option value="Both">Both</option>
                                </select>
                        </div>
                        <div class="col-4 col-sm-12 col-md-4 mb-3">
                            <label for="" class="form-label">Amenity Label</label>
                            <select class="form-select" id="lable" name="lable">
                                     <option value="indoor">Indoor</option>
                                    <option value="outdoor">Outdoor</option>
                                    <option value="both">Both</option>
                                </select>
                        </div>
                    </div>
                
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
                <button type="button" id="save-amenity" class="btn btn-danger">Save</button>
            </div>
        </form>
    </div>
</div>
<?php } ?>
<script async src="https://www.instagram.com/embed.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDLblMV_rTTxF57MLHTTD617RWpIz7iKD8&callback=initAutocomplete&libraries=places,geometry&v=weekly" defer ></script>
<script src="/js/propertydetails.js"></script>
  <?php
    include 'widgets/footer.php';
  ?>
  </div>
</body>

</html>
<?php
}else{
    header('location: /login');
}
?>

LittleDemon - FACEBOOK
[ KELUAR ]