<div class="container-menu sticky-top">
    <div class="container-header-sidebar-left">
        <div class="content-title">
            <h2>Minha Conta</h2>
        </div>
        <div class="content-dados">Olá, <?php e($first_name); ?></div>
        
        <div class="<?php e($cadastro_user->comprador == 1 || $cadastro_user->vendedor == 1  ? "":"d-none"); ?>">
            <div class="row">
                <div class="col-lg-12 content-btn">
                    <a href="<?php e(base_url('cadastro/imovel')); ?>" class="btn btn-primary"><?php e(empty($imovel_incompleto) ? "Anunciar imóvel" : "Concluir anúncio")?></a>
                </div>
            </div>
        </div>
        
    </div>
    <div class="container-body-sidebar-left">
        <div class="accordion" id="accordionExample">
            <div class="list-group panel">
                
                <?php if($this->session->userdata['perfil'] == 1 || $this->session->userdata['perfil'] == 2){ ?>
                
                
                <div class="collapse show card">
                    <a href="#minhas-vendas" class="list-group-item <?php e(((isset($item_resumo_incorporadora)) && $item_resumo_incorporadora === TRUE) ? "active" : "collapsed"); ?>" data-toggle="collapse" aria-expanded="<?php e(((isset($item_resumo_incorporadora)) && $item_resumo_incorporadora === TRUE) ? "true" : "false"); ?>" data-target="#incorporadora" aria-controls="#incorporadora">
                        <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="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/>
                            </svg>
                        </i> 
                        <span>Incorporadora</span> 
                    </a>
                    <div class="collapse <?php e(((isset($item_equipe)) && $item_equipe === TRUE) ? "show" : ""); ?>" id="incorporadora" data-parent="#accordionExample">
                        <a href="<?php e(base_url('minha_conta/painel'))?>" class="list-group-item <?php e(((isset($item_resumo_incorporadora)) && $item_resumo_incorporadora === TRUE) ? "active" : ""); ?>">Resumo</a>
                        <a href="<?php e(base_url('minha_conta/painel/equipe'))?>" class="list-group-item <?php e(((isset($item_equipe)) && $item_equipe === TRUE) ? "active" : ""); ?>">Equipe</a>
                    </div>
                </div>
                
                <!--<a href="<?php e(base_url('minha_conta/painel'))?>" class="list-group-item pt-0 <?php e(((isset($item_resumo_incorporadora)) && $item_resumo_incorporadora === TRUE) ? "active" : ""); ?>" data-parent="#sidebar">
                    <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="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/>
                        </svg>
                    </i> 
                    <span>Incorporadora</span> 
                </a>-->
                
                <?php } ?>
                
                <a href="<?php e(base_url('minha-conta'))?>" class="list-group-item pt-0 <?php e(((isset($item_resumo)) && $item_resumo === TRUE) ? "active" : ""); ?>" data-parent="#sidebar">
                    <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="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/>
                        </svg>
                    </i> 
                    <span>Resumo</span> 
                </a>
                
                <?php if($cadastro_user->incorporadora == 0){ ?>
                
                <?php if($cadastro_user->vendedor == 1){ ?>
                <div class="collapse show card">
                    <a href="#minhas-vendas" class="list-group-item <?php e(((isset($item_mv)) && $item_mv === TRUE) ? "active" : "collapsed"); ?>" data-toggle="collapse" aria-expanded="<?php e(((isset($item_mv)) && $item_mv === TRUE) ? "true" : "false"); ?>" data-target="#minhas-vendas" aria-controls="#minhas-vendas">
                        <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="M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4V6h16v12z"/>
                            </svg>
                        </i>
                        <span>Minhas vendas</span> 
                    </a>
                    <div class="collapse <?php e(((isset($item_mv)) && $item_mv === TRUE) ? "show" : ""); ?>" id="minhas-vendas" data-parent="#accordionExample">
                        <a href="<?php e(base_url('minha-conta/minhas-vendas/anuncios'))?>" class="list-group-item <?php e(((isset($item_mv_anuncios)) && $item_mv_anuncios === TRUE) ? "active" : ""); ?>">Anúncios</a>
                        <a href="<?php e(base_url('minha-conta/minhas-vendas/negociacoes'))?>" class="list-group-item <?php e(((isset($item_mv_negociacoes)) && $item_mv_negociacoes === TRUE) ? "active" : ""); ?>">Negociações</a>
                    </div>
                </div>
                <?php } if(($cadastro_user->comprador == 1) || ($cadastro_user->vendedor == 1)){ ?>
                <div class="collapse show card">
                    <a href="#minhas-compras" class="list-group-item <?php e(((isset($item_mc)) && $item_mc === TRUE) ? "active" : "collapsed"); ?>" data-toggle="collapse" aria-expanded="<?php e(((isset($item_mc)) && $item_mc === TRUE) ? "true" : "false"); ?>" data-target="#minhas-compras" aria-controls="#minhas-compras">
                        <i class="material-icons svg-compras">
                            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
                                <path fill="none" d="M0 0h24v24H0V0z"></path><path d="M12 5.69l5 4.5V18h-2v-6H9v6H7v-7.81l5-4.5M12 3L2 12h3v8h6v-6h2v6h6v-8h3L12 3z"></path>
                            </svg>
                        </i>
                        <span>Minhas compras</span> 
                    </a>
                    <div class="collapse <?php e(((isset($item_mc)) && $item_mc === TRUE) ? "show" : ""); ?>" id="minhas-compras" data-parent="#accordionExample">
                        <a href="<?php e(base_url('minha-conta/minhas-compras/negociacoes'))?>" class="list-group-item <?php e(((isset($item_mc_negociacoes)) && $item_mc_negociacoes === TRUE) ? "active" : ""); ?>">Negociações</a>
                        <a href="<?php e(base_url('minha-conta/minhas-compras/financiamento'))?>" class="list-group-item <?php e(((isset($item_mc_financiamento)) && $item_mc_financiamento === TRUE) ? "active" : ""); ?>">Financiamento</a>
                    </div>
                </div>
                <?php } ?>
                
                <a href="<?php e(base_url('minha-conta/favoritos'))?>" class="list-group-item <?php e(((isset($item_favoritos)) && $item_favoritos === TRUE) ? "active" : ""); ?>" data-parent="#sidebar">
                    <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="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"/>
                        </svg>
                    </i>
                    <span>Favoritos</span> 
                </a>
                
                <?php if($cadastro_user->vendedor == 1){ ?>
                <a href="<?php e(base_url('minha-conta/dinheiro-na-mao'))?>" class="list-group-item <?php e(((isset($item_dinheiro_na_mao)) && $item_dinheiro_na_mao === TRUE) ? "active" : ""); ?>" data-parent="#sidebar">
                    <i class="material-icons svg-hipoteca">
                        <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="M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4V6h16v12z"/>
                        </svg>
                    </i>
                    <span>Dinheiro na mão</span> 
                </a>
                <?php } ?>
                <?php if($cadastro_user->vendedor == 3){ ?>
                <a href="<?php e(base_url('minha-conta/braco-direito'))?>" class="list-group-item <?php e(((isset($item_braco_direito)) && $item_braco_direito === TRUE) ? "active" : ""); ?>" data-parent="#sidebar">
                    <i class="material-icons svg-braco-direito">
                        <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="M9 13.75c-2.34 0-7 1.17-7 3.5V19h14v-1.75c0-2.33-4.66-3.5-7-3.5zM4.34 17c.84-.58 2.87-1.25 4.66-1.25s3.82.67 4.66 1.25H4.34zM9 12c1.93 0 3.5-1.57 3.5-3.5S10.93 5 9 5 5.5 6.57 5.5 8.5 7.07 12 9 12zm0-5c.83 0 1.5.67 1.5 1.5S9.83 10 9 10s-1.5-.67-1.5-1.5S8.17 7 9 7zm7.04 6.81c1.16.84 1.96 1.96 1.96 3.44V19h4v-1.75c0-2.02-3.5-3.17-5.96-3.44zM15 12c1.93 0 3.5-1.57 3.5-3.5S16.93 5 15 5c-.54 0-1.04.13-1.5.35.63.89 1 1.98 1 3.15s-.37 2.26-1 3.15c.46.22.96.35 1.5.35z"/>
                        </svg>
                    </i>
                    <span>Braço direito</span> 
                </a>
                <?php } ?>
                <a href="<?php e(base_url('minha-conta/meus-dados'))?>" class="list-group-item <?php e(((isset($item_md)) && $item_md === TRUE) ? "active" : ""); ?>" data-parent="#sidebar">
                    <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 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"/>
                        </svg>
                    </i>
                    <span>Meus dados</span>
                </a>
                
                <?php }?>
            </div>
        
        </div>
    </div>
</div>