<?php if($page == 1) { ?>
<div class="loader-page"></div>
<div class="show-page homeTransition">
<?php } ?>
    <div class="container-page-home">
        <div class="container-slider">
            <div class="row m-0">
                <div class="col-lg-12 p-0">
                    <ul class="cb-slideshow">
                        <?php for($i=0;$i<6;$i++){ ?>
                        <li><span></span></li>
                        <?php } ?>
                    </ul>
                </div>
            </div>
        </div>
        <div class="container-sidebar-home">
            <div class="row m-0 h-100">
                <div class="col-lg-12 p-0 bg-white">
                    <div class="h-header">
                        <?php if(!($logado)){?>
                        <nav class="navbar navbar-expand-lg navbar-light">
                            <button class="navbar-toggler ml-auto" type="button" data-toggle="collapse" data-target="#navbar-home" aria-controls="navbar-home">
                                <span class="navbar-toggler-icon"></span>
                            </button>
                            <div class="collapse navbar-collapse" id="navbar-home">
                                <ul class="navbar-nav m-auto">
                                    <li class="nav-item <?php e(($page == 1) ? "active" : ""); ?>">
                                        <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 <?php e(($page == 3) ? "active" : ""); ?>">
                                        <a class="nav-link" href="<?php e(base_url("cadastro")); ?>">Cadastre-se</a>
                                    </li>
                                    <li class="nav-item <?php e(($page == 2) ? "active" : ""); ?>">
                                        <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">
                            <button class="navbar-toggler ml-auto" type="button" data-toggle="collapse" data-target="#navbar-home" aria-controls="navbar-home">
                                <span class="navbar-toggler-icon"></span>
                            </button>
                            <div class="collapse navbar-collapse" id="navbar-home">
                                <div class="f-left w-100">
                                    <div class="f-left w-50">
                                        <ul class="navbar-nav f-left">
                                            <li class="nav-item active">
                                                <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>
                                        </ul>
                                    </div>
                                    <div class="f-right w-50">
                                        <ul class="navbar-nav f-right">
                                            <li class="nav-item dropdown m-0">
                                                <?php $notification=0;?>
                                                <a href="javascript:;" class="nav-link notifications" id="notifications" data-toggle="<?php e($notification==1 ? "dropdown":""); ?>">
                                                    <?php if($notification==0){?>
                                                    <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>
                                                    <?php } else { ?>
                                                    <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">6</div>
                                                </a>
                                                <?php } ?>
                                                <div class="dropdown-menu dropdown-menu-right dropdown-menu-lg" aria-labelledby="notifications">
                                                    <?php for($i=1;$i<4;$i++) {?>
                                                    <a class="dropdown-item" href="<?php e(base_url("cadastro/imovel")); ?>">
                                                        <div class="text f-left mr-5">Loren ipsum</div><div class="box f-left"><?php e($i); ?></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($notification==1){?>
                                                        <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>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </nav>
                        <?php }?>
                    </div>
                    <div class="h-body no-container-frame-page-home">
                        <div class="v-align">
                            <?php e($view); ?>
                        </div>
                    </div>
                    <div class="h-footer">
                        <div class="row m-0">
                            <div class="col-lg-12 copyright">
                                <!--<a href="tel:+5561985756712" target="_blank">
                                    <i class="fa fa-phone"></i> Suporte - fone: 61 3333-3333 |
                                </a>-->
                                <a href="#" target="_blank">
                                    <i class="fa fa-phone"></i> Suporte - fone: 61 3333-3333 |
                                </a>
                                <!--<a href="https://api.whatsapp.com/send?phone=5561985756712&amp;text=Olá, gostaria de saber mais informações sobre www.comdono.com" target="_blank">
                                    <i class="fa fa-whatsapp"></i> Whatsapp | </a>-->
                                <a href="#" target="_blank"><i class="fa fa-whatsapp"></i> Whatsapp | </a>
                                <a href="<?php e(base_url("faq"));?>">FAQ</a>
                            </div>
                        </div>
                    </div>
                    <div class="alert alert-danger alert-dismissible fade show">
                        <button type="button" class="close" data-dismiss="alert">&times;</button>
                        <strong>Versão beta!</strong> Navegue, use e nos ajude a melhorar.
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php if($page == 1) { ?>
</div>
<?php } ?>