<div class="page-titles">
    <ol class="breadcrumb">
        <li class="breadcrumb-item"><a href="javascript:void(0)">Dashboard</a></li>
        <li class="breadcrumb-item active"><a href="javascript:void(0)">Amenities Data</a></li>
    </ol>
</div>
<div class="row">
    <div class="col-12">
        <div class="card">
            <div class="card-header">
                <h4 class="card-title">Amenities Data</h4>
            </div>
            <div class="card-body">
                <form action="<?= ADMIN_URL . 'property/save-amenities' ?>" method="post" enctype="multipart/form-data">
                    <?php if (isset($amenitiesData['id'])) { ?>
                        <?php if (!empty($amenitiesData['id'])) { ?>
                            <input type="hidden" name="id" value="<?= $amenitiesData['id'] ?>">
                        <?php } ?>
                    <?php } ?>
                    <div class="row">
                        <div class="mb-3 col-lg-9 col-md-9 col-sm-12">
                            <label class="form-label">Amenity Name</label>
                            <input type="text" class="form-control" placeholder="Amenity Name" required="" value="<?= $amenitiesData['amenityname'] ?? '' ?>" name="title">
                        </div>
                        <div class="mb-3 col-lg-3 col-md-3 col-sm-12">
                            <label class="form-label">Amenity Status</label>
                            <select class="form-control form-select" name="status">
                                <option value="">Select</option>
                                <option value="1" <?= (isset($amenitiesData['status']) ? (($amenitiesData['status'] == 1)  ? 'selected' : '') : '') ?>>Active</option>
                                <option value="0" <?= (isset($amenitiesData['status']) ? (($amenitiesData['status'] == 0)  ? 'selected' : '') : '') ?>>Inactive</option>
                            </select>
                        </div>

                        <div class="mb-3 col-lg-12 col-md-12 col-sm-12">
                            <label class="form-label">Amenities</label>
                            <textarea name="amenities" class="form-control" rows="5" placeholder="Amenities" id="desc" required=""><?= $amenitiesData['amenities'] ?? '' ?></textarea>
                        </div>

                        <div class="mb-3 col-12">
                            <div class="col-sm-12 pt-3">
                                <input type="submit" class="btn btn-sm btn-primary me-2" name="register_property" value="Submit">
                                <a href="<?= ADMIN_URL . 'property/amenities' ?>" class="btn light btn-warning">Back to Listing</a>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>