<!--Landingpage-->
<div class="tab-pane fade" id="cores" role="tabpanel" aria-labelledby="cores-tab">
    <form action="" class="formAtualizaConfigLp">
    <div class="card">
        <div class="card-header">Definição de cores</div>
        <div class="card-body">
            <div class="row">
                <div class="col-lg-6">
                    <div class="form-group m-0">
                        <label for="cores">Usar cor padrão:</label>
                    </div>
                    <div class="form-group">
                        <label for="primeira_cor">Cor padrão</label>
                        <div class="input-group colorpk colorpicker-component w-50">
                            <input type="text" name="primeira_cor" class="form-control colorpk-val" id="primeira_cor" value="<?php e($lpConfig->primeira_cor == "" ?"#2196f3":$lpConfig->primeira_cor); ?>">
                            <div class="input-group-append"><span class="input-group-text input-group-addon"><i class="fa fa-eyedropper"></i></span></div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="segunda_cor">Cor secundária</label>
                        <div class="input-group colorpk colorpicker-component w-50">
                            <input type="text" name="segunda_cor" class="form-control colorpk-val" id="segunda_cor" value="<?php e($lpConfig->segunda_cor); ?>">
                            <div class="input-group-append"><span class="input-group-text input-group-addon"><i class="fa fa-eyedropper"></i></span></div>
                        </div>
                    </div>
                    <div class="msgAtualizaConfigLp"></div>
                    <div class="form-group text-right mt-4 mb-0">
                        <button type="button" class="btn btn-success btn-sm btnAtualizaConfigLp"><i class="fa fa-check"></i> Salvar</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </form>
</div>
<div class="tab-pane fade" id="infoTopo" role="tabpanel" aria-labelledby="infoTopo-tab">
    
    <div class="card">
        <div class="card-header">Informações do topo</div>
        <div class="card-body">
            
            <form action="" class="formAtualizaConfigLp">
                <div class="row d-flex justify-content-center">
                    <div class="col-lg-5">
                        <div class="form-group mt-2">
                            <h5>Configurações e posicionamento</h5>
                            <hr>
                        </div>
                        <div class="form-group">
                            <label for="bg_topo">background topo - Lado dos textos</label>
                            <div class="input-group colorpk colorpicker-component w-50">
                                <input type="text" name="bg_topo" class="form-control colorpk-val" id="bg_topo" value="<?php e($lpConfig->bg_topo); ?>">
                                <div class="input-group-append"><span class="input-group-text input-group-addon"><i class="fa fa-eyedropper"></i></span></div>
                            </div>
                        </div>
                        
                        <div class="form-group mb-0">
                            <label class="m-0">Background vídeo - Lado direito</label>
                            <p><small>Obs: O upload substituirá a imagem de capa</small></p>
                        </div>
                        <div class="row">
                            <div class="col-lg-12">
                                <?php $img_upload = $lpConfig->bg_topo_video; ?>
                                <?php $name_input = "bg_topo_video"; ?>
                                <div id="div_<?php e($name_input); ?>" class="form-group align-box-img mt-10">
                                    <div class="container_upl container_upl_img custom-file <?php e($img_upload != "" ? "" : "d-none"); ?>">
                                        <div class="box-doc div_img_background" <?php if ($img_upload != ""){ ?> style="background-image: url('<?php e($img_upload); ?>');" <?php } ?>></div>
                                        <div class="box-ico-text">
                                            <div class="text">
                                                <div class="txt">
                                                    <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                        </svg>
                                                    </i>
                                                    <div class="box-remover box-remover-logo">
                                                        <a href="javascript:;" class="btn_remover_upl">Remover video</a> 
                                                        <a href="javascript:;" class="btn_pergunta_remover_upl d-none">Remover video?</a> 
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div> 
                                    <div class="container_upl_load box-doc text-center d-none">
                                        <label><i class='fa fa-circle-o-notch fa-spin'></i></label>
                                    </div>
                                    <div class="container_upl container_upl_input custom-file <?php echo $img_upload != "" ? "d-none" : ""; ?>">
                                        <input type="file" name="<?php e($name_input); ?>" class="custom-file-input" id="<?php e($name_input); ?>" data-value="<?php echo $img_upload; ?>" >
                                        <label class="custom-file-label label-img-input" for="customFile">
                                            <div class="box-ico-text">
                                                <div class="ico">
                                                    <i class="material-icons">
                                                        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
                                                            <path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
                                                            <path d="M0 0h24v24H0z" fill="none"/>
                                                        </svg>
                                                    </i>
                                                </div>
                                                <div class="text">
                                                    <div class="txt">
                                                    <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                        </svg>
                                                    </i>
                                                    <span>Add vídeo</span>
                                                    </div>
                                                </div>
                                            </div>
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="form-group mb-0">
                            <label for="img_lp">Logo do topo</label>
                        </div>
                        <?php $lpConfig->img_lp = ($lpConfig->img_lp != "" ? $lpConfig->img_lp : $empreendimento->emp_logo); ?>
                        <div class="row">
                            <div class="col-lg-12">
                                <div id="div_img_lp" class="form-group align-box-img mt-10">
                                    <div class="container_upl container_upl_img custom-file <?php e($lpConfig->img_lp != "" ? "" : "d-none"); ?>">
                                        <div class="box-doc div_img_background" <?php if ($lpConfig->img_lp != ""){ ?> style="background-image: url('<?php e($lpConfig->img_lp); ?>');" <?php }else{ ?> style="background-image: url('<?php e($empreendimento->emp_logo); ?>');" <?php } ?>></div>
                                        <div class="box-ico-text">
                                            <div class="text">
                                                <div class="txt">
                                                    <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                        </svg>
                                                    </i>
                                                    
                                                    <div class="box-remover box-remover-logo">
                                                        <a href="javascript:;" class="btn_remover_upl">Remover img</a> 
                                                        <a href="javascript:;" class="btn_pergunta_remover_upl d-none">Remover img?</a> 
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div> 
                                    <div class="container_upl_load box-doc text-center d-none">
                                        <label><i class='fa fa-circle-o-notch fa-spin'></i></label>
                                    </div>
                                    <div class="container_upl container_upl_input custom-file  <?php echo $lpConfig->img_lp != "" ? "d-none" : ""; ?>">
                                        <input type="file" name="img_lp" class="custom-file-input" id="img_lp" data-value="<?php echo $lpConfig->img_lp; ?>" >
                                        <label class="custom-file-label label-img-input" for="customFile">
                                            <div class="box-ico-text">
                                                <div class="ico">
                                                    <i class="material-icons">
                                                        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
                                                            <path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
                                                            <path d="M0 0h24v24H0z" fill="none"/>
                                                        </svg>
                                                    </i>
                                                </div>
                                                <div class="text">
                                                    <div class="txt">
                                                    <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                        </svg>
                                                    </i>
                                                    <span>Adicionar img</span>
                                                    </div>
                                                </div>
                                            </div>
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        
                        
                        
                        <div class="form-group mb-0">
                            <label for="seo_img">Logo para versão mobile</label>
                        </div>
                        <div class="row">
                            <div class="col-lg-12">
                                <?php $img_upload = $lpConfig->img_mobile; ?>
                                <?php $name_input = "img_mobile"; ?>
                                <div id="div_<?php e($name_input); ?>" class="form-group align-box-img mt-10">
                                    <div class="container_upl container_upl_img custom-file <?php e($img_upload != "" ? "" : "d-none"); ?>">
                                        <div class="box-doc div_img_background" <?php if ($img_upload != ""){ ?> style="background-image: url('<?php e($img_upload); ?>');" <?php } ?>></div>
                                        <div class="box-ico-text">
                                            <div class="text">
                                                <div class="txt">
                                                    <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                        </svg>
                                                    </i>
                                                    
                                                    <div class="box-remover box-remover-logo">
                                                        <a href="javascript:;" class="btn_remover_upl">Remover img</a> 
                                                        <a href="javascript:;" class="btn_pergunta_remover_upl d-none">Remover img?</a> 
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div> 
                                    <div class="container_upl_load box-doc text-center d-none">
                                        <label><i class='fa fa-circle-o-notch fa-spin'></i></label>
                                    </div>
                                    <div class="container_upl container_upl_input custom-file  <?php echo $img_upload != "" ? "d-none" : ""; ?>">
                                        <input type="file" name="<?php e($name_input); ?>" class="custom-file-input" id="<?php e($name_input); ?>" data-value="<?php echo $img_upload; ?>" >
                                        <label class="custom-file-label label-img-input" for="customFile">
                                            <div class="box-ico-text">
                                                <div class="ico">
                                                    <i class="material-icons">
                                                        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
                                                            <path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
                                                            <path d="M0 0h24v24H0z" fill="none"/>
                                                        </svg>
                                                    </i>
                                                </div>
                                                <div class="text">
                                                    <div class="txt">
                                                    <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                        </svg>
                                                    </i>
                                                    <span>Adicionar img</span>
                                                    </div>
                                                </div>
                                            </div>
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="max_height_logo">Tamanho da logo (max-height) mín: 75 - máx: 150</label>
                            <input type="number" name="max_height_logo" class="form-control" id="max_height_logo" min="75" max="150" value="<?php e($lpConfig->max_height_logo==0?"150":$lpConfig->max_height_logo); ?>">
                        </div>
                        <div class="form-group mb-0">
                            <label for="bg_mobile">Opacidade background mobile [1-9] (default: 8)</label>
                            <input type="number" name="bg_mobile" class="form-control" id="bg_mobile" min="1" max="9" value="<?php e($lpConfig->bg_mobile==0?8:$lpConfig->bg_mobile); ?>">
                        </div>
                        <div class="form-group mt-4 mb-0">
                            <label for="btn_cta">Botão (Ver unidades)</label>
                        </div>
                        <div class="row">
                            <div class="col-lg-12">
                                <div class="col-form-label">
                                    <div class="form-check form-check-inline mr-1">
                                        <input type="radio" name="btn_unidade" class="form-check form-check-inline mr-1" id="btn_unidade_1" value="1" <?php e($lpConfig->btn_unidade <= 1?"checked":"") ?>>
                                        <label class="form-check-label" for="btn_unidade_1">Mostrar</label>
                                    </div>
                                    <div class="form-check form-check-inline mr-1">
                                        <input type="radio" name="btn_unidade" class="form-check form-check-inline mr-1" id="btn_unidade_2" value="2" <?php e($lpConfig->btn_unidade == 2?"checked":"") ?>>
                                        <label class="form-check-label" for="btn_unidade_2">Esconder</label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-lg-12">
                                <div class="form-group m-0">
                                    <label for="btn_unidade_option_txt">Escolha o texto do botão (Ver unidades)</label>
                                </div>
                                <div class="form-check form-check-inline mr-1">
                                    <input type="radio" name="btn_unidade_option_txt" class="form-check form-check-inline mr-1" id="btn_unidade_option_txt_1" value="0" <?php e($lpConfig->btn_unidade_option_txt == 0 ?"checked":"") ?> >
                                    <label class="form-check-label" for="btn_unidade_option_txt_1">Usar default (Conheça as unidades)</label>
                                </div>
                                <div class="form-check form-check-inline mr-1">
                                    <input type="radio" name="btn_unidade_option_txt" class="form-check form-check-inline mr-1" id="btn_unidade_option_txt_2" value="1" <?php e($lpConfig->btn_unidade_option_txt == 1 ?"checked":"") ?>>
                                    <label class="form-check-label" for="btn_unidade_option_txt_2">Outro</label>
                                </div>
                            </div>
                        </div>
                        <div class="form-group mt-2">
                            <label for="btn_unidade_txt">Texto do link</label>
                            <input type="text" name="btn_unidade_txt" class="form-control" id="btn_unidade_txt" value="<?php e($lpConfig->btn_unidade_txt); ?>">
                        </div>
                        <div class="form-group mt-4 mb-0">
                            <label for="btn_cta">Botão Premium (apenas mobile)</label>
                        </div>
                        <div class="row">
                            <div class="col-lg-12">
                                <div class="col-form-label">
                                    <div class="form-check form-check-inline mr-1">
                                        <input type="radio" name="btn_premium" class="form-check form-check-inline mr-1" id="btn_premium_1" value="1" <?php e($lpConfig->btn_premium == 1?"checked":"") ?>>
                                        <label class="form-check-label" for="btn_premium_1">Mostrar</label>
                                    </div>
                                    <div class="form-check form-check-inline mr-1">
                                        <input type="radio" name="btn_premium" class="form-check form-check-inline mr-1" id="btn_premium_2" value="2" <?php e($lpConfig->btn_premium == 0?"checked":"") ?>>
                                        <label class="form-check-label" for="btn_premium_2">Esconder</label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group mt-2">
                            <h5>Botões de ações do topo</h5>
                            <hr>
                        </div>
                        <div class="form-group">
                            <label for="tour_3d">Link tour 3D</label>
                            <input type="text" name="tour_3d" class="form-control" id="tour_3d" value="<?php e($lpConfig->tour_3d); ?>">
                        </div>
                        <div class="form-group">
                            <label for="video">Link vídeo</label>
                            <input type="text" name="video" class="form-control" id="video" value="<?php e($lpConfig->video); ?>">
                        </div>
                        <div class="form-group">
                            <label for="video">Galeria</label>
                            <p><small>Obs: O botão aparecerá no banner caso tenha galeria</small></p>
                        </div>
                    </div>
                    <div class="col-lg-6 offset-lg-1">
                        <div class="form-group mt-2">
                            <h5>Textos e chamadas</h5>
                            <hr>
                        </div>
                        <div class="form-group">
                            <label for="posicao_header">Alinhamento do textos e logo</label>
                            <select name="posicao_header" class="form-control" id="posicao_header">
                                <option value="center" <?php e($lpConfig->posicao_header == "center"?"selected":""); ?>>Centralizado (default)</option>
                                <option value="left" <?php e($lpConfig->posicao_header == "left"?"selected":""); ?>>À esquerda</option>
                            </select>
                        </div>
                        <div class="form-group">
                            <label for="titulo_apresentacao">Título apresentação - acima da logo</label>
                            <textarea name="titulo_apresentacao" class="form-control textminieditor" id="titulo_apresentacao" rows="3"><?php e($lpConfig->titulo_apresentacao); ?></textarea>
                        </div>
                        <div class="form-group">
                            <label for="titulo_h1">Título h1 - chamda abaixo da logo</label>
                            <textarea name="titulo_h1" class="form-control textminieditor" id="titulo_h1" rows="3"><?php e($lpConfig->titulo_h1); ?></textarea>
                        </div>
                        <div class="form-group">
                            <label for="h1_strong_color">Cor do strong h1</label>
                            <div class="input-group colorpk colorpicker-component w-50">
                                <input type="text" name="h1_strong_color" class="form-control colorpk-val" id="h1_strong_color" value="<?php e(empty($lpConfig->h1_strong_color)?$lpConfig->segunda_cor:$lpConfig->h1_strong_color); ?>">
                                <div class="input-group-append"><span class="input-group-text input-group-addon"><i class="fa fa-eyedropper"></i></span></div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="h1_strong_font_link">Link da fonte do strong h1</label>
                            <input type="text" name="h1_strong_font_link" class="form-control" id="h1_strong_font_link" value='<?php e($lpConfig->h1_strong_font_link); ?>'>
                        </div>
                        <div class="form-group">
                            <label for="h1_strong_font">Nome da fonte do strong h1</label>
                            <input type="text" name="h1_strong_font" class="form-control" id="h1_strong_font" value="<?php e($lpConfig->h1_strong_font); ?>">
                        </div>
                        <div class="form-group mt-4 mb-0">
                            <label for="hr_header">Linha de separação (hr)</label>
                        </div>
                        <div class="row">
                            <div class="col-lg-12">
                                <div class="col-form-label">
                                    <div class="form-check form-check-inline mr-1">
                                        <input type="radio" name="hr_header" class="form-check form-check-inline mr-1" id="hr_header_1" value="1" <?php e($lpConfig->hr_header <= 1?"checked":"") ?>>
                                        <label class="form-check-label" for="hr_header_1">Mostrar</label>
                                    </div>
                                    <div class="form-check form-check-inline mr-1">
                                        <input type="radio" name="hr_header" class="form-check form-check-inline mr-1" id="hr_header_2" value="2" <?php e($lpConfig->hr_header == 2?"checked":"") ?>>
                                        <label class="form-check-label" for="hr_header_2">Esconder</label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="hr_header_color">Cor da linha de separação (hr)</label>
                            <div class="input-group colorpk colorpicker-component w-50">
                                <input type="text" name="hr_header_color" class="form-control colorpk-val" id="hr_header_color" value="<?php e(empty($lpConfig->hr_header_color)?"#3D3C3C":$lpConfig->hr_header_color); ?>">
                                <div class="input-group-append"><span class="input-group-text input-group-addon"><i class="fa fa-eyedropper"></i></span></div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="titulo_h3">Título h3 - sub chamada </label>
                            <textarea name="titulo_h3" class="form-control textminieditor" id="titulo_h3" rows="3"><?php e($lpConfig->titulo_h3); ?></textarea>
                        </div>
                        <div class="form-group">
                            <label for="h3_strong_color">Cor do strong h3</label>
                            <div class="input-group colorpk colorpicker-component w-50">
                                <input type="text" name="h3_strong_color" class="form-control colorpk-val" id="h3_strong_color" value="<?php e($lpConfig->h3_strong_color); ?>">
                                <div class="input-group-append"><span class="input-group-text input-group-addon"><i class="fa fa-eyedropper"></i></span></div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="titulo_h4">Título h4 - características das unidades</label>
                            <textarea name="titulo_h4" class="form-control textminieditor" id="titulo_h4" rows="3"><?php e($lpConfig->titulo_h4); ?></textarea>
                        </div>
                    </div>
                    <div class="col-lg-6 offset-lg-6">
                        <div class="form-group text-right mt-4 mb-0">
                            <div class="msgAtualizaConfigLp"></div>
                            <button type="button" class="btn btn-success btn-sm btnAtualizaConfigLp"><i class="fa fa-check"></i> Salvar</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<div class="tab-pane fade" id="chamadaPromocional" role="tabpanel" aria-labelledby="chamadaPromocional-tab">
    
    <div class="card">
        <div class="card-header">Chamada promocional</div>
        <div class="card-body">
            
            <form action="" class="formAtualizaConfigLp">
                <div class="row">
                    <div class="col-lg-6">
                        <div class="form-group">
                            <label for="bg_cta">Cor de background</label>
                            <div class="input-group colorpk colorpicker-component w-50">
                                <input type="text" name="bg_cta" class="form-control colorpk-val" id="bg_cta" value="<?php e($lpConfig->bg_cta); ?>">
                                <div class="input-group-append"><span class="input-group-text input-group-addon"><i class="fa fa-eyedropper"></i></span></div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="cta_header">Chamada promocional</label>
                            <textarea name="cta_header" class="form-control textminieditor" id="cta_header" rows="3"><?php e($lpConfig->cta_header); ?></textarea>
                        </div>
                        <div class="row">
                            <div class="col-lg-12">
                                <div class="form-group m-0">
                                    <label for="cta_option_text">Escolha o texto do link</label>
                                </div>
                                <div class="form-check form-check-inline mr-1">
                                    <input type="radio" name="cta_option_text" class="form-check form-check-inline mr-1" id="cta_option_text_1" value="0" <?php e($lpConfig->cta_option_text == 0 ?"checked":"") ?> >
                                    <label class="form-check-label" for="cta_option_text_1">Usar default (Saiba mais)</label>
                                </div>
                                <div class="form-check form-check-inline mr-1">
                                    <input type="radio" name="cta_option_text" class="form-check form-check-inline mr-1" id="cta_option_text_2" value="1" <?php e($lpConfig->cta_option_text == 1 ?"checked":"") ?>>
                                    <label class="form-check-label" for="cta_option_text_2">Outro</label>
                                </div>
                            </div>
                        </div>
                        <div class="form-group mt-2">
                            <label for="cta_titulo_link">Texto do link</label>
                            <input type="text" name="cta_titulo_link" class="form-control" id="cta_titulo_link" value="<?php e($lpConfig->cta_titulo_link); ?>">
                        </div>
                        <div class="form-group text-right mt-4 mb-0">
                            <div class="msgAtualizaConfigLp"></div>
                            <button type="button" class="btn btn-success btn-sm btnAtualizaConfigLp"><i class="fa fa-check"></i> Salvar</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<div class="tab-pane fade" id="galeria" role="tabpanel" aria-labelledby="galeria-tab">
    <div class="card">
        <div class="card-header">Galeria</div>
        <div class="card-body">
            <div class="row">
            <div class="col-lg-12">
                <form action="" class="formAtualizaConfigLp">
                <div class="form-group mt-4 mb-0">
                    <label for="btn_cta">Tipo de descrição galeria</label>
                </div> 
                <div class="row">
                    <div class="col-lg-12">
                        <div class="col-form-label">
                            <div class="form-check form-check-inline mr-1">
                                <input type="radio" name="tipo_descricao_galeria" class="form-check form-check-inline mr-1" id="tipo_descricao_galeria_1" value="0" <?php e($lpConfig->tipo_descricao_galeria == 0?"checked":"") ?>>
                                <label class="form-check-label" for="tipo_descricao_galeria_1">Subcategoria</label>
                            </div>
                            <div class="form-check form-check-inline mr-1">
                                <input type="radio" name="tipo_descricao_galeria" class="form-check form-check-inline mr-1" id="tipo_descricao_galeria_2" value="1" <?php e($lpConfig->tipo_descricao_galeria == 1?"checked":"") ?>>
                                <label class="form-check-label" for="tipo_descricao_galeria_2">Legenda</label>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group mt-2 mb-4">
                    <button type="button" class="btn btn-success btn-sm btnAtualizaConfigLp"><i class="fa fa-check"></i> Salvar</button>
                </div>
                </form>
            </div>
            </div>
            
            <div class="row">
            <div class="col-lg-12">
                <div class="form-group box-galeria">
                    <!-- Redirect browsers with JavaScript disabled to the origin page -->
    				<noscript>
    					<input type="hidden" name="redirect" value="https://blueimp.github.io/jQuery-File-Upload/">
    				</noscript>
    				<div class="container-imagens">
    				    <div class="box-grid">
    				        <ul id="sortable" class="row files">
    				            <?php if(!empty($imagens)){?>
    				            <?php for($i=0; $i < count($imagens); $i++){ ?>
    				                <li class="sort-item" data-id="<?php e($imagens[$i]->id_img); ?>" data-name="<?php e($imagens[$i]->imagem); ?>">
    				                    <div class="box">
    				                        <div class="container-actions container-move icon icon-move d-none-767">
    				                            <i class="fa fa-arrows" aria-hidden="true"></i>
    				                        </div>
        				                    <div class="container-actions container-exluir icon act-click" data-id="<?php e($imagens[$i]->id_img); ?>">
        				                        <i class="fa fa-times" aria-hidden="true"></i>
        				                    </div>
        				                    <div class="container-actions container-exluir pergunta excluir_foto" data-pergunta="<?php e($imagens[$i]->id_img); ?>" data-url="<?php echo base_url('comdono/ajax/galeria_ajax/deletar?file='.$imagens[$i]->imagem); ?>">
        				                        Remover?
        				                    </div>
            				                <a href="<?php  HImg::ref($imagens[$i]); ?>" title="<?php e($imagens[$i]->imagem); ?>" download="<?php e($imagens[$i]->imagem); ?>" data-gallery="" class="previewLink" >
            				                    <div class="content-img grid" style="background-image: url('<?php HImg::ref($imagens[$i]); ?>');"></div>
    					            	    </a>
    				            	    </div>
    				            	    <div class="add-legenda">
    				            	        <input class="descricao_imagem" type="text" name="descricao" value="<?php e(@$imagens[$i]->descricao); ?>" data-imagem="<?php e($imagens[$i]->imagem); ?>" placeholder="Adicionar Legenda">
    				            	    </div>
    				                </li>
    				            <?php } } ?>
    				        </ul>
    				        <div class="btn-upload not-sortable">
    				            <div class="fileupload-buttonbar">
                					<div class="fileupload-buttons">
            						    <div class="container-upload fileupload_div" id="fileupload_div">
            								<button type="button" class="btn btn-success box-upload fileinput-button">
            								    <div class="ico arrow">
            								        <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="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"/>
                                                        </svg>
                                                    </i>
            								    </div>
            								    <div class="ico space">
            								        <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="M18 9v4H6V9H4v6h16V9h-2z"/>
                                                        </svg>
                                                    </i>
            								    </div>
            									<p>Clique ou arraste e solte<span>as fotos aqui</span></p>
            									<input id="fileupload" type="file" name="files[]" multiple>
            								</button>
            							</div>
                					</div>
                				</div>
            				</div>
    				    </div>
    				</div>
    				<!-- The blueimp Gallery widget -->
					<div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls"  data-hide-page-scrollbars="false" data-filter=":even">
						<div class="slides"></div>
						<h3 class="title"></h3>
						<a class="prev">‹</a>
						<a class="next">›</a>
						<a class="close">×</a>											
					</div>
                    <!-- The template to display files available for download -->
                    <!-- ------- NÃO REMOVER O ESPAÇO EM BRANCO ENTRE AS TAGS ------- -->
                    <script id="template-download" type="text/x-tmpl"> </script>
                    <!-- ------- NÃO REMOVER O ESPAÇO EM BRANCO ENTRE AS TAGS ------- -->
                </div>
            </div>
            </div>
        </div>
    </div>
</div>

<div class="tab-pane fade" id="unidades" role="tabpanel" aria-labelledby="unidades-tab">
    <div class="card">
        <div class="card-header">Unidades</div>
        <div class="card-body">
            <div class="row">
                <div class="col-lg-5">
                    <form action="" class="formAtualizaConfigLp">
                        <div class="form-group mt-2">
                            <h5>Titulo e subtitulo</h5>
                            <hr>
                        </div>
                        <div class="form-group">
                            <label for="unidades_titulo">Título</label>
                            <textarea name="unidades_titulo" class="form-control textminieditor" id="unidades_titulo"rows="4"><?php e($lpConfig->unidades_titulo); ?></textarea>
                        </div>
                        <div class="form-group">
                            <label for="unidades_subtitulo">Subtítulo</label>
                            <textarea name="unidades_subtitulo" class="form-control textminieditor" id="unidades_subtitulo"rows="4"><?php e($lpConfig->unidades_subtitulo); ?></textarea>
                        </div>
                        <div class="row">
                            <div class="col-lg-12">
                                <div class="form-group m-0">
                                    <label for="unidades_btn_option_txt">Opções do botão</label>
                                </div>
                                <div class="form-check form-check-inline mr-1">
                                    <input type="radio" name="unidades_btn_option_txt" class="form-check form-check-inline mr-1" id="unidades_btn_option_txt_1" value="0" <?php e($lpConfig->unidades_btn_option_txt == 0 ?"checked":"") ?> >
                                    <label class="form-check-label" for="unidades_btn_option_txt_1">Usar default (Gostei)</label>
                                </div>
                                <div class="form-check form-check-inline mr-1">
                                    <input type="radio" name="unidades_btn_option_txt" class="form-check form-check-inline mr-1" id="unidades_btn_option_txt_2" value="1" <?php e($lpConfig->unidades_btn_option_txt == 1 ?"checked":"") ?>>
                                    <label class="form-check-label" for="unidades_btn_option_txt_2">Outro texto</label>
                                </div>
                                <div class="form-check form-check-inline mr-1">
                                    <input type="radio" name="unidades_btn_option_txt" class="form-check form-check-inline mr-1" id="unidades_btn_option_txt_3" value="2" <?php e($lpConfig->unidades_btn_option_txt == 2 ?"checked":"") ?>>
                                    <label class="form-check-label" for="unidades_btn_option_txt_3">Esconder botão e campo da unidade</label>
                                </div>
                            </div>
                        </div>
                        <div class="form-group mt-2">
                            <label for="unidades_btn_txt">Texto do botão</label>
                            <input type="text" name="unidades_btn_txt" class="form-control" id="unidades_btn_txt" value="<?php e($lpConfig->unidades_btn_txt); ?>">
                        </div>
                        <div class="form-group mt-4 mb-0">
                            <label for="tipo_display_unidades">Tipo do display das unidades</label>
                        </div>
                        <div class="row">
                            <div class="col-lg-12">
                                <div class="col-form-label">
                                    <div class="form-check form-check-inline mr-1">
                                        <input type="radio" name="tipo_display_unidades" class="form-check form-check-inline mr-1" id="tipo_display_unidades_1" value="0" <?php e($lpConfig->tipo_display_unidades <= 0?"checked":"") ?>>
                                        <label class="form-check-label" for="tipo_display_unidades_1">Grid card</label>
                                    </div>
                                    <div class="form-check form-check-inline mr-1">
                                        <input type="radio" name="tipo_display_unidades" class="form-check form-check-inline mr-1" id="tipo_display_unidades_2" value="1" <?php e($lpConfig->tipo_display_unidades == 1?"checked":"") ?>>
                                        <label class="form-check-label" for="tipo_display_unidades_2">Antes e depois</label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group text-right mt-4 mb-0">
                            <div class="msgAtualizaConfigLp"></div>
                            <button type="button" class="btn btn-success btn-sm btnAtualizaConfigLp"><i class="fa fa-check"></i> Salvar</button>
                        </div>
                    </form>
                </div>
                <div class="col-lg-5 offset-lg-1">
                    <form action="" class="formAddUnidade">
                        <div class="form-group mt-2">
                            <h5>Unidade</h5>
                            <hr>
                            <div class="divBtnAbrirAddUnidade">
                                <button class="btn btn-primary btnAbrirAddUnidade" type="button"><i class="fa fa-plus"></i> Adicionar unidade</button>
                            </div>
                        </div>
                        
                        <div class="divAddUnidade d-none">
                            <div class="form-group mb-0">
                                <label for="img_url">Imagem do box</label>
                            </div>
                            <div class="row">
                                <div class="col-lg-12">
                                    <div class="col-form-label">
                                        <div class="form-check form-check-inline mr-1">
                                            <input type="radio" name="img_tipo" class="form-check form-check-inline mr-1" id="img_tipo_1" value="1" >
                                            <label class="form-check-label" for="img_tipo_1">Título da galeria</label>
                                        </div>
                                        <div class="form-check form-check-inline mr-1">
                                            <input type="radio" name="img_tipo" class="form-check form-check-inline mr-1" id="img_tipo_2" value="2" checked>
                                            <label class="form-check-label" for="img_tipo_2">Imagem para capa</label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label for="img">Título da galeria</label>
                                <input type="text" name="img" class="form-control" id="img">
                            </div>
                            
                            <div class="form-group mb-0">
                                <label for="img_url">Imagem para capa</label>
                            </div>
                            
                            <div class="row">
                                <div class="col-lg-12">
                                    <div id="div_img_add_unidade" class="form-group align-box-img mt-10">
                                        <div class="container_upl container_upl_img custom-file d-none" >
                                            <div class="box-doc div_img_background" <?php if ("" != ""){ ?> style="background-image: url('<?php e(""); ?>');" <?php } ?>></div>
                                            <div class="box-ico-text">
                                                <div class="text">
                                                    <div class="txt">
                                                        <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                            </svg>
                                                        </i>
                                                        
                                                        <div class="box-remover box-remover-logo">
                                                            <a href="javascript:;" class="btn_remover_upl">Remover logo</a> 
                                                            <a href="javascript:;" class="btn_pergunta_remover_upl d-none">Remover logo ?</a> 
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div> 
                                        <div class="container_upl_load box-doc text-center d-none">
                                            <label><i class='fa fa-circle-o-notch fa-spin'></i></label>
                                        </div>
                                        <div class="container_upl container_upl_input custom-file  <?php echo "" != "" ? "d-none" : ""; ?>">
                                            <input type="file" name="img_url" class="custom-file-input" id="img_url" data-value="<?php echo ""; ?>" >
                                            <label class="custom-file-label label-img-input" for="customFile">
                                                <div class="box-ico-text">
                                                    <div class="ico">
                                                        <i class="material-icons">
                                                            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
                                                                <path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
                                                                <path d="M0 0h24v24H0z" fill="none"/>
                                                            </svg>
                                                        </i>
                                                    </div>
                                                    <div class="text">
                                                        <div class="txt">
                                                        <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                            </svg>
                                                        </i>
                                                        <span>Adicionar foto</span>
                                                        </div>
                                                    </div>
                                                </div>
                                            </label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label for="tipo">Tipo</label>
                                <input type="text" name="tipo" class="form-control">
                            </div>
                            <div class="row">
                                <div class="col-lg-6">
                                    <div class="form-group">
                                        <label for="metros">Metros</label>
                                        <input type="text" name="metros" class="form-control" id="metros" >
                                    </div>
                                </div>
                                <div class="col-lg-6">
                                    <div class="form-group">
                                        <label for="valor">Valor</label>
                                        <input type="text" name="valor" class="form-control moneyMask" id="valor" >
                                    </div>
                                </div>
                            </div>
                            
                            <div class="row">
                                <div class="col-lg-12">
                                    <div class="col-form-label">
                                        <div class="form-check form-check-inline mr-1">
                                            <input type="radio" name="tipo_valor" class="form-check form-check-inline mr-1" id="tipo_valor_1" value="1" checked>
                                            <label class="form-check-label" for="tipo_valor_1">Não mostrar valor</label>
                                        </div>
                                        <div class="form-check form-check-inline mr-1">
                                            <input type="radio" name="tipo_valor" class="form-check form-check-inline mr-1" id="tipo_valor_2" value="2">
                                            <label class="form-check-label" for="tipo_valor_2">Mostrar valor</label>
                                        </div>
                                        <div class="form-check form-check-inline mr-1">
                                            <input type="radio" name="tipo_valor" class="form-check form-check-inline mr-1" id="tipo_valor_3" value="3">
                                            <label class="form-check-label" for="tipo_valor_3">Mostrar texto do valor</label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="row">
                                <div class="col-lg-12">
                                    <div class="form-group">
                                        <label for="texto_valor">Texto do valor</label>
                                        <textarea name="texto_valor" class="form-control textminieditor" id="texto_valor"rows="4"></textarea>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="row">
                                <div class="col">
                                    <div class="form-group">
                                        <label for="quartos">Quartos</label>
                                        <input type="text" name="quartos" class="form-control" id="quartos" >
                                    </div>
                                </div>
                                <div class="col">
                                    <div class="form-group">
                                        <label for="ambientes">Ambientes</label>
                                        <input type="text" name="ambientes" class="form-control" id="ambientes" >
                                    </div>
                                </div>
                            </div>
                            
                            <div class="row">
                                <div class="col">
                                    <div class="form-group">
                                        <label for="suites">Suites</label>
                                        <input type="text" name="suites" class="form-control" id="suites" >
                                    </div>
                                </div>
                                <div class="col">
                                    <div class="form-group">
                                        <label for="banheiros">Banheiros</label>
                                        <input type="text" name="banheiros" class="form-control" id="banheiros" >
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col">
                                    <div class="form-group">
                                        <label for="vagas">Vagas</label>
                                        <input type="text" name="vagas" class="form-control" id="vagas" >
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-lg-12">
                                    <div class="col-form-label">
                                        <div class="form-check form-check-inline mr-1">
                                            <input type="radio" name="status" class="form-check form-check-inline mr-1" id="status_ativo_a" value="1" checked>
                                            <label class="form-check-label" for="status_ativo_a">Ativo</label>
                                        </div>
                                        <div class="form-check form-check-inline mr-1">
                                            <input type="radio" name="status" class="form-check form-check-inline mr-1" id="status_inativo_b" value="0">
                                            <label class="form-check-label" for="status_inativo_b">Inativo</label>
                                        </div>
                                        <div class="form-check form-check-inline mr-1">
                                            <input type="radio" name="status" class="form-check form-check-inline mr-1" id="status_inativo_c" value="2">
                                            <label class="form-check-label" for="status_inativo_c">Indisponível</label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group text-right mt-4 mb-0">
                                <div class="msgAddUnidade"></div>
                                <button type="button" class="btn btn-success btn-sm btnAddUnidade"><i class="fa fa-plus"></i> Salvar</button>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="col-lg-12 my-2">
                    <hr>
                </div>
                <div class="col-lg-12">
                    <div class="row">
                        <div class="col-lg-12 text-center mb-5">
                            <div class="unidades_titulo text-center"><?php e($lpConfig->unidades_titulo); ?></div>
                            <div class="unidades_subtitulo text-center"><?php e($lpConfig->unidades_subtitulo); ?></div>
                        </div>
                    </div>
                    <div class="row">
                        <?php foreach(($unidadesLp??[]) as $k=>$unidade){ ?>
                        <div class="col-lg-4 ">
                            <div class="card">
                                
                            <form id="formAtualizaUnidade_<?php e($k) ?>" action="" class="formAtualizaUnidade card-body">
                                <div class="form-group mt-2">
                                    <h5>Unidade</h5>
                                    <hr>
                                </div>
                                
                                <div class="form-group mb-0">
                                    <label for="img_url">Imagem do box</label>
                                </div>
                                <div class="row">
                                    <div class="col-lg-12">
                                        <div class="col-form-label">
                                            <div class="form-check form-check-inline mr-1">
                                                <input type="radio" name="img_tipo" class="form-check form-check-inline mr-1" id="img_tipo_1" value="1" <?php e($unidade->img_tipo == 1?"checked":"") ?>>
                                                <label class="form-check-label" for="img_tipo_1">Título da galeria</label>
                                            </div>
                                            <div class="form-check form-check-inline mr-1">
                                                <input type="radio" name="img_tipo" class="form-check form-check-inline mr-1" id="img_tipo_2" value="2" <?php e($unidade->img_tipo == 2?"checked":"") ?>>
                                                <label class="form-check-label" for="img_tipo_2">Imagem para capa</label>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                
                                <div class="form-group">
                                    <label for="img">Título da galeria</label>
                                    <input type="text" name="img" class="form-control" id="img" value="<?php e($unidade->img) ?>">
                                </div>
                                <input type="hidden" name="id_unidade" class="form-control" value="<?php e($unidade->id_unidade); ?>">
                                
                                 <div class="form-group mb-0">
                                    <label for="img_url">Imagem para capa</label>
                                </div>
                                <div class="row">
                                    <div class="col-lg-12">
                                        <div id="div_img_unidade_<?php e($k) ?>" class="div_img_unidad form-group align-box-img mt-10">
                                            <?php $img = $unidade->img_url; ?>
                                            <div class="container_upl container_upl_img custom-file  <?php e($img != "" ? "" : "d-none"); ?>">
                                                <div class="box-doc div_img_background" <?php if ($img != ""){ ?> style="background-image: url('<?php e($img); ?>');" <?php } ?>></div>
                                                <div class="box-ico-text">
                                                    <div class="text">
                                                        <div class="txt">
                                                            <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                                </svg>
                                                            </i>
                                                            
                                                            <div class="box-remover box-remover-logo">
                                                                <a href="javascript:;" class="btn_remover_upl">Remover capa</a> 
                                                                <a href="javascript:;" class="btn_pergunta_remover_upl d-none">Remover capa ?</a> 
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div> 
                                            <div class="container_upl_load box-doc text-center d-none">
                                                <label><i class='fa fa-circle-o-notch fa-spin'></i></label>
                                            </div>
                                            <div class="container_upl container_upl_input custom-file  <?php echo $img != "" ? "d-none" : ""; ?>">
                                                <input type="file" name="img_url" class="custom-file-input" id="res_foto" data-value="<?php echo $img; ?>">
                                                <label class="custom-file-label label-img-input" for="customFile">
                                                    <div class="box-ico-text">
                                                        <div class="ico">
                                                            <i class="material-icons">
                                                                <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
                                                                    <path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
                                                                    <path d="M0 0h24v24H0z" fill="none"/>
                                                                </svg>
                                                            </i>
                                                        </div>
                                                        <div class="text">
                                                            <div class="txt">
                                                                <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                                    </svg>
                                                                </i>
                                                                <span>Adicionar capa</span>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </label>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                
                                <div class="form-group">
                                    <label for="tipo">Tipo</label>
                                    <input type="text" name="tipo" class="form-control" id="tipo" value="<?php e($unidade->tipo) ?>">
                                </div>
                                <div class="row">
                                    <div class="col-lg-6">
                                        <div class="form-group">
                                            <label for="metros">Metros</label>
                                            <input type="text" name="metros" class="form-control" id="metros" value="<?php e($unidade->metros) ?>">
                                        </div>
                                    </div>
                                    <div class="col-lg-6">
                                        <div class="form-group">
                                            <label for="valor">Valor</label>
                                            <input type="text" name="valor" class="form-control moneyMask" id="valor" value="<?php e($unidade->valor) ?>">
                                        </div>
                                    </div>
                                </div>
                                
                                <div class="row">
                                    <div class="col-lg-12">
                                        <div class="col-form-label">
                                            <div class="form-check form-check-inline mr-1">
                                                <input type="radio" name="tipo_valor" class="form-check form-check-inline mr-1" id="tipo_valor_1" value="1" <?php e($unidade->tipo_valor == 1?'checked':'') ?>>
                                                <label class="form-check-label" for="tipo_valor_1">Não mostrar valor</label>
                                            </div>
                                            <div class="form-check form-check-inline mr-1">
                                                <input type="radio" name="tipo_valor" class="form-check form-check-inline mr-1" id="tipo_valor_2" value="2" <?php e($unidade->tipo_valor == 2?'checked':'') ?>>
                                                <label class="form-check-label" for="tipo_valor_2">Mostrar valor</label>
                                            </div>
                                            <div class="form-check form-check-inline mr-1">
                                                <input type="radio" name="tipo_valor" class="form-check form-check-inline mr-1" id="tipo_valor_3" value="3" <?php e($unidade->tipo_valor == 3?'checked':'') ?>>
                                                <label class="form-check-label" for="tipo_valor_3">Mostrar texto do valor</label>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                
                                <div class="row">
                                    <div class="col-lg-12">
                                        <div class="form-group">
                                            <label for="texto_valor_<?php e($k) ?>">Texto do valor</label>
                                            <textarea name="texto_valor" class="form-control textminieditor" id="texto_valor_<?php e($k) ?>" rows="4"><?php e($unidade->texto_valor) ?></textarea>
                                        </div>
                                    </div>
                                </div>
                                
                                <div class="row">
                                    <div class="col">
                                        <div class="form-group">
                                            <label for="quartos">Quartos</label>
                                            <input type="text" name="quartos" class="form-control" id="quartos" value="<?php e($unidade->quartos) ?>">
                                        </div>
                                    </div>
                                    <div class="col">
                                        <div class="form-group">
                                            <label for="ambientes">Ambientes</label>
                                            <input type="text" name="ambientes" class="form-control" id="ambientes" value="<?php e($unidade->ambientes) ?>">
                                        </div>
                                    </div>
                                </div>
                                
                                <div class="row">
                                    <div class="col">
                                        <div class="form-group">
                                            <label for="suites">Suites</label>
                                            <input type="text" name="suites" class="form-control" id="suites" value="<?php e($unidade->suites) ?>">
                                        </div>
                                    </div>
                                    <div class="col">
                                        <div class="form-group">
                                            <label for="banheiros">Banheiros</label>
                                            <input type="text" name="banheiros" class="form-control" id="banheiros" value="<?php e($unidade->banheiros) ?>">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col">
                                        <div class="form-group">
                                            <label for="vagas">Vagas</label>
                                            <input type="text" name="vagas" class="form-control" id="vagas" value="<?php e($unidade->vagas) ?>">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col">
                                        <div class="form-group">
                                            <label for="ordem_unidade">Ordem de unidades</label>
                                            <input type="number" name="ordem" class="form-control" id="ordem_unidade" value="<?php e($unidade->ordem) ?>">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-lg-12">
                                        <div class="col-form-label">
                                            <div class="form-check form-check-inline mr-1">
                                                <input type="radio" name="status" class="form-check form-check-inline mr-1" id="status_ativo_<?php e($k) ?>" value="1" <?php e($unidade->status==1?'checked':'') ?>>
                                                <label class="form-check-label" for="status_ativo_<?php e($k) ?>">Ativo</label>
                                            </div>
                                            <div class="form-check form-check-inline mr-1">
                                                <input type="radio" name="status" class="form-check form-check-inline mr-1" id="status_inativo_<?php e($k) ?>" value="0" <?php e($unidade->status==0?'checked':'') ?>>
                                                <label class="form-check-label" for="status_inativo_<?php e($k) ?>">Inativo</label>
                                            </div>
                                            <div class="form-check form-check-inline mr-1">
                                                <input type="radio" name="status" class="form-check form-check-inline mr-1" id="status_inativo_<?php e($k) ?>" value="2" <?php e($unidade->status==2?'checked':'') ?>>
                                                <label class="form-check-label" for="status_inativo_c">Indisponível</label>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group text-right mt-4 mb-0">
                                    <div class="msgAtualizaUnidade"></div>
                                    <button type="submit" class="btn btn-success btn-sm btnAtualizaUnidade"><i class="fa fa-check"></i> Salvar</button>
                                </div>
                            </form>
                            </div>
                        </div>
                        <?php } ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="tab-pane fade" id="formulario" role="tabpanel" aria-labelledby="formulario-tab">
    <div class="card">
        <div class="card-header">Formulário</div>
        <div class="card-body">
            <div class="row">
                <div class="col-lg-5">
                    <form action="" class="formAtualizaConfigLp">
                        <div class="form-group">
                            <label for="form_titulo">Título</label>
                            <textarea name="form_titulo" class="form-control textminieditor" id="form_titulo" rows="4"><?php e($lpConfig->form_titulo); ?></textarea>
                        </div>
                        <div class="form-group">
                            <label for="form_descricao">Descrição</label>
                            <textarea name="form_descricao" class="form-control textminieditor" id="form_descricao" rows="4"><?php e($lpConfig->form_descricao); ?></textarea>
                        </div>
                        <div class="form-group mb-0">
                            <label for="seo_img">Imagem do formulário</label>
                        </div>
                        <div class="row">
                            <div class="col-lg-12">
                                <?php $img_upload = $lpConfig->form_imagem; ?>
                                <?php $name_input = "form_imagem"; ?>
                                <div id="div_<?php e($name_input); ?>" class="form-group align-box-img mt-10">
                                    <div class="container_upl container_upl_img custom-file <?php e($img_upload != "" ? "" : "d-none"); ?>">
                                        <div class="box-doc div_img_background" <?php if ($img_upload != ""){ ?> style="background-image: url('<?php e($img_upload); ?>');" <?php } ?>></div>
                                        <div class="box-ico-text">
                                            <div class="text">
                                                <div class="txt">
                                                    <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                        </svg>
                                                    </i>
                                                    
                                                    <div class="box-remover box-remover-logo">
                                                        <a href="javascript:;" class="btn_remover_upl">Remover img</a> 
                                                        <a href="javascript:;" class="btn_pergunta_remover_upl d-none">Remover img?</a> 
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div> 
                                    <div class="container_upl_load box-doc text-center d-none">
                                        <label><i class='fa fa-circle-o-notch fa-spin'></i></label>
                                    </div>
                                    <div class="container_upl container_upl_input custom-file  <?php echo $img_upload != "" ? "d-none" : ""; ?>">
                                        <input type="file" name="<?php e($name_input); ?>" class="custom-file-input" id="<?php e($name_input); ?>" data-value="<?php echo $img_upload; ?>" >
                                        <label class="custom-file-label label-img-input" for="customFile">
                                            <div class="box-ico-text">
                                                <div class="ico">
                                                    <i class="material-icons">
                                                        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
                                                            <path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
                                                            <path d="M0 0h24v24H0z" fill="none"/>
                                                        </svg>
                                                    </i>
                                                </div>
                                                <div class="text">
                                                    <div class="txt">
                                                    <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                        </svg>
                                                    </i>
                                                    <span>Adicionar img</span>
                                                    </div>
                                                </div>
                                            </div>
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        
                        
                        <div class="form-group text-right mt-4 mb-0">
                            <div class="msgAtualizaConfigLp"></div>
                            <button type="button" class="btn btn-success btn-sm btnAtualizaConfigLp"><i class="fa fa-check"></i> Salvar</button>
                        </div>
                        
                    </form>
                </div>
                <div class="col-lg-5 offset-lg-1">
                    <div class="form_titulo"><?php e($lpConfig->form_titulo); ?></div>
                    <div class="form_descricao"><?php e($lpConfig->form_descricao); ?></div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="tab-pane fade" id="sobre" role="tabpanel" aria-labelledby="sobre-tab">
    <div class="card">
        <div class="card-header">Sobre</div>
        <div class="card-body">
            <div class="row">
                <div class="col-lg-5">
                    <form action="" class="formAtualizaConfigLp">
                        <div class="form-group">
                            <label for="sobre_titulo">Título</label>
                            <textarea name="sobre_titulo" class="form-control textminieditor" id="sobre_titulo"rows="4"><?php e($lpConfig->sobre_titulo); ?></textarea>
                        </div>
                        <div class="form-group">
                            <label for="sobre_descricao">Descrição</label>
                            <textarea name="sobre_descricao" class="form-control textminieditor" id="sobre_descricao"rows="4"><?php e($lpConfig->sobre_descricao); ?></textarea>
                        </div>
                        <div class="form-group text-right mt-4 mb-0">
                            <div class="msgAtualizaConfigLp"></div>
                            <button type="button" class="btn btn-success btn-sm btnAtualizaConfigLp"><i class="fa fa-check"></i> Salvar</button>
                        </div>
                    </form>
                </div>
                <div class="col-lg-5 offset-lg-1">
                    <div class="sobre_titulo"><?php e($lpConfig->sobre_titulo); ?></div>
                    <div class="sobre_descricao"><?php e($lpConfig->sobre_descricao); ?></div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="tab-pane fade" id="diferenciais" role="tabpanel" aria-labelledby="diferenciais-tab">
    <div class="card">
        <div class="card-header">Diferenciais</div>
        <div class="card-body">
            <div class="row">
                <div class="col-lg-5">
                    <form action="" class="formAtualizaConfigLp">
                        <div class="form-group mt-2">
                            <h5>Titulo e subtitulo</h5>
                            <hr>
                        </div>
                        <div class="form-group">
                            <label for="diferenciais_titulo">Título</label>
                            <textarea name="diferenciais_titulo" class="form-control textminieditor" id="diferenciais_titulo"rows="2"><?php e($lpConfig->diferenciais_titulo); ?></textarea>
                        </div>
                        <div class="form-group">
                            <label for="diferenciais_subtitulo">Subtítulo</label>
                            <textarea name="diferenciais_subtitulo" class="form-control textminieditor" id="diferenciais_subtitulo"rows="2"><?php e($lpConfig->diferenciais_subtitulo); ?></textarea>
                        </div>
                        <div class="form-group text-right mt-4 mb-0">
                            <div class="msgAtualizaConfigLp"></div>
                            <button type="button" class="btn btn-success btn-sm btnAtualizaConfigLp"><i class="fa fa-check"></i> Salvar</button>
                        </div>
                    </form>
                </div>
                <div class="col-lg-5 offset-lg-1">
                    <form action="" class="formAddDirefencial">
                        <div class="form-group mt-2">
                            <h5>Item</h5>
                            <hr>
                            <div class="divBtnAbrirAddDiferencial">
                                <button class="btn btn-primary btnAbrirAddDiferencial" type="button"><i class="fa fa-plus"></i> Adicionar diferencial</button>
                            </div>
                        </div>
                        <div class="divAddDiferencial d-none">
                            <div class="form-group">
                                <label for="icone">Ícone</label>
                                <input type="text" name="icone" class="form-control" id="icone" value="">
                            </div>
                            <div class="form-group">
                                <label for="titulo">Título</label>
                                <textarea name="titulo" class="form-control textminieditor" id="titulo"rows="4"></textarea>
                            </div>
                            <div class="form-group">
                                <label for="descricao">Descrição</label>
                                <textarea name="descricao" class="form-control textminieditor" id="descricao"rows="4"></textarea>
                            </div>
                            <div class="row">
                                <div class="col-lg-12">
                                    <div class="col-form-label">
                                        <div class="form-check form-check-inline mr-1">
                                            <input type="radio" name="status" class="form-check form-check-inline mr-1" id="status_ativo_c" value="1" checked>
                                            <label class="form-check-label" for="status_ativo_c">Ativo</label>
                                        </div>
                                        <div class="form-check form-check-inline mr-1">
                                            <input type="radio" name="status" class="form-check form-check-inline mr-1" id="status_inativo_d" value="0">
                                            <label class="form-check-label" for="status_inativo_d">Inativo</label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group text-right mt-4 mb-0">
                                <div class="msgAddDiferencial"></div>
                                <button type="button" class="btn btn-success btn-sm btnAddDirefencial"><i class="fa fa-check"></i> Salvar</button>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="col-lg-12 my-2">
                    <hr>
                </div>
                <div class="col-lg-12">
                    <div class="row">
                        <div class="col-lg-12 text-center mb-5">
                            <div class="diferenciais_titulo text-center"><?php e($lpConfig->diferenciais_titulo); ?></div>
                            <div class="diferenciais_subtitulo text-center"><?php e($lpConfig->diferenciais_subtitulo); ?></div>
                        </div>
                    </div>
                    <div class="row">
                        <?php foreach($diferenciais??[] as $diferencial){ ?>
                        <div class="col-lg-4">
                            <div class="card">
                                <form action="" class="formAtualizaDiferencial card-body">
                                    <input type="hidden" name="id_diferencial" class="form-control" value="<?php e($diferencial->id_diferencial); ?>">
                                    <div class="form-group">
                                        <label for="icone_<?php e($diferencial->id_diferencial); ?>">Ícone</label>
                                        <input type="text" name="icone" class="form-control" id="icone_<?php e($diferencial->id_diferencial); ?>" value="<?php e($diferencial->icone); ?>">
                                    </div>
                                    <div class="form-group">
                                        <label for="titulo_<?php e($diferencial->id_diferencial); ?>">Título </label>
                                        <textarea name="titulo" class="form-control textminieditor" id="titulo_<?php e($diferencial->id_diferencial); ?>"rows="4"><?php e($diferencial->titulo); ?></textarea>
                                    </div>
                                    <div class="form-group">
                                        <label for="descricao_<?php e($diferencial->id_diferencial); ?>">Descrição</label>
                                        <textarea name="descricao" class="form-control textminieditor" id="descricao_<?php e($diferencial->id_diferencial); ?>"rows="4"><?php e($diferencial->descricao); ?></textarea>
                                    </div>
                                    <div class="row">
                                        <div class="col-lg-12">
                                            <div class="col-form-label">
                                                <div class="form-check form-check-inline mr-1">
                                                    <input type="radio" name="status" class="form-check form-check-inline mr-1" id="status_ativo_<?php e($k) ?>" value="1" <?php e($diferencial->status==1?'checked':'') ?>>
                                                    <label class="form-check-label" for="status_ativo_<?php e($k) ?>">Ativo</label>
                                                </div>
                                                <div class="form-check form-check-inline mr-1">
                                                    <input type="radio" name="status" class="form-check form-check-inline mr-1" id="status_inativo_<?php e($k) ?>" value="0" <?php e($diferencial->status==0?'checked':'') ?>>
                                                    <label class="form-check-label" for="status_inativo_<?php e($k) ?>">Inativo</label>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="ordem_<?php e($diferencial->id_diferencial); ?>">Ordem</label>
                                        <input type="text" name="ordem" class="form-control" id="ordem_<?php e($diferencial->id_diferencial); ?>" value="">
                                    </div>
                                    <div class="form-group text-right mt-4 mb-0">
                                        <div class="msgAtualizaDiferencial"></div>
                                        <button type="submit" class="btn btn-success btn-sm btnAtualizaDiferencial"><i class="fa fa-check"></i> Salvar</button>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <?php } ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="tab-pane fade" id="comodidades" role="tabpanel" aria-labelledby="comodidades-tab">
    <div class="card">
        <div class="card-header">Comodidades</div>
        <div class="card-body">
            <div class="row">
                <div class="col-lg-5">
                    <form action="" class="formAtualizaConfigLp">
                        <div class="form-group mt-2">
                            <h5>Titulo e subtitulo</h5>
                            <hr>
                        </div>
                        <div class="form-group">
                            <label for="comodidades_titulo">Título</label>
                            <textarea name="comodidades_titulo" class="form-control textminieditor" id="comodidades_titulo"rows="4"><?php e($lpConfig->comodidades_titulo); ?></textarea>
                        </div>
                        <div class="form-group">
                            <label for="comodidades_subtitulo">Subtítulo</label>
                            <textarea name="comodidades_subtitulo" class="form-control textminieditor" id="comodidades_subtitulo"rows="4"><?php e($lpConfig->comodidades_subtitulo); ?></textarea>
                        </div>
                        <div class="form-group text-right mt-4 mb-0">
                            <div class="msgAtualizaConfigLp"></div>
                            <button type="button" class="btn btn-success btn-sm btnAtualizaConfigLp"><i class="fa fa-check"></i> Salvar</button>
                        </div>
                    </form>
                </div>
                <div class="col-lg-5 offset-lg-1">
                    <form action="" class="formAddComodidade">
                        <div class="form-group mt-2">
                            <h5>Comodidade</h5>
                            <hr>
                            <div class="divBtnAbrirAddComodidade">
                                <button class="btn btn-primary btnAbrirAddComodidade" type="button"><i class="fa fa-plus"></i> Adicionar comodidade</button>
                            </div>
                        </div>
                        
                        <div class="divAddComodidade d-none">
                            
                            <div class="form-group mb-0">
                                <label for="img_url">Logo</label>
                            </div>
                            <div class="row">
                                <div class="col-lg-12">
                                    <div id="div_img_add_comodidade" class="form-group align-box-img mt-10">
                                        <div class="container_upl container_upl_img custom-file d-none" >
                                            <div class="box-doc div_img_background" <?php if ("" != ""){ ?> style="background-image: url('<?php e(""); ?>');" <?php } ?>></div>
                                            <div class="box-ico-text">
                                                <div class="text">
                                                    <div class="txt">
                                                        <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                            </svg>
                                                        </i>
                                                        
                                                        <div class="box-remover box-remover-logo">
                                                            <a href="javascript:;" class="btn_remover_upl">Remover logo</a> 
                                                            <a href="javascript:;" class="btn_pergunta_remover_upl d-none">Remover logo ?</a> 
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div> 
                                        <div class="container_upl_load box-doc text-center d-none">
                                            <label><i class='fa fa-circle-o-notch fa-spin'></i></label>
                                        </div>
                                        <div class="container_upl container_upl_input custom-file  <?php echo "" != "" ? "d-none" : ""; ?>">
                                            <input type="file" name="img_url" class="custom-file-input" id="img_url_comodidade" data-value="<?php echo ""; ?>" >
                                            <label class="custom-file-label label-img-input" for="customFile">
                                                <div class="box-ico-text">
                                                    <div class="ico">
                                                        <i class="material-icons">
                                                            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
                                                                <path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
                                                                <path d="M0 0h24v24H0z" fill="none"/>
                                                            </svg>
                                                        </i>
                                                    </div>
                                                    <div class="text">
                                                        <div class="txt">
                                                        <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                            </svg>
                                                        </i>
                                                        <span>Adicionar Logo</span>
                                                        </div>
                                                    </div>
                                                </div>
                                            </label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="row">
                                <div class="col-lg-12">
                                    <div class="form-group">
                                        <label for="descricao_comodidade">Descrição</label>
                                        <textarea name="descricao" class="form-control textminieditor" id="descricao_comodidade"rows="4"></textarea>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="row">
                                <div class="col-lg-12">
                                    <div class="col-form-label">
                                        <div class="form-check form-check-inline mr-1">
                                            <input type="radio" name="status" class="form-check form-check-inline mr-1" id="status_1" value="1" checked>
                                            <label class="form-check-label" for="status_ativo_1">Ativo</label>
                                        </div>
                                        <div class="form-check form-check-inline mr-1">
                                            <input type="radio" name="status" class="form-check form-check-inline mr-1" id="status_2" value="0">
                                            <label class="form-check-label" for="status_inativo_2">Inativo</label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label for="ordem_comodidade">Ordem</label>
                                <input type="text" name="ordem" class="form-control" id="ordem_comodidade">
                            </div>
                            
                            <div class="form-group text-right mt-4 mb-0">
                                <div class="msgAddComodidade"></div>
                                <button type="button" class="btn btn-success btn-sm btnAddComodidade"><i class="fa fa-plus"></i> Salvar</button>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="col-lg-12 my-2">
                    <hr>
                </div>
                <div class="col-lg-12">
                    <div class="row">
                        <div class="col-lg-12 text-center mb-5">
                            <div class="comodidades_titulo text-center"><?php e($lpConfig->comodidades_titulo); ?></div>
                            <div class="comodidades_subtitulo text-center"><?php e($lpConfig->comodidades_subtitulo); ?></div>
                        </div>
                    </div>
                    <div class="row">
                        <?php foreach(($comodidadesLp??[]) as $k=>$comodidade){ ?>
                        <div class="col-lg-4 ">
                            <div class="card">
                                
                            <form id="formAtualizaComodidade_<?php e($k) ?>" action="" class="formAtualizaComodidade card-body">
                                <div class="form-group mt-2">
                                    <h5>Comodidade</h5>
                                    <hr>
                                </div>
                                
                                <input type="hidden" name="id_comodidade" class="form-control" value="<?php e($comodidade->id_comodidade); ?>">
                                
                                <div class="form-group mb-0">
                                    <label for="img_url_comodidade">Logo</label>
                                </div>
                                
                                <div class="row">
                                    <div class="col-lg-12">
                                        <div id="div_img_comodidade_<?php e($k) ?>" class="div_img_comodidad form-group align-box-img mt-10">
                                            <?php $img = $comodidade->img_url; ?>
                                            <div class="container_upl container_upl_img custom-file  <?php e($img != "" ? "" : "d-none"); ?>">
                                                <div class="box-doc div_img_background" <?php if ($img != ""){ ?> style="background-image: url('<?php e($img); ?>');" <?php } ?>></div>
                                                <div class="box-ico-text">
                                                    <div class="text">
                                                        <div class="txt">
                                                            <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                                </svg>
                                                            </i>
                                                            
                                                            <div class="box-remover box-remover-logo">
                                                                <a href="javascript:;" class="btn_remover_upl">Remover logo</a> 
                                                                <a href="javascript:;" class="btn_pergunta_remover_upl d-none">Remover logo?</a> 
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div> 
                                            <div class="container_upl_load box-doc text-center d-none">
                                                <label><i class='fa fa-circle-o-notch fa-spin'></i></label>
                                            </div>
                                            <div class="container_upl container_upl_input custom-file  <?php echo $img != "" ? "d-none" : ""; ?>">
                                                <input type="file" name="img_url" class="custom-file-input" id="res_foto" data-value="<?php echo $img; ?>">
                                                <label class="custom-file-label label-img-input" for="customFile">
                                                    <div class="box-ico-text">
                                                        <div class="ico">
                                                            <i class="material-icons">
                                                                <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
                                                                    <path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
                                                                    <path d="M0 0h24v24H0z" fill="none"/>
                                                                </svg>
                                                            </i>
                                                        </div>
                                                        <div class="text">
                                                            <div class="txt">
                                                                <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                                    </svg>
                                                                </i>
                                                                <span>Adicionar logo</span>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </label>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                
                                <div class="row">
                                    <div class="col-lg-12">
                                        <div class="form-group">
                                            <label for="descricao_comodidade_<?php e($k) ?>">Descrição</label>
                                            <textarea name="descricao" class="form-control textminieditor" id="descricao_comodidade_<?php e($k) ?>" rows="4"><?php e($comodidade->descricao) ?></textarea>
                                        </div>
                                    </div>
                                </div>
                                
                                <div class="row">
                                    <div class="col-lg-12">
                                        <div class="col-form-label">
                                            <div class="form-check form-check-inline mr-1">
                                                <input type="radio" name="status" class="form-check form-check-inline mr-1" id="status_ativo_<?php e($k) ?>" value="1" <?php e($comodidade->status==1?'checked':'') ?>>
                                                <label class="form-check-label" for="status_ativo_<?php e($k) ?>">Ativo</label>
                                            </div>
                                            <div class="form-check form-check-inline mr-1">
                                                <input type="radio" name="status" class="form-check form-check-inline mr-1" id="status_inativo_<?php e($k) ?>" value="0" <?php e($comodidade->status==0?'checked':'') ?>>
                                                <label class="form-check-label" for="status_inativo_<?php e($k) ?>">Inativo</label>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                
                                <div class="form-group">
                                    <label for="ordem_comodidade">Ordem</label>
                                    <input type="text" name="ordem" class="form-control" id="ordem_comodidade" value="<?php e($comodidade->ordem) ?>">
                                </div>
                                
                                <div class="form-group text-right mt-4 mb-0">
                                    <div class="msgAtualizaComodidade"></div>
                                    <button type="submit" class="btn btn-success btn-sm btnAtualizaComodidade"><i class="fa fa-check"></i> Salvar</button>
                                </div>
                            </form>
                            </div>
                        </div>
                        <?php } ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="tab-pane fade" id="rodape" role="tabpanel" aria-labelledby="rodape-tab">
    <div class="card">
        <div class="card-header">Rodapé</div>
        <div class="card-body">
            <div class="row">
                <div class="col-lg-5">
                    <form action="" class="formAtualizaConfigLp">
                        <div class="form-group">
                            <label for="footer_titulo">Descrição</label>
                            <textarea name="footer_titulo" class="form-control textminieditor" id="footer_titulo"rows="4"><?php e($lpConfig->footer_titulo); ?></textarea>
                        </div>
                        <div class="form-group">
                            <label for="footer_endereco">Endereço</label>
                            <textarea name="footer_endereco" class="form-control textminieditor" id="footer_endereco"rows="4"><?php e($lpConfig->footer_endereco); ?></textarea>
                        </div>
                        <div class="form-group text-right mt-4 mb-0">
                            <div class="msgAtualizaConfigLp"></div>
                            <button type="button" class="btn btn-success btn-sm btnAtualizaConfigLp"><i class="fa fa-check"></i> Salvar</button>
                        </div>
                    </form>
                </div>
                <div class="col-lg-5 offset-lg-1">
                    <div class="footer_titulo"><?php e($lpConfig->footer_titulo); ?></div>
                    <div class="footer_titulo mt-4"><?php e($lpConfig->footer_endereco); ?></div>
                </div>
            </div>
        </div>
    </div>
</div>
                        
<div class="tab-pane fade" id="paginaResultado" role="tabpanel" aria-labelledby="paginaResultado-tab">
    <div class="card">
        <div class="card-header">Página de Resultado (ativação e agradecimento)</div>
        <div class="card-body">
            <form action="" class="formAtualizaConfigLp">
            
            <a href="<?php e(base_url("landingpage/resultado/confirmacao/").$empreendimento->uuid_empreendimento.'/teste')?>" class="btn btn-primary btn-sm mb-4" role="button" target="_blank"><i class="fa fa-eye"></i> Ver modelo agendamento</a>
            <a href="<?php e(base_url("landingpage/resultado/agradecimento/").$empreendimento->uuid_empreendimento.'/teste')?>" class="btn btn-primary btn-sm mb-4" role="button" target="_blank"><i class="fa fa-eye"></i> Ver modelo agradecimento</a>
            
            <div class="form-group mb-4">
                <h5>Configuração da página</h5>
                <hr>
            </div>
            
            <div class="row">
                <div class="col-lg-4">
                    <div class="form-group">
                        <label for="pagina_at_ag_bg">
                            Background da página
                        </label>
                        <div class="input-group colorpk colorpicker-component w-50">
                            <input type="text" name="pagina_at_ag_bg" class="form-control colorpk-val" id="pagina_at_ag_bg" value="<?php e($lpConfig->pagina_at_ag_bg) ?>">
                            <div class="input-group-append"><span class="input-group-text input-group-addon"><i class="fa fa-eyedropper"></i></span></div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="form-group">
                        <label for="pagina_at_ag_color ">
                            Cor default
                        </label>
                        <div class="input-group colorpk colorpicker-component w-50">
                            <input type="text" name="pagina_at_ag_color" class="form-control colorpk-val" id="pagina_at_ag_color " value="<?php e(!empty($lpConfig->pagina_at_ag_color)?$lpConfig->pagina_at_ag_color:$lpConfig->primeira_cor) ?>">
                            <div class="input-group-append"><span class="input-group-text input-group-addon"><i class="fa fa-eyedropper"></i></span></div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="form-group">
                        <label for="pagina_at_ag_color_btn ">
                            Cor do botão
                        </label>
                        <div class="input-group colorpk colorpicker-component w-50">
                            <input type="text" name="pagina_at_ag_color_btn" class="form-control colorpk-val" id="pagina_at_ag_color_btn " value="<?php e(!empty($lpConfig->pagina_at_ag_color_btn)?$lpConfig->pagina_at_ag_color_btn:$lpConfig->primeira_cor) ?>">
                            <div class="input-group-append"><span class="input-group-text input-group-addon"><i class="fa fa-eyedropper"></i></span></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-4">
                    <div class="form-group mb-0">
                        <label for="pagina_logo">Logo</label>
                    </div>
                    <div class="row">
                        <div class="col-lg-12">
                            <?php $img_upload = $lpConfig->pagina_logo; ?>
                            <?php $name_input = "pagina_logo"; ?>
                            <div id="div_<?php e($name_input); ?>" class="form-group align-box-img mt-10">
                                <div class="container_upl container_upl_img custom-file <?php e($img_upload != "" ? "" : "d-none"); ?>">
                                    <div class="box-doc div_img_background" <?php if ($img_upload != ""){ ?> style="background-image: url('<?php e($img_upload); ?>');" <?php } ?>></div>
                                    <div class="box-ico-text">
                                        <div class="text">
                                            <div class="txt">
                                                <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                    </svg>
                                                </i>
                                                
                                                <div class="box-remover box-remover-logo">
                                                    <a href="javascript:;" class="btn_remover_upl">Remover img</a> 
                                                    <a href="javascript:;" class="btn_pergunta_remover_upl d-none">Remover img?</a> 
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div> 
                                <div class="container_upl_load box-doc text-center d-none">
                                    <label><i class='fa fa-circle-o-notch fa-spin'></i></label>
                                </div>
                                <div class="container_upl container_upl_input custom-file  <?php echo $img_upload != "" ? "d-none" : ""; ?>">
                                    <input type="file" name="<?php e($name_input); ?>" class="custom-file-input" id="<?php e($name_input); ?>" data-value="<?php echo $img_upload; ?>" >
                                    <label class="custom-file-label label-img-input" for="customFile">
                                        <div class="box-ico-text">
                                            <div class="ico">
                                                <i class="material-icons">
                                                    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
                                                        <path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
                                                        <path d="M0 0h24v24H0z" fill="none"/>
                                                    </svg>
                                                </i>
                                            </div>
                                            <div class="text">
                                                <div class="txt">
                                                <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                    </svg>
                                                </i>
                                                <span>Adicionar img</span>
                                                </div>
                                            </div>
                                        </div>
                                    </label>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="form-group mb-0">
                        <label for="pagina_ag_capa">Capa pagina de agradecimento</label>
                    </div>
                    <div class="row">
                        <div class="col-lg-12">
                            <?php $img_upload = $lpConfig->pagina_ag_capa; ?>
                            <?php $name_input = "pagina_ag_capa"; ?>
                            <div id="div_<?php e($name_input); ?>" class="form-group align-box-img mt-10">
                                <div class="container_upl container_upl_img custom-file <?php e($img_upload != "" ? "" : "d-none"); ?>">
                                    <div class="box-doc div_img_background" <?php if ($img_upload != ""){ ?> style="background-image: url('<?php e($img_upload); ?>');" <?php } ?>></div>
                                    <div class="box-ico-text">
                                        <div class="text">
                                            <div class="txt">
                                                <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                    </svg>
                                                </i>
                                                
                                                <div class="box-remover box-remover-logo">
                                                    <a href="javascript:;" class="btn_remover_upl">Remover img</a> 
                                                    <a href="javascript:;" class="btn_pergunta_remover_upl d-none">Remover img?</a> 
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div> 
                                <div class="container_upl_load box-doc text-center d-none">
                                    <label><i class='fa fa-circle-o-notch fa-spin'></i></label>
                                </div>
                                <div class="container_upl container_upl_input custom-file  <?php echo $img_upload != "" ? "d-none" : ""; ?>">
                                    <input type="file" name="<?php e($name_input); ?>" class="custom-file-input" id="<?php e($name_input); ?>" data-value="<?php echo $img_upload; ?>" >
                                    <label class="custom-file-label label-img-input" for="customFile">
                                        <div class="box-ico-text">
                                            <div class="ico">
                                                <i class="material-icons">
                                                    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
                                                        <path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
                                                        <path d="M0 0h24v24H0z" fill="none"/>
                                                    </svg>
                                                </i>
                                            </div>
                                            <div class="text">
                                                <div class="txt">
                                                <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                    </svg>
                                                </i>
                                                <span>Adicionar img</span>
                                                </div>
                                            </div>
                                        </div>
                                    </label>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="form-group mb-0">
                        <label for="pagina_logo_rodape">Logo Comdono no rodapé</label>
                    </div>
                    <div class="row">
                        <div class="col-lg-12">
                            <div class="col-form-label">
                                <div class="form-check form-check-inline mr-1">
                                    <input type="radio" name="pagina_at_ag_logo" class="form-check form-check-inline mr-1" id="pagina_at_ag_logo_1" value="1" <?php e($lpConfig->pagina_at_ag_logo <= 1?"checked":"") ?>>
                                    <label class="form-check-label" for="pagina_at_ag_logo_1">Colorida</label>
                                </div>
                                <div class="form-check form-check-inline mr-1">
                                    <input type="radio" name="pagina_at_ag_logo" class="form-check form-check-inline mr-1" id="pagina_at_ag_logo_2" value="2" <?php e($lpConfig->pagina_at_ag_logo == 2?"checked":"") ?>>
                                    <label class="form-check-label" for="pagina_at_ag_logo_2">Branca</label>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="row">
                <div class="col-lg-4">
                    <div class="form-group">
                        <label for="endereco_stand">Endereço Estande</label>
                        <textarea name="endereco_stand" class="form-control" id="endereco_stand"rows="2"><?php e($lpConfig->endereco_stand)?></textarea>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="form-group">
                        <label for="localizacao_stand">Localização Estande</label>
                        <textarea name="localizacao_stand" class="form-control" id="localizacao_stand"rows="2"><?php e($lpConfig->localizacao_stand)?></textarea>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="form-group">
                        <label for="pagina_at_ciencia_valor">Ciência do valor</label>
                        <textarea name="pagina_at_ciencia_valor" class="form-control" id="pagina_at_ciencia_valor"rows="2"><?php e($lpConfig->pagina_at_ciencia_valor)?></textarea>
                    </div>
                </div>
            </div>
            
            <div class="mb-4"><hr></div>
            
            <div class="form-group">
                <h5>Tipos de páginas</h5>
            </div>
            
            <div class="row mb-4">
                <div class="col-lg-12">
                    <div class="col-form-label">
                        <div class="form-check form-check-inline mr-1">
                            <input type="radio" name="pagina_tipo" class="form-check form-check-inline mr-1 pagina_tipo" id="pagina_tipo_0" value="0" <?php e($lpConfig->pagina_tipo == 0?"checked":"") ?>>
                            <label class="form-check-label" for="pagina_tipo_0">Sem Vídeo e sem E-book</label>
                        </div>
                        <div class="form-check form-check-inline mr-1">
                            <input type="radio" name="pagina_tipo" class="form-check form-check-inline mr-1 pagina_tipo" id="pagina_tipo_1" value="1" <?php e($lpConfig->pagina_tipo == 1?"checked":"") ?>>
                            <label class="form-check-label" for="pagina_tipo_1">Com E-book</label>
                        </div>
                        <div class="form-check form-check-inline mr-1">
                            <input type="radio" name="pagina_tipo" class="form-check form-check-inline mr-1 pagina_tipo" id="pagina_tipo_2" value="2" <?php e($lpConfig->pagina_tipo == 2?"checked":"") ?>>
                            <label class="form-check-label" for="pagina_tipo_2">Com vídeo</label>
                        </div>
                        <div class="form-check form-check-inline mr-1">
                            <input type="radio" name="pagina_tipo" class="form-check form-check-inline mr-1 pagina_tipo" id="pagina_tipo_3" value="3" <?php e($lpConfig->pagina_tipo == 3?"checked":"") ?>>
                            <label class="form-check-label" for="pagina_tipo_2">Sem agendamento</label>
                        </div>
                    </div>
                </div>
            </div>
            <div class="itemPageEbook <?php e($lpConfig->pagina_tipo == 1?"":"d-none") ?>">
                <div class="row">
                    <div class="col-lg-6">
                        <div class="form-group">
                            <label for="pagina_text_ebook">Texto para o E-book</label>
                            <textarea name="pagina_text_ebook" class="form-control textminieditor" id="pagina_text_ebook"rows="2"><?php e($lpConfig->pagina_text_ebook)?></textarea>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-4">
                        <div class="form-group mb-0">
                            <label class="m-0">Arquivo do E-book</label>
                        </div>
                        <div class="row">
                            <div class="col-lg-12">
                                <?php $img_upload = $lpConfig->pagina_at_ebook_file; ?>
                                <?php $name_input = "pagina_at_ebook_file"; ?>
                                <div id="div_<?php e($name_input); ?>" class="form-group align-box-img mt-10">
                                    <div class="container_upl container_upl_img custom-file <?php e($img_upload != "" ? "" : "d-none"); ?>">
                                        <div class="box-doc div_img_background" <?php if ($img_upload != ""){ ?> style="background-image: url('<?php e($img_upload); ?>');" <?php } ?>></div>
                                        <div class="box-ico-text">
                                            <div class="text">
                                                <div class="txt">
                                                    <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                        </svg>
                                                    </i>
                                                    <div class="box-remover box-remover-logo">
                                                        <a href="javascript:;" class="btn_remover_upl">Remover ebook</a> 
                                                        <a href="javascript:;" class="btn_pergunta_remover_upl d-none">Remover ebook?</a> 
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div> 
                                    <div class="container_upl_load box-doc text-center d-none">
                                        <label><i class='fa fa-circle-o-notch fa-spin'></i></label>
                                    </div>
                                    <div class="container_upl container_upl_input custom-file <?php echo $img_upload != "" ? "d-none" : ""; ?>">
                                        <input type="file" name="<?php e($name_input); ?>" class="custom-file-input" id="<?php e($name_input); ?>" data-value="<?php echo $img_upload; ?>" >
                                        <label class="custom-file-label label-img-input" for="customFile">
                                            <div class="box-ico-text">
                                                <div class="ico">
                                                    <i class="material-icons">
                                                        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
                                                            <path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
                                                            <path d="M0 0h24v24H0z" fill="none"/>
                                                        </svg>
                                                    </i>
                                                </div>
                                                <div class="text">
                                                    <div class="txt">
                                                    <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                        </svg>
                                                    </i>
                                                    <span>Add e-book</span>
                                                    </div>
                                                </div>
                                            </div>
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-4">
                        <div class="form-group mb-0">
                            <label class="m-0">Imagem do E-book</label>
                        </div>
                        <div class="row">
                            <div class="col-lg-12">
                                <?php $img_upload = $lpConfig->pagina_at_ebook_img; ?>
                                <?php $name_input = "pagina_at_ebook_img"; ?>
                                <div id="div_<?php e($name_input); ?>" class="form-group align-box-img mt-10">
                                    <div class="container_upl container_upl_img custom-file <?php e($img_upload != "" ? "" : "d-none"); ?>">
                                        <div class="box-doc div_img_background" <?php if ($img_upload != ""){ ?> style="background-image: url('<?php e($img_upload); ?>');" <?php } ?>></div>
                                        <div class="box-ico-text">
                                            <div class="text">
                                                <div class="txt">
                                                    <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                        </svg>
                                                    </i>
                                                    <div class="box-remover box-remover-logo">
                                                        <a href="javascript:;" class="btn_remover_upl">Remover img</a> 
                                                        <a href="javascript:;" class="btn_pergunta_remover_upl d-none">Remover img?</a> 
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div> 
                                    <div class="container_upl_load box-doc text-center d-none">
                                        <label><i class='fa fa-circle-o-notch fa-spin'></i></label>
                                    </div>
                                    <div class="container_upl container_upl_input custom-file <?php echo $img_upload != "" ? "d-none" : ""; ?>">
                                        <input type="file" name="<?php e($name_input); ?>" class="custom-file-input" id="<?php e($name_input); ?>" data-value="<?php echo $img_upload; ?>" >
                                        <label class="custom-file-label label-img-input" for="customFile">
                                            <div class="box-ico-text">
                                                <div class="ico">
                                                    <i class="material-icons">
                                                        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
                                                            <path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
                                                            <path d="M0 0h24v24H0z" fill="none"/>
                                                        </svg>
                                                    </i>
                                                </div>
                                                <div class="text">
                                                    <div class="txt">
                                                    <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                        </svg>
                                                    </i>
                                                    <span>Add img</span>
                                                    </div>
                                                </div>
                                            </div>
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="itemPageVideo <?php e($lpConfig->pagina_tipo == 2?"":"d-none") ?>">
                <div class="row">
                    
                    <div class="col-lg-6">
                        <div class="form-group">
                            <label for="pagina_at_text">Texto para o Vídeo</label>
                            <textarea name="pagina_at_text" class="form-control textminieditor" id="pagina_at_text"rows="2"><?php e($lpConfig->pagina_at_text)?></textarea>
                        </div>
                    </div>
                    <div class="col-lg-6">
                        <div class="form-group">
                            <label for="pagina_at_video_link">
                                ID vídeo do Youtube
                            </label>
                            <input type="text" name="pagina_at_video_link" class="form-control" id="pagina_at_video_link" value="<?php e($lpConfig->pagina_at_video_link) ?>">
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="mb-4"><hr></div>
            <div class="form-group m-0">
                <label for="btn_financiamento">Botão de financiamento</label>
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <div class="col-form-label">
                        <div class="form-check form-check-inline mr-1">
                            <input type="radio" name="btn_financiamento" class="form-check form-check-inline mr-1" id="btn_financiamento_1" value="1" <?php e($lpConfig->btn_financiamento==1?'checked':'') ?>>
                            <label class="form-check-label" for="status_ativo_<?php e($k) ?>">Sim</label>
                        </div>
                        <div class="form-check form-check-inline mr-1">
                            <input type="radio" name="btn_financiamento" class="form-check form-check-inline mr-1" id="btn_financiamento_2" value="0" <?php e($lpConfig->btn_financiamento==0?'checked':'') ?>>
                            <label class="form-check-label" for="status_inativo_<?php e($k) ?>">Não</label>
                        </div>
                    </div>
                </div>
            </div>
                
            <div class="row mt-4">
                <div class="col-lg-12">
                    <div class="form-group text-right">
                        <div class="msgAtualizaConfigLp"></div>
                        <button type="button" class="btn btn-success btn-sm btnAtualizaConfigLp"><i class="fa fa-check"></i> Salvar</button>
                    </div>
                </div>
            </div>
            </form>
        </div>
    </div>
</div>



<div class="tab-pane fade" id="fluxoEmails" role="tabpanel" aria-labelledby="fluxoEmails-tab">
    <div class="card">
        <div class="card-header">Fluxo de e-mails</div>
        <div class="card-body">
            <form action="" class="formAtualizaConfigLp">
            <!--<div id="accordion-fluxo" role="tablist">-->
            <div class="row">
                <!--<div class="col-lg-6">
                    <div class="card mb-0">
                        <div class="card-header" id="heading1" role="tab">
                            <h5 class="mb-0">
                                <a data-toggle="collapse" href="#fluxo1" aria-expanded="true" aria-controls="fluxo1">
                                    Tags para Ativação do Cartão VIP
                                </a>
                            </h5>
                        </div>
                        <div class="collapse show" id="fluxo1" role="tabpanel" aria-labelledby="heading1" style="">
                            <div class="card-body">
                                <div class="form-group">
                                    <label for="tag_cv_precad">Tag (pré-cadastro)</label>
                                    <input type="text" name="tag_cv_precad" class="form-control" id="tag_cv_precad" value="<?php e($lpConfig->tag_cv_precad); ?>">
                                </div>
                                <div class="form-group">
                                    <label for="tag_cv_ativacao">Tag (ativação)</label>
                                    <input type="text" name="tag_cv_ativacao" class="form-control" id="tag_cv_ativacao" value="<?php e($lpConfig->tag_cv_ativacao); ?>">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>-->
                <div class="col-lg-6">
                    <div class="form-group">
                        <h5>Tags para Ativação e Agendamento de Visita</h5>
                        <hr>
                    </div>
                    <div class="form-group">
                        <label for="tag_ag_precad">Tag (pré-cadastro)</label>
                        <input type="text" name="tag_ag_precad" class="form-control" id="tag_ag_precad" value="<?php e($lpConfig->tag_ag_precad); ?>">
                    </div>
                    <div class="form-group">
                        <label for="tag_ag_presencial">Tag (ativação e agendamento presencial)</label>
                        <input type="text" name="tag_ag_presencial" class="form-control" id="tag_ag_presencial" value="<?php e($lpConfig->tag_ag_presencial); ?>">
                    </div>
                    <div class="form-group">
                        <label for="tag_ag_virtual">Tag (ativação e agendamento virtual)</label>
                        <input type="text" name="tag_ag_virtual" class="form-control" id="tag_ag_virtual" value="<?php e($lpConfig->tag_ag_virtual); ?>">
                    </div>
                </div>
                <div class="col-lg-12">
                    <div class="form-group text-right mt-4 mb-0">
                        <div class="msgAtualizaConfigLp"></div>
                        <button type="button" class="btn btn-success btn-sm btnAtualizaConfigLp"><i class="fa fa-check"></i> Salvar</button>
                    </div>
                </div>
            </div>
            <!--</div>-->
            </form>
        </div>
    </div>
</div>

<!--<div class="tab-pane fade" id="tagRd" role="tabpanel" aria-labelledby="tagRd-tab">
    <div class="card">
        <div class="card-header">Tag RDStation</div>
        <div class="card-body">
            <div class="row">
                <div class="col-lg-5">
                    <form action="" class="formAtualizaConfigLp">
                        <div class="form-group">
                            <label for="tag_rd">Tag</label>
                            <input type="text" name="tag_rd" class="form-control" id="tag_rd" value="<?php e("key_".$empreendimento->uuid_empreendimento); ?>" readonly="readonly">
                        </div>
                        <div class="form-group text-right mt-4 mb-0">
                            <div class="msgAtualizaConfigLp"></div>
                            <button type="button" class="btn btn-success btn-sm btnAtualizaConfigLp"><i class="fa fa-check"></i> Salvar</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>-->

<div class="tab-pane fade" id="configSeo" role="tabpanel" aria-labelledby="configSeo-tab">
    <div class="card">
        <div class="card-header">Configuração do SEO</div>
        <div class="card-body">
            <form action="" class="formAtualizaConfigLp">
                <div class="row">
                    <div class="col-lg-5">
                        <div class="form-group">
                            <label for="seo_titulo">Título</label>
                            <textarea name="seo_titulo" class="form-control" id="seo_titulo" rows="4"><?php e($lpConfig->seo_titulo); ?></textarea>
                        </div>
                        <div class="form-group">
                            <label for="seo_descricao">Descrição (160 caracteres)</label>
                            <textarea name="seo_descricao" class="form-control" id="seo_descricao" rows="4"><?php e($lpConfig->seo_descricao); ?></textarea>
                        </div>
                    </div>
                    <div class="col-lg-5 offset-lg-1">
                        <div class="form-group">
                            <label for="seo_site_url">Site url</label>
                            <?php $url = base_url("lancamento/").$imovel->id_imovel; ?>
                            <input type="text" name="seo_site_url" class="form-control" id="seo_site_url" value="<?php e(!empty($lpConfig->seo_site_url) ? $lpConfig->seo_site_url : $url); ?>">
                        </div>
                        <div class="form-group">
                            <label for="seo_site_name">Site name</label>
                            <input type="text" name="seo_site_name" class="form-control" id="seo_site_name" value="<?php e($lpConfig->seo_site_name); ?>">
                        </div>
                        <div class="row">
                            <div class="col-md-4">
                                <div class="form-group mb-0">
                                    <label for="seo_img">Imagem para compartilhamento</label>
                                </div>
                                <div id="div_seo_img" class="form-group align-box-img mt-10">
                                    <div class="container_upl container_upl_img custom-file <?php e($lpConfig->seo_img != "" ? "" : "d-none"); ?>">
                                        <div class="box-doc div_img_background" <?php if ($lpConfig->seo_img != ""){ ?> style="background-image: url('<?php e($lpConfig->seo_img); ?>');" <?php } ?>></div>
                                        <div class="box-ico-text">
                                            <div class="text">
                                                <div class="txt">
                                                    <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                        </svg>
                                                    </i>
                                                    
                                                    <div class="box-remover box-remover-logo">
                                                        <a href="javascript:;" class="btn_remover_upl">Remover img</a> 
                                                        <a href="javascript:;" class="btn_pergunta_remover_upl d-none">Remover img?</a> 
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div> 
                                    <div class="container_upl_load box-doc text-center d-none">
                                        <label><i class='fa fa-circle-o-notch fa-spin'></i></label>
                                    </div>
                                    <div class="container_upl container_upl_input custom-file  <?php echo $lpConfig->seo_img != "" ? "d-none" : ""; ?>">
                                        <input type="file" name="seo_img" class="custom-file-input" id="seo_img" data-value="<?php echo $lpConfig->seo_img; ?>" >
                                        <label class="custom-file-label label-img-input" for="customFile">
                                            <div class="box-ico-text">
                                                <div class="ico">
                                                    <i class="material-icons">
                                                        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
                                                            <path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
                                                            <path d="M0 0h24v24H0z" fill="none"/>
                                                        </svg>
                                                    </i>
                                                </div>
                                                <div class="text">
                                                    <div class="txt">
                                                    <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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"/>
                                                        </svg>
                                                    </i>
                                                    <span>Adicionar img</span>
                                                    </div>
                                                </div>
                                            </div>
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group text-right mt-4 mb-0">
                            <div class="msgAtualizaConfigLp"></div>
                            <button type="button" class="btn btn-success btn-sm btnAtualizaConfigLp"><i class="fa fa-check"></i> Salvar</button>
                        </div>
                    </div>
                    <div class="col-lg-12 my-4"><hr></div>
                    <div class="col-lg-12">
                        <div class="row">
                            <div class="col-lg-12">
                                <div class="form-group">
                                    <label for="pre_visualizacao">Pré-visualização de compartilhamento</label>
                                </div>
                            </div>
                            <div class="col-lg-3">
                                <img src="<?php e($lpConfig->seo_img); ?>" class="img-fluid">
                            </div>
                            <div class="col-lg-9">
                                <h6><?php e($lpConfig->seo_site_url); ?></h6>
                                <h4><?php e($lpConfig->seo_titulo); ?></h4>
                                <p><?php e($lpConfig->seo_descricao); ?></p>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<div class="tab-pane fade" id="configTags" role="tabpanel" aria-labelledby="configTags-tab">
    <div class="card">
        <div class="card-header">Configuração de TAGS</div>
        <div class="card-body">
            <form action="" class="formAtualizaConfigLp">
                <div class="row">
                    <div class="col-lg-6">
                        <div class="accordion" id="accordionTags" role="tablist">
                            <div class="card mb-0">
                                <div class="card-header" id="headingOne" role="tab">
                                    <h5 class="mb-0">
                                        <a data-toggle="collapse" href="#tagManager" aria-expanded="false" aria-controls="collapseOne" class="collapsed">
                                        Tags - Tag Manager
                                        </a>
                                    </h5>
                                </div>
                                <div class="collapse" id="tagManager" role="tabpanel" aria-labelledby="headingOne" data-parent="#accordionTags" style="">
                                    <div class="card-body">
                                        <div class="form-group">
                                            <label for="global_site_tag" class="m-0">Head (Landingpage e página de ativação)</label>
                                            <p>Global site tag (gtag.js)</p>
                                            <textarea name="global_site_tag" class="form-control" id="global_site_tag" rows="4"><?php e($lpConfig->global_site_tag); ?></textarea>
                                        </div>
                                        <div class="form-group">
                                            <label for="conversion_page" class="m-0">Head (Página de ativação)</label>
                                            <p>Event snippet for Formulario do lead (1 vn) conversion page</p>
                                            <textarea name="conversion_page" class="form-control" id="conversion_page" rows="4"><?php e($lpConfig->conversion_page); ?></textarea>
                                        </div>
                                        <div class="form-group">
                                            <label for="complete_registration" class="m-0">Body (Landingpage)</label>
                                            <p>FBQ - Complete Registration</p>
                                            <textarea name="complete_registration" class="form-control" id="complete_registration" rows="4"><?php e($lpConfig->complete_registration); ?></textarea>
                                        </div>
                                    </div>
                                </div>
                                <div class="card mb-0">
                                    <div class="card-header" id="headingOne" role="tab">
                                        <h5 class="mb-0">
                                            <a data-toggle="collapse" href="#pixelFaceBook" aria-expanded="false" aria-controls="collapseOne" class="collapsed">
                                                Tags - Pixel Facebook
                                            </a>
                                        </h5>
                                    </div>
                                    <div class="collapse" id="pixelFaceBook" role="tabpanel" aria-labelledby="headingOne" data-parent="#accordionTags" style="">
                                        <div class="card-body">
                                            <div class="form-group">
                                                <label for="tag_captura" class="m-0">Head (Página de Captura)</label>
                                                <p>ViewContent</p>
                                                <textarea name="tag_captura" class="form-control" id="tag_captura" rows="4"><?php e($lpConfig->tag_captura); ?></textarea>
                                            </div>
                                            <div class="form-group">
                                                <label for="tag_agendamento" class="m-0">Head (Página de ativação)</label>
                                                <p>Lead</p>
                                                <textarea name="tag_agendamento" class="form-control" id="tag_agendamento" rows="4"><?php e($lpConfig->tag_agendamento); ?></textarea>
                                            </div>
                                            <div class="form-group">
                                                <label for="tag_obrigado" class="m-0">Head (Página de obrigado)</label>
                                                <p>CompleteRegistration</p>
                                                <textarea name="tag_obrigado" class="form-control" id="tag_obrigado" rows="4"><?php e($lpConfig->tag_obrigado); ?></textarea>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group text-right mt-4 mb-0">
                                <div class="msgAtualizaConfigLp"></div>
                                <button type="button" class="btn btn-success btn-sm btnAtualizaConfigLp"><i class="fa fa-check"></i> Salvar</button>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>