<div class="card">
    <h5 class="card-header">Leads que enviaram mensagem no Wimóveis</h5>
    <div class="card-body" >
        <div class="row">
            <div class="col-lg-12">
                <div id="accordion" role="tablist">
                    <?php $i = 1; foreach($leads as $l){ ?>
                    <div class="card card-accent-info">
                        <div class="card-header" id="heading-<?php e($i); ?>" role="tab">
                            <h5 class="mb-0">
                            <a data-toggle="collapse" href="#collapse-<?php e($i); ?>" aria-expanded="true" aria-controls="collapse-<?php e($i); ?>" class="collapsed">
                                <?php e($l['nome']); ?>
                            </a>
                            </h5>
                        </div>
                        <div class="collapse" id="collapse-<?php e($i); ?>" role="tabpanel" aria-labelledby="heading-<?php e($i); ?>" data-parent="#accordion" style="">
                            <div class="card-body">
                                <div class="row">
                                    <div class="col-lg-12">
                                        <div class="form-group">
                                            <img src="<?php e($l['imovel_interesse']['imagen']['urlImagenPortal'])?>" style="height: 200px; width: 100%; object-fit: cover;" alt="...">
                                        </div>
                                        <div class="form-group">
                                            <label class="control-label">Telefone</label>
                                            <input type="text" name="atendente" value="<?php e($l['telefone']); ?>" class="form-control" readonly="readonly">
                                        </div>
                                        <div class="form-group">
                                            <label class="control-label">E-mail</label>
                                            <input type="text" name="atendente" value="<?php e($l['email']); ?>" class="form-control" readonly="readonly">
                                        </div>
                                        <div class="form-group">
                                            <label class="control-label">Mensagem</label>
                                            <textarea name="observacao" class="form-control" rows="3" readonly="readonly"><?php e($l['mensagem']); ?></textarea>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <?php $i++; } ?>
                </div>
            </div>
        </div>
    </div>
</div>