

<?php $__env->startSection('content'); ?>
<div class="bg-white p-6 shadow rounded">
    <h2 class="text-2xl font-bold mb-4">Add New Property</h2>

    <form action="<?php echo e(route('properties.store')); ?>" method="POST">
        <?php echo csrf_field(); ?>

        
        <h3 class="text-lg font-semibold mb-2">Property Info</h3>
        <input type="text" name="name" placeholder="Property Name" class="w-full mb-2 border p-2" required>
        <input type="text" name="price" placeholder="Price" class="w-full mb-2 border p-2" required>
        <input type="text" name="security_deposit" placeholder="Security Deposit" class="w-full mb-2 border p-2">
        <input type="text" name="youtube_video_url" placeholder="YouTube URL" class="w-full mb-2 border p-2">
        <textarea name="disc" placeholder="Description" class="w-full mb-2 border p-2"></textarea>

        
        <h3 class="text-lg font-semibold mt-4 mb-2">Address</h3>
        <input type="text" name="address[street]" placeholder="Street" class="w-full mb-2 border p-2">
        <input type="text" name="address[city]" placeholder="City" class="w-full mb-2 border p-2">
        <input type="text" name="address[state]" placeholder="State" class="w-full mb-2 border p-2">
        <input type="text" name="address[zip_or_postal_code]" placeholder="Zip Code" class="w-full mb-2 border p-2">
        <input type="text" name="address[area]" placeholder="Area" class="w-full mb-2 border p-2">
        <select name="address[country]" class="w-full mb-2 border p-2">
            <option value="" disabled selected>Select Country</option>
            <option value="Afghanistan">Afghanistan</option>
            <option value="Albania">Albania</option>
            <option value="Algeria">Algeria</option>
            <option value="Andorra">Andorra</option>
            <option value="Angola">Angola</option>
            <option value="Argentina">Argentina</option>
            <option value="Armenia">Armenia</option>
            <option value="Australia">Australia</option>
            <option value="Austria">Austria</option>
            <option value="Azerbaijan">Azerbaijan</option>
            <option value="Bahamas">Bahamas</option>
            <option value="Bahrain">Bahrain</option>
            <option value="Bangladesh">Bangladesh</option>
            <option value="Belarus">Belarus</option>
            <option value="Belgium">Belgium</option>
            <option value="Bhutan">Bhutan</option>
            <option value="Brazil">Brazil</option>
            <option value="Bulgaria">Bulgaria</option>
            <option value="Cambodia">Cambodia</option>
            <option value="Canada">Canada</option>
            <option value="Chile">Chile</option>
            <option value="China">China</option>
            <option value="Colombia">Colombia</option>
            <option value="Croatia">Croatia</option>
            <option value="Czech Republic">Czech Republic</option>
            <option value="Denmark">Denmark</option>
            <option value="Egypt">Egypt</option>
            <option value="Finland">Finland</option>
            <option value="France">France</option>
            <option value="Germany">Germany</option>
            <option value="Greece">Greece</option>
            <option value="Hong Kong">Hong Kong</option>
            <option value="Hungary">Hungary</option>
            <option value="India">India</option>
            <option value="Indonesia">Indonesia</option>
            <option value="Iran">Iran</option>
            <option value="Iraq">Iraq</option>
            <option value="Ireland">Ireland</option>
            <option value="Israel">Israel</option>
            <option value="Italy">Italy</option>
            <option value="Japan">Japan</option>
            <option value="Jordan">Jordan</option>
            <option value="Kazakhstan">Kazakhstan</option>
            <option value="Kenya">Kenya</option>
            <option value="Kuwait">Kuwait</option>
            <option value="Laos">Laos</option>
            <option value="Latvia">Latvia</option>
            <option value="Lebanon">Lebanon</option>
            <option value="Lithuania">Lithuania</option>
            <option value="Luxembourg">Luxembourg</option>
            <option value="Malaysia">Malaysia</option>
            <option value="Maldives">Maldives</option>
            <option value="Mexico">Mexico</option>
            <option value="Monaco">Monaco</option>
            <option value="Mongolia">Mongolia</option>
            <option value="Morocco">Morocco</option>
            <option value="Nepal">Nepal</option>
            <option value="Netherlands">Netherlands</option>
            <option value="New Zealand">New Zealand</option>
            <option value="Nigeria">Nigeria</option>
            <option value="Norway">Norway</option>
            <option value="Oman">Oman</option>
            <option value="Pakistan">Pakistan</option>
            <option value="Peru">Peru</option>
            <option value="Philippines">Philippines</option>
            <option value="Poland">Poland</option>
            <option value="Portugal">Portugal</option>
            <option value="Qatar">Qatar</option>
            <option value="Romania">Romania</option>
            <option value="Russia">Russia</option>
            <option value="Saudi Arabia">Saudi Arabia</option>
            <option value="Serbia">Serbia</option>
            <option value="Singapore">Singapore</option>
            <option value="Slovakia">Slovakia</option>
            <option value="Slovenia">Slovenia</option>
            <option value="South Africa">South Africa</option>
            <option value="South Korea">South Korea</option>
            <option value="Spain">Spain</option>
            <option value="Sri Lanka">Sri Lanka</option>
            <option value="Sweden">Sweden</option>
            <option value="Switzerland">Switzerland</option>
            <option value="Syria">Syria</option>
            <option value="Taiwan">Taiwan</option>
            <option value="Thailand">Thailand</option>
            <option value="Turkey">Turkey</option>
            <option value="UAE">UAE</option>
            <option value="Ukraine">Ukraine</option>
            <option value="United Kingdom">United Kingdom</option>
            <option value="United States">United States</option>
            <option value="Vietnam">Vietnam</option>
            <option value="Yemen">Yemen</option>
        </select>


        
        <h3 class="text-lg font-semibold mt-4 mb-2">Details</h3>
        <input type="text" name="details[property_size]" placeholder="Size (e.g. 3410 Sq Ft)" class="w-full mb-2 border p-2">
        <select name="details[bedrooms]" class="w-full mb-2 border p-2">
            <option value="" disabled selected>Select Bedrooms</option>
            <?php for($i = 1; $i <= 10; $i++): ?>
                <option value="<?php echo e($i); ?>"><?php echo e($i); ?></option>
            <?php endfor; ?>
        </select>
        <select name="details[bathroom]" class="w-full mb-2 border p-2">
            <option value="" disabled selected>Select Bathrooms</option>
            <?php for($i = 1; $i <= 10; $i++): ?>
                <option value="<?php echo e($i); ?>"><?php echo e($i); ?></option>
            <?php endfor; ?>
        </select>
        <select name="details[garage]" class="w-full mb-2 border p-2">
            <option value="" disabled selected>Select Garage</option>
            <?php for($i = 1; $i <= 10; $i++): ?>
                <option value="<?php echo e($i); ?>"><?php echo e($i); ?></option>
            <?php endfor; ?>
        </select>
        <input type="text" name="details[garage_size]" placeholder="Garage Size (e.g. 320 Sq Ft)" class="w-full mb-2 border p-2">
        <?php
            $currentYear = date('Y');
        ?>

        <select name="details[year_built]" class="w-full mb-2 border p-2">
            <option value="" disabled selected>Select Year Built</option>
            <?php for($year = $currentYear; $year >= 1980; $year--): ?>
                <option value="<?php echo e($year); ?>"><?php echo e($year); ?></option>
            <?php endfor; ?>
        </select>

        <select name="details[property_type]" class="w-full mb-2 border p-2">
            <option value="" disabled selected>Select Property Type</option>
            <option value="Flats / Apartments">Flats / Apartments</option>
            <option value="Independent / Builder Floors">Independent / Builder Floors</option>
            <option value="Farm House">Farm House</option>
            <option value="House & Villa">House & Villa</option>
        </select>

        <select name="details[property_status]" class="w-full mb-2 border p-2">
            <option value="" disabled selected>Select Property Status</option>
            <option value="New Launch">New Launch</option>
            <option value="Ready to Move">Ready to Move</option>
            <option value="Under Construction">Under Construction</option>
        </select>

        <select name="details[furnishing]" class="w-full mb-2 border p-2">
            <option value="" disabled selected>Select Furnishing</option>
            <option value="Furnished">Furnished</option>
            <option value="Semi-Furnished">Semi-Furnished</option>
            <option value="Unfurnished">Unfurnished</option>
        </select>

        
        <h3 class="text-lg font-semibold mt-4 mb-2">Amenities (Check what applies)</h3>
        <?php
            $amenitiesList = [
                "gymnasium_spa", "security_24_7", "premium_lifts", "cctv_surveillance",
                "club_house", "mivan_construction", "jogging_track", "rain_water_harvesting",
                "power_backup", "water_supply_24_7", "swimming_area", "kids_play_area",
                "yoga_area", "barbeque_area", "co_working_space", "ultra_luxury",
                "gated_secured_homes", "basket_ball_court", "badminton_court",
                "table_tennis", "tennis_court", "restaurant_bar", "meditation_area",
                "stilt_parking", "multipurpose_hall", "fire_protection", "library",
                "mini_theatre", "garden_park"
            ];
        ?>

        <div class="grid grid-cols-2 gap-2">
            <?php $__currentLoopData = $amenitiesList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $amenity): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <label>
                    <input type="checkbox" name="amenities[<?php echo e($amenity); ?>]" value="1">
                    <?php echo e(ucwords(str_replace('_', ' ', $amenity))); ?>

                </label>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
        <div class="pt-5"> 
             <h3 class="text-lg font-semibold mt-4 mb-2">For Seo</h3>
            <input type="text" name="meta_title" placeholder="Meta Title" class="w-full mb-2 border p-2">
            <textarea name="meta_disc" placeholder="Meta Description" class="w-full mb-2 border p-2"></textarea>
        </div>

        <button type="submit" class="mt-4 bg-green-600 text-white px-4 py-2 rounded">Save Property</button>
    </form>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\Sw_arif\realState\resources\views/properties/create.blade.php ENDPATH**/ ?>