
<?php $__env->startSection('content'); ?>
<?php echo $__env->make('admin.includes.errors', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<link rel="stylesheet" href="<?php echo e(asset('assets/css/mycustom.css')); ?>">
<div class="container">
<?php echo $__env->make('admin.posts.mylink', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<h3 class="text-center"><u>Edit Property List</u></h3>
<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">
            <table>
                <tr class="required">
                    <td><label for="title">Ad Title</label></td>
                    <td><input type="text" size="30" required name="title" value="<?php echo e($post->title); ?>" class="form-control" placeholder="Enter Title"></td>
                </tr>
                <tr class="required">
                    <td><label for="city">City</label></td>
                    <td><input type="text" size="30" required name="city" value="<?php echo e($post->city); ?>" class="form-control" placeholder="Enter name of property"></td>
                </tr>
                <tr class="required">
                    <td><label for="category">Category</label></td>
                    <td> <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></td>
                </tr>
                <tr class="required">
                    <td><label for="subcategory">Subcategory</label></td>
                    <td>
                    <select class="form-control" name="subcategory">
            <option value="<?php echo e($post->subcategory); ?>"><?php echo e($post->subcategory); ?></option>
                    <option value="FLAT">FLAT</option>
                    <option value="PLOT">PLOT</option>
                    <option value="HOUSE">HOUSE</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>
                    </td>
                </tr>
                <tr class="required">
                    <td> <label for="price">Price</label></td>
                    <td><input type="text" size="30" name="price" value="<?php echo e($post->price); ?>" class="form-control" placeholder="Enter price such for e.g., 50 Lac"></td>
                </tr>
                <tr class="required">
                    <td><label for="bedrooms">BHK/ Bedrooms</label></td>
                    <td>
                    <select class="form-control" name="bedrooms">
            <option value="<?php echo e($post->bedrooms); ?>"><?php echo e($post->subcategory); ?></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>
                    </td>
                </tr>
                <tr class="required">
                    <td><label for="bathrooms">Bathrooms</label></td>
                    <td>           
                     <select class="form-control" name="bathrooms">
                        <option value="<?php echo e($post->bathrooms); ?>"><?php echo e($post->bathrooms); ?></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>
            </td>
                </tr>
                <tr class="required">
                    <td><label for="furnishing">Furnishing</label></td>
                    <td>
                    <select class="form-control" name="furnishing">
                    <option value="<?php echo e($post->furnishing); ?>"><?php echo e($post->furnishing); ?></option>
                    <option value="Ready To Shift">Ready To Shift</option>
                    <option value="Under Construction">Under Construction</option>
                </select>
                    </td>
                </tr>
                <tr class="required">
                    <td><label for="listedby">Listed By</label></td>
                    <td>
                    <select class="form-control" name="listedby">
                    <option value="<?php echo e($post->listedby); ?>"><?php echo e($post->listedby); ?></option>
                        <option value="Owner">Owner</option>
                        <option value="Dealer">Dealer</option>
                        <option value="Builder">Builder</option>
                    </select>
                    </td>
                </tr>
                <tr class="required">
                    <td><label for="builtuparea">Super Builtup Area (Sq. Ft.)</label></td>
                    <td> <input type="text" size="30" required name="builtuparea" value="<?php echo e($post->builtuparea); ?>" class="form-control" placeholder="Super Builtup Area"></td>
                </tr>
                <tr class="required">
                    <td><label for="carpetarea">Carpet Area (Sq. Ft.)</label></td>
                    <td><input type="text" size="30" required name="carpetarea" value="<?php echo e($post->carpetarea); ?>" class="form-control" placeholder="Carpet Area"></td>
                </tr>
                <tr class="required1">
                    <td><label for="maintenance">Monthly Maintenance</label></td>
                    <td><input type="text" size="30" name="maintenance" class="form-control" value="<?php echo e($post->maintenance); ?>" placeholder="Maintenance (Monthly)"></td>
                </tr>
            </table>
            </div>
            <div class="col-md-6">
            <table>
                <tr class="required1">
                    <td><label for="totalfloors">Total Floors</label></td>
                    <td><input type="text" size="30" name="totalfloors" class="form-control" value="<?php echo e($post->totalfloors); ?>" placeholder="Total Floors"></td>
                </tr>
                <tr class="required1">
                    <td><label for="floorno">Floor No</label></td>
                    <td><input type="text" size="30" name="floorno" class="form-control" value="<?php echo e($post->floorno); ?>" placeholder="Floor Number"></td>
                </tr>
                <tr class="required1">
                    <td><label for="carparking">Car Parking</label></td>
                    <td>
                    <select class="form-control" name="carparking">
                        <option value="<?php echo e($post->carparking); ?>"><?php echo e($post->carparking); ?></option>
                                <option value="0">0</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>
                    </td>
                </tr>
                <tr class="required1">
                    <td><label for="facing">Facing</label></td>
                    <td>
                    <select class="form-control" name="facing">
                    <option value="<?php echo e($post->facing); ?>"><?php echo e($post->facing); ?></option>
                        <option value="West">West</option>
                        <option value="East">East</option>
                        <option value="North">North</option>
                        <option value="South">South</option>
                        <option value="North-East">North-East</option>
                        <option value="North-West">North-West</option>
                        <option value="South-East">South-East</option>
                        <option value="South-West">South-West</option>
                    </select>
                    </td>
                </tr>
                <tr class="required1">
                    <td><label for="projectname">Project Name</label></td>
                    <td><input type="text" size="30" name="projectname" class="form-control" value="<?php echo e($post->projectname); ?>" placeholder="Project Name"></td>
                </tr>
                <tr class="required">
                    <td><label for="description">Description</label></td>
                    <td><textarea name="description" cols="30" rows="4" required id="description"  cols="5" rows="5" class="form-control" placeholder="Enter description."><?php echo e($post->description); ?></textarea></td>
                </tr>
                <tr class="required">
                    <td><label for="gallery1">galleryI</label></td>
                    <td><input type="file" accept="image/x-png,image/gif,image/jpeg" size="30" name="gallery_one" class="form-control"></td>
                </tr>
                <tr class="required">
                    <td><label for="gallery2">galleryII</label></td>
                    <td><input type="file" accept="image/x-png,image/gif,image/jpeg" size="30" name="gallery_two" class="form-control"></td>
                </tr>
                <tr class="required">
                    <td><label for="gallery3">galleryIII</label></td>
                    <td><input type="file" accept="image/x-png,image/gif,image/jpeg" size="30" name="gallery_three" class="form-control"></td>
                </tr>
            </table>
                <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>
        <br/>
        <div class="form-group">
            <div class="text-center">
                <button class="btn btn-danger btn-lg mypostbtn" type="submit">
                    Update Post
                </button>
            </div>
        </div>
    </form>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>