<div class="box-item">
    <div class="d-none-767">
    <div class="row m-0">
        
    <?php $linkRedict = $imovel->lancamento == 'Sim'?base_url('lancamento/'.$imovel->id_imovel):base_url('imovel/'.$imovel->id_imovel); ?>   
    <?php $title = $imovel->lancamento == 'Sim'?$imovel->dn_nome_nomefantasia:$imovel->bairro; ?>
        <!--desktop-->
        <div class="col-md-7 col-lg-7 p-0">
            <div class="title">
                <?php if(($imovel->tipo_empreendimento??'') == "lancamento"){ ?>
                    <span class="cta-lancamento">Lançamento</span>
                <?php } ?>
                <a href="<?php e($linkRedict)?>" target=”_blank”>
                    
                    <?php 
                        
                        if($title == 'Guará II') 
                            e('Guará II');
                        elseif($title == 'Damha II') 
                            e('Damha II');
                        else
                            e(ucwords(strtolower($title)));
                    ?>
                    
                </a>
            </div>
            
            <?php if($title == 'Damha II'){ ?>
            <div class="sub-title">Setor habitacional Tororó<br><span>Saída Sul</span></div>
            <?php }else { ?>
            <div class="sub-title"><?php e($imovel->endereco) ?><br/><span><?php e(!empty($imovel->cidade)?$imovel->cidade."-":"") ?><?php e($imovel->estado) ?></span></div>
            <?php } ?>
            
            <div class="valor"><?php if($imovel->val_pretendido !== ""){ HValorPretendido::exibe($imovel->val_pretendido); } ?></div>
            <div class="descricao">
                <div class="tipo"><?php e($imovel->tipo_imovel); ?></div>
                <?php e(!empty($imovel->area_privativa && $imovel->area_privativa !== "0.00")?$imovel->area_privativa:$imovel->area_total); ?> m²<?php e(($imovel->quartos >= 1 ) ? " <span>|</span> ".$imovel->quartos." Quarto(s)" : ""); ?>
                <?php e(($imovel->suites >= 1 ) ? " <span>|</span> ".$imovel->suites." Suite(s)" : ""); ?>
            </div>
        </div>
        <div class="col-md-5 col-lg-5 p-0 container-img">
            <?php if($logado == true){ ?>
            <?php if($box_item_first ==1 && $ppFavorito == '0'){ ?>
                    <div class="popup-info-favoritos">
                        Salve este imóvel<br/>
                        na sua lista de favoritos e veja-o sempre que quiser.<br/>
                        <span class="act_entendi">Ok, entendi!</span>
                        <div class="arrow-right-popup"></div>
                    </div>
                <?php } ?>
            <div class="box-favoritos actFavoritos core_<?php e($imovel->id_imovel); ?> <?php e(isset($favoritos[$imovel->id_imovel]) ? 'btn_descurtir color_red' : 'btn_curtir color_grey'); ?>" title="<?php e(isset($favoritos[$imovel->id_imovel]) ? 'Remover dos favoritos' : 'Adicionar como favorito'); ?>" data-id="<?php e($imovel->id_imovel); ?>">
                <i class="fa fa-heart" aria-hidden="true"></i>
            </div>
            <?php }else{ ?>
            <div class="box-favoritos color_grey openLogin" title="">
                <i class="fa fa-heart" aria-hidden="true"></i>
            </div>
            <?php } ?>
            <?php if(($imovel->tipo_empreendimento??'') == "lancamento"){ ?>
                <a href="<?php e($linkRedict)?>" target=”_blank” >
                <div class="box-flag">
                    <img src="<?php e(base_url('assets/img/comdono/icons/ico-flag-lancamento.png')); ?>" alt="Lançamento">
                </div>
                </a>
            <?php } ?>
            <?php if(!empty($imovel->imagens) ){ ?>
                <div class="content-img box-img loading-img border-img"><i class="fa fa-circle-o-notch fa-spin fa-3x fa-fw"></i></div>
                <div class="show-imgs">
                    <div class="owl-carousel-images owl-carousel owl-theme">
                        <?php foreach (array_slice($imovel->imagens, 0, 3)  as $img): ?>
                            <a href="<?php e($linkRedict)?>" target=”_blank” >
                                <div class="content-img box-img" style="background-image: url('<?php HImg::thumb($img); ?>');"></div>
                            </a>
                        <?php endforeach;  ?>
                    </div>
                </div> 
            <?php }else{ ?>
            <a href="<?php e($linkRedict)?>" target=”_blank” >
                <div class="no-image border-img">
                    <img src="<?php e(base_url('themes/comdono/img/no-image.png')); ?>" class="img-fluid" alt="Não há imagens">
                </div>
            </a>
            <?php }?>
        </div>
    </div>
    </div>
    <div class="d-block-767">
    <div class="row m-0">
        <!--responsive-->
        <div class="col-6 p-0">
            <div class="title">
                <?php if(($imovel->tipo_empreendimento??'') == "lancamento"){ ?>
                    <span class="cta-lancamento">Lançamento</span>
                <?php } ?>
                <a href="<?php e($linkRedict)?>" target=”_blank”>
                    
                    <?php 
                        if($title == 'Guará II') 
                            e('Guará II');
                        elseif($title == 'Damha II') 
                            e('Damha II');
                        else
                            e(ucwords(strtolower($title)));
                    ?>
                </a>
            </div>
            
            <?php if($title == 'Damha II'){ ?>
            <div class="sub-title">Setor habitacional Tororó<br><span>Saída Sul</span></div>
            <?php }else { ?>
            <div class="sub-title"><?php e($imovel->endereco) ?><br/><span><?php e(!empty($imovel->cidade)?$imovel->cidade."-":"") ?><?php e($imovel->estado) ?></span></div>
            <?php } ?>
            
            <div class="valor"><?php if($imovel->val_pretendido !== ""){HValorPretendido::exibe($imovel->val_pretendido);}?></div>
            <div class="descricao">
                <div class="tipo"><?php e($imovel->tipo_imovel); ?></div>
                <?php e(!empty($imovel->area_privativa && $imovel->area_privativa !== "0.00")?$imovel->area_privativa:$imovel->area_total); ?> m²<?php e(($imovel->quartos >= 1 ) ? " <span>|</span> ".$imovel->quartos." Quarto(s)" : ""); ?>
                <?php e(($imovel->suites >= 1 ) ? " <span>|</span> ".$imovel->suites." Suite(s)" : ""); ?>
            </div>
        </div>
        <div class="col-6 pr-0 container-img">
            <?php if($logado == true){ ?>
            
                <?php if($box_item_first ==1 && $ppFavorito == '0'){ ?>
                    <div class="popup-info-favoritos">
                        Salve este imóvel<br/>
                        na sua lista de favoritos e veja-o sempre que quiser.<br/>
                        <span class="act_entendi">Ok, entendi!</span>
                        <div class="arrow-right-popup"></div>
                    </div>
                <?php } ?>
            
            <div class="box-favoritos actFavoritos core_<?php e($imovel->id_imovel); ?> <?php e(isset($favoritos[$imovel->id_imovel]) ? 'btn_descurtir color_red' : 'btn_curtir color_grey'); ?>" title="<?php e(isset($favoritos[$imovel->id_imovel]) ? 'Remover dos favoritos' : 'Adicionar como favorito'); ?>" data-id="<?php e($imovel->id_imovel); ?>">
                <i class="fa fa-heart" aria-hidden="true"></i>
            </div>
            <?php }else{ ?>
            <div class="box-favoritos color_grey openLogin" title="">
                <i class="fa fa-heart" aria-hidden="true"></i>
            </div>
            <?php } ?>
            <?php if(($imovel->tipo_empreendimento??'') == "lancamento"){ ?>
                <a href="<?php e($linkRedict)?>" target=”_blank” >
                <div class="box-flag">
                    <img src="<?php e(base_url('assets/img/comdono/icons/ico-flag-lancamento.png')); ?>" alt="Lançamento">
                </div>
                </a>
            <?php } ?>
            <?php if(!empty($imovel->imagens) ){ ?>
                <div class="content-img box-img loading-img border-img"><i class="fa fa-circle-o-notch fa-spin fa-3x fa-fw"></i></div>
                <div class="show-imgs">
                    <div class="owl-carousel-images owl-carousel owl-theme">
                        <?php foreach (array_slice($imovel->imagens, 0, 3)  as $img): ?>
                            <a href="<?php e($linkRedict)?>" target=”_blank” >
                                <div class="content-img box-img" style="background-image: url('<?php HImg::thumb($img); ?>');"></div>
                            </a>
                        <?php endforeach;  ?>
                    </div>
                </div> 
            <?php }else{ ?>
            <a href="<?php e($linkRedict)?>" target=”_blank” >
                <div class="no-image border-img">
                    <img src="<?php e(base_url('themes/comdono/img/no-image.png')); ?>" class="img-fluid" alt="Não há imagens">
                </div>
            </a>
            <?php } ?>
        </div>
    </div>
    </div>
</div>
<hr>