<div class="page-header">
    <h3>Amenities</h3>
</div>

<div id="amenities-page" class="container  mt-5">
    <div class="row">

        <?php foreach ($amenities as $ak => $av) { ?>
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 amenities-div">
                <div class="amenities-title" href="#<?= 'am' . $ak ?>" data-toggle="collapse" aria-expanded="true"><?= $av['amenityname'] ?></div>
                <div class="amenities-desc collapse in" id="<?= 'am' . $ak ?>" aria-expanded="true">
                    <div class="list-data">
                        <?php foreach (explode(',', $av['amenities']) as $va) { ?>
                            <div class="list"><?= trim($va) ?></div>
                        <?php } ?>
                    </div>
                </div>
            </div>
        <?php } ?>
    </div>
</div>