<?php $__env->startSection('content'); ?>
<?php echo $__env->make('admin.includes.errors', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<div class="container">
<?php echo $__env->make('admin.posts.mylink', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<h2 class="text-center">Update Property List: <?php echo e($post->project_name); ?></h2>
    <form action="<?php echo e(route('post.update', ['id' => $post->id])); ?>" method="post" enctype="multipart/form-data">
        <?php echo e(csrf_field()); ?>

        <div class="row">
            <div class="col-md-6">
            <div class="form-group">
            <label for="category">Category (Required*)</label>
                <select class="form-control" name="category">
                <option value="<?php echo e($post->category); ?>"><?php echo e($post->category); ?></option>
                    <option value="SELL">SELL</option>
                    <option value="RENT">RENT</option>
                </select>
            <!-- <input type="text" name="category" class="form-control"> -->
        </div>
        <div class="form-group">
            <label for="subcategory">Subcategory (Required*)</label>
            <select class="form-control" name="subcategory">
            <option value="<?php echo e($post->subcategory); ?>"><?php echo e($post->subcategory); ?></option>
                    <option value="PLOT">PLOT</option>
                    <option value="HOUSE">HOUSE</option>
                    <option value="FLAT">FLAT</option>
                    <option value="BUILDER FLOOR">BUILDER FLOOR</option>
                    <option value="SHOP">SHOP</option>
                    <option value="OFFICE SPACE">OFFICE SPACE</option>
                    <option value="SHOWROOM">SHOWROOM</option>
                    <option value="WAREHOUSE/ GODOWN">WAREHOUSE/ GODOWN</option>
                    <option value="INDUSTRIAL SHED">INDUSTRIAL SHED</option>
                    <option value="COMMERCIAL LAND">COMMERCIAL LAND</option>
                    <option value="OTHER">OTHER</option>
            </select>
        </div>
        <div class="form-group">
            <label for="type">BHK/ Bedrooms (Required*)</label>
            <select class="form-control" name="type">
            <option value="<?php echo e($post->type); ?>"><?php echo e($post->type); ?></option>
                    <option value="1">1</option>
                    <option value="2">2</option>
                    <option value="3">3</option>
                    <option value="4">4</option>
                    <option value="5">5</option>
                    <option value="5+">5+</option>
            </select>
        </div>
        <div class="form-group">
            <label for="construction_status">Construction Status (Required*)</label>
            <select class="form-control" name="construction_status">
            <option value="<?php echo e($post->construction_status); ?>"><?php echo e($post->construction_status); ?></option>
                    <option value="Ready To Shift">Ready To Shift</option>
                    <option value="Under Construction">Under Construction</option>
                </select>
        </div>
        <div class="form-group">
            <label for="price">Price (Required*)</label>
            <input type="text" name="price" class="form-control" placeholder="Enter price such for e.g., 50 Lac" value="<?php echo e($post->price); ?>">
        </div>
        <div class="form-group">
            <label for="posted_by">Posted_By (Required*)</label>
            <select class="form-control" name="posted_by">
                <option value="<?php echo e($post->posted_by); ?>"><?php echo e($post->posted_by); ?></option>
                <option value="Owner">Owner</option>
                <option value="Builder">Builder</option>
                <option value="Dealer">Dealer</option>
            </select>
        </div>
        <div class="form-group">
            <label for="project_name">Property Name (Required*)</label>
            <input type="text" name="project_name" class="form-control" placeholder="Enter name of property" value="<?php echo e($post->project_name); ?>">
        </div>
        <div class="form-group">
            <label for="area">Area(Sq. Ft.)</label>
            <input type="text" name="area" class="form-control" placeholder="What is the area of your Property" value="<?php echo e($post->area); ?>">
        </div>
        <div class="form-group">
            <label for="state">State (Required*)</label>
            <select class="form-control" name="state">
            <option value="<?php echo e($post->state); ?>"><?php echo e($post->state); ?></option>
            <option value="Bihar" >Bihar</option>
            <option value="Jharkhand" >Jharkhand</option>
                    <option value="Andaman and Nicobar Islands">Andaman & Nicobar</option>
                    <option value="Arunachal Pradesh" >Arunachal Pradesh</option>
                     <option value="Assam" >Assam</option>
                      <option value="Chandigarh" >Chandigarh</option>
                      <option value="Chhattisgarh" >Chhattisgarh</option>
                      <option value="Dadra and Nagar Haveli" >Dadra and Nagar Haveli</option>
                      <option value="Daman and Diu" >Daman and Diu</option>
                      <option value="Delhi" >Delhi</option>
                      <option value="Goa" >Goa</option>
                      <option value="Gujrat" >Gujrat</option>
                      <option value="Haryana" >Haryana</option>
                      <option value="Himachal Pradesh" >Himachal Pradesh</option>
                      <option value="Jammu and Kashmir" >Jammu and Kashmir</option>
                      <option value="Karnataka" >Karnataka</option>
                      <option value="Kerala" >Kerala</option>
                      <option value="Lakshadweep" >Lakshadweep</option>
                      <option value="Madhya Pradesh" >Madhya Pradesh</option>
                      <option value="Maharashtra" >Maharashtra</option>
                     <option value="Manipur" >Manipur</option>
                     <option value="Meghalaya" >Meghalaya</option>
                     <option value="Mizoram" >Mizoram</option>
                     <option value="Nagaland" >Nagaland</option>
                     <option value="Odisha" >Odisha</option>
                     <option value="Puducherry" >Puducherry</option>
                     <option value="Punjab" >Punjab</option>
                     <option value="Rajasthan" >Rajasthan</option>
                     <option value="Sikkim" >Sikkim</option>
                     <option value="Tamil Nadu" >Tamil Nadu</option>
                     <option value="Telangana" >Telangana</option>
                     <option value="Tripura" >Tripura</option>
                     <option value="Uttar Pradesh" >Uttar Pradesh</option>
                     <option value="Uttarakhand" >Uttarakhand</option>
                     <option value="West Bengal" >West Bengal</option>
            </select>
        </div>
        <div class="form-group">
            <label for="city">City (Required*)</label>
            <input type="text" name="city" class="form-control" placeholder="Enter city." value="<?php echo e($post->city); ?>">
        </div>
        <div class="form-group">
            <label for="street">Street (Required*)</label>
            <input type="text" name="street" class="form-control" placeholder="Enter street address." value="<?php echo e($post->street); ?>">
        </div>
            </div>
            <div class="col-md-6">
        <div class="form-group">
            <label for="overview">Overview</label>
            <textarea name="overview" id="overview" cols="5" rows="5" class="form-control" placeholder="Describe your property details."><?php echo e($post->overview); ?></textarea>
        </div>
        <div class="form-group">
            <label for="amenties">Amenties</label>
            <textarea name="amenties" id="amenties" cols="5" rows="5" class="form-control" placeholder="Amenties you are providing." ><?php echo e($post->amenties); ?></textarea>
        </div>
        <div class="form-group">
            <label for="specification">Specification</label>
            <textarea name="specification" id="specification" cols="5" rows="5" class="form-control" placeholder="Enter specification."><?php echo e($post->specification); ?></textarea>
        </div>
        <div class="form-group">
            <label for="gallery1">galleryI (Required*)</label>
            <input type="file" name="gallery_one" class="form-control">
        </div>
        <div class="form-group">
            <label for="gallery2">galleryII (Required*)</label>
            <input type="file" name="gallery_two" class="form-control">
        </div>
        <div class="form-group">
            <label for="gallery3">galleryIII (Required*)</label>
            <input type="file" name="gallery_three" class="form-control">
        </div>
        <div class="form-group">
        <img src="<?php echo e($post->gallery_one); ?>" alt="<?php echo e($post->project_name); ?>" width="90px" height="90px" title="Gallery One">
        <img src="<?php echo e($post->gallery_two); ?>" alt="<?php echo e($post->project_name); ?>" width="90px" height="90px" title="Gallery Two">
        <img src="<?php echo e($post->gallery_three); ?>" alt="<?php echo e($post->project_name); ?>" width="90px" height="90px" title="Gallery Three">
        </div>
            </div>
        </div>
       
        <div class="form-group">
            <div class="text-center">
                <button class="btn btn-success btn-lg" type="submit">
                    Update Property
                </button>
            </div>
        </div>
    </form>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>