<!-- Modal -->
<div class="modal fade open-modal-detalhes">
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h3 class="modal-title"><?php e(!empty($arrayImovel) ? "Detalhes do imóvel":"Detalhes do condomínio"); ?></h3>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <?php if(!empty($arrayImovel)){ ?>
        <div class="list-detalhes-imovel d-none">
            <ul class="list-group list-group-flush">
                <?php foreach ($arrayImovel as $array) { ?>
                    <li class="list-group-item">
                        <?php e($array['ico_name']);?> <?php e($array['val'] == "on" ? "" : $array['val']); ?>
                    </li>
                <?php } ?>
            </ul>
        </div>
         
        <?php } if(!empty($arrayCondominio)){ ?>
        <div class="list-detalhes-condominio d-none">
            <ul class="list-group list-group-flush">
                <?php foreach ($arrayCondominio as $array) { ?>
                    <li class="list-group-item"><?php e($array['ico_name']);?></li>
                <?php } ?>
            </ul>
        </div>
        <?php } ?>
      </div>
    </div>
  </div>
</div>