<?php if(($menu_home??true)){ ?><!--header false homepage-->
<header class="bg-theme divTransition">
    <div class="row">
        <div class="container-logo col col-md-3 col-lg-3">
            <a href="<?php e(base_url());?>">
                <img src="<?php e(base_url('assets/img/comdono/logo-menu.png'))?>" class="img-fluid">
            </a>
        </div>
        
        <?php if($menu_cad_imovel??true){ ?>
        <div class="col-lg-4 d-none-991">
            <div class="container-form-topo">
                <form id="formPesquisa" action="<?php e(base_url('busca')); ?>" method="post" class="needs-validation formPesquisa" novalidate="">
                    <div class="icon-input"><i class="material-icons">search</i></div>
                    <div class="box-input">
                        <input type="text" class="form-control act-busca inputPesquisa" name="pesquisa" placeholder="Onde?" />
                    </div>
                </form>
            </div>
        </div>
        
        <div class="col col-lg-5 content-dados-perfil">
            <?php if(!($logado)){?>
            <nav class="navbar navbar-expand-lg navbar-light f-right">
                <button class="navbar-toggler ml-auto" type="button" data-toggle="collapse" data-target="#navbar-header" aria-controls="navbar-header">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <div class="collapse navbar-collapse" id="navbar-header">
                    <ul class="navbar-nav">
                        <li class="nav-item">
                            <a class="nav-link" href="<?php e(base_url()); ?>">Home</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="<?php e(base_url("busca/lancamentos"));?>">Lançamentos</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="<?php e(base_url('cadastro'));?>">Cadastre-se</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="<?php e(base_url('login'));?>">Entrar</a>
                        </li>
                    </ul>
                </div>
            </nav>
            <?php }else{ ?>
            <nav class="navbar navbar-expand-lg navbar-light f-right">
                <button class="navbar-toggler ml-auto" type="button" data-toggle="collapse" data-target="#navbar-header" aria-controls="navbar-header">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <div class="collapse navbar-collapse" id="navbar-header">
                    <ul class="navbar-nav">
                        <li class="nav-item">
                            <a class="nav-link" href="<?php e(base_url()); ?>">Home</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="<?php e(base_url("busca/lancamentos")); ?>">Lançamentos</a>
                        </li>
                        <li class="nav-item dropdown d-none-991">
                            <a href="javascript:;" class="nav-link notifications" id="notifications" data-toggle="dropdown" >
                                <div class="divSemNotificacao <?php e(empty($notficacoes) ?'':'d-none')?>">
                                    <div class="alert-header">
                                        <i class="material-icons">
                                           <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path xmlns="http://www.w3.org/2000/svg" d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z"/>
                                           </svg>
                                        </i>
                                    </div>
                                </div>
                                <div class="divComNotificacao <?php e(empty($notficacoes) ?'d-none':'')?>  ">
                                    <div class="alert-header active">
                                        <i class="material-icons">
                                            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6zM7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42z"/>
                                            </svg>
                                        </i>
                                    </div>
                                    <div class="box contNotificatacao"><?php e(count($notficacoes))?></div>
                                </div>
                            </a>
                            <div class="dropdown-menu dropdown-menu-right dropdown-menu-lg divNotifications" aria-labelledby="notifications">
                                <?php foreach ($notficacoes as $not){ ?>
                                
                                    <a class="dropdown-item" href="<?php e(base_url($not->href)); ?>">
                                        <div class="text f-left mr-5"><?php e($not->text); ?></div>
                                        <div class="box f-left">
                                            <span class="<?php e($not->class_spam_cont); ?>"><?php e($not->cont); ?></span>
                                        </div>
                                    </a>
                                <?php } ?>
                                    
                            </div>
                        </li>
                        <li class="nav-item dropdown d-none-991">
                            <a class="nav-link dropdown-toggle" href="javascript:;" id="user-actions" data-toggle="dropdown">
                                <div class="box-img f-left">
                                    <img src="<?php e($urlImgPerfil); ?>" class="rounded-circle perfil" alt="Perfil" >
                                </div>
                                <div class="box-name f-left">
                                    <?php e($first_name); ?>
                                </div>
                            </a>
                            <div class="dropdown-menu dropdown-menu-right dropdown-menu-lg mr-16-negative" aria-labelledby="user-actions">
                                <a class="dropdown-item" href="<?php e(base_url("cadastro/imovel")); ?>">
                                    <div class="text f-left"><?php e(empty($imovel_incompleto) ? "Anunciar imóvel" : "Finalizar anúncio")?></div>
                                </a>
                                <a class="dropdown-item" href="<?php e(base_url("minha-conta")); ?>">
                                    <div class="text f-left mr-5">Minha conta</div>
                                    <?php if(1==0){?>
                                    <div class="box f-left">99999</div>
                                    <?php } ?>
                                </a>
                                <a class="dropdown-item bg-blue" href="<?php e(base_url('logout'));?>">Sair</a>
                            </div>
                        </li>
                        <li class="d-block-991">
                            <ul class="navbar-nav">
                                <div class="container-mobile-dados-perfil">
                                    <li class="nav-item dropdown">
                                        <a href="javascript:;" class="nav-link notifications" id="notifications" data-toggle="dropdown" >
                                            <div class="divSemNotificacao <?php e(empty($notficacoes) ?'':'d-none')?>">
                                                <div class="alert-header">
                                                    <i class="material-icons">
                                                       <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path xmlns="http://www.w3.org/2000/svg" d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z"/>
                                                       </svg>
                                                    </i>
                                                </div>
                                            </div>
                                            <div class="divComNotificacao <?php e(empty($notficacoes) ?'d-none':'')?>  ">
                                                <div class="alert-header active">
                                                    <i class="material-icons">
                                                        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6zM7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42z"/>
                                                        </svg>
                                                    </i>
                                                </div>
                                                <div class="box contNotificatacao"><?php e(count($notficacoes))?></div>
                                            </div>
                                        </a>
                                        <div class="dropdown-menu dropdown-menu-right dropdown-menu-lg divNotifications" aria-labelledby="notifications">
                                            <?php foreach ($notficacoes as $not){ ?>
                                            
                                                <a class="dropdown-item" href="<?php e(base_url($not->href)); ?>">
                                                    <div class="text f-left mr-5"><?php e($not->text); ?></div>
                                                    <div class="box f-left">
                                                        <span class="<?php e($not->class_spam_cont); ?>"><?php e($not->cont); ?></span>
                                                    </div>
                                                </a>
                                            <?php } ?>
                                                
                                        </div>
                                    </li>
                                    <li class="nav-item dropdown">
                                        <a class="nav-link dropdown-toggle" href="javascript:;" id="user-actions" data-toggle="dropdown">
                                            <div class="box-img f-left">
                                                <img src="<?php e($urlImgPerfil); ?>" class="rounded-circle perfil" alt="Perfil" >
                                            </div>
                                            <div class="box-name f-left">
                                                <?php e($first_name); ?>
                                            </div>
                                        </a>
                                        <div class="dropdown-menu dropdown-menu-right dropdown-menu-lg mr-16-negative" aria-labelledby="user-actions">
                                            <a class="dropdown-item" href="<?php e(base_url("cadastro/imovel")); ?>">
                                                <div class="text f-left"><?php e(empty($imovel_incompleto) ? "Anunciar imóvel" : "Finalizar anúncio")?></div>
                                            </a>
                                            <a class="dropdown-item" href="<?php e(base_url("minha-conta")); ?>">
                                                <div class="text f-left mr-5">Minha conta</div>
                                                <?php if(1==0){?>
                                                <div class="box f-left">99999</div>
                                                <?php } ?>
                                            </a>
                                            <a class="dropdown-item bg-blue" href="<?php e(base_url('logout'));?>">Sair</a>
                                        </div>
                                    </li>
                                </div>
                            </ul>
                        </li>
                    </ul>
                </div>
            </nav>
            <?php }?>
        </div>
        <?php } else { ?>
        <div class="container-logo col col-md-3">
            <a href="<?php e(base_url());?>">
                <img src="<?php e(base_url('assets/img/comdono/logo-menu.png'))?>" class="img-fluid">
            </a>
        </div>
        <div class="col col-md-8">
            <div id="select-etapa" class="form-group content-select-header">
                <!-- select sendo gerado no cadastro_imovel.js -->
            </div>
        </div>
        <div class="col col-md-1 p-0 content-btn-header text-center">
            <!--<button type="button" class="btn btn-danger btn_salvar">Salvar e sair</button>-->
            <a class="link-danger btn_salvar">Salvar e sair</a>
        </div>
        
        <?php } ?>
    </div>
</header>
<?php } ?>
<main role="main" class="container-fluid">
<input id="selectBusca" type="hidden" data-selectBusca='<?php e($select_busca??'[]'); ?>' name="selectBusca"/>
<div class="notifyAct"></div>