@if ($conteudo->conteudos()->where('tipo', 'logo_lan')->first()) @else @endif
@php $banner = $conteudo ->conteudos() -> where('tipo','banner_profissional') ->first(); @endphp @php $conteudo_config = $conteudo ->conteudos() -> where('tipo','conteudo_config') ->first(); if($conteudo_config){ $conteudo_config = $conteudo_config ->descricao == 'on' ? True : false; }else{ $conteudo_config = false; } @endphp
@if(!$conteudo_config) Editar para Conteúdo @else Editar para ChatBot @endif
@if(!$conteudo_config)
Configuração Bot
@else @php $botao_h = $conteudo ->conteudos() ->where('tipo', 'botao_header') ->first(); @endphp

{!! $conteudo->conteudos()->where('tipo', 'texto_header')->first()->descricao ?? 'Defensor Jurídico: Protegendo Seus Direitos com Excelência' !!}

@endif
conteudos() -> where('tipo','banner_profissional') ->first(); @endphp style="background-image: url('{{ $banner ? route('arquivo.show', $banner->imagem) : url('landing-pages/01/images/banner-profissional.png') }}');">

{!! $conteudo->conteudos()->where('tipo', 'titulo_profissional')->first()->descricao ?? 'CONHEÇA NOSSO TIME' !!}

@foreach ($conteudo->conteudos()->where('tipo', 'profissional')->get() as $profissional)
{{ $profissinal->nome ?? 'Sem nome' }}

{{ $profissional->nome }}


{!! $profissional->descricao !!}

{{ csrf_field() }}
@endforeach
conteudos() -> where('tipo','cor_area') ->first() @endphp @if ($cor) style="background-color: #{{ $cor->descricao }}" @endif>

{!! $conteudo->conteudos()->where('tipo', 'titulo_area')->first()->descricao ?? 'ÁREAS DE ATUAÇÃO' !!}

@foreach ($conteudo->conteudos()->where('tipo', 'area_atuacao')->get() as $area)
{{ $area->nome }}

{{ $area->nome }}

{{ csrf_field() }}
@endforeach
conteudos() -> where('tipo','banner_contato') ->first(); @endphp style="background-image: url('{{ $banner ? route('arquivo.show', $banner->imagem) : url('landing-pages/01/images/banner-contato.png') }}');">

{!! $conteudo->conteudos()->where('tipo', 'contato_titulo')->first()->descricao ?? '"Dedicamos nossos esforços para proporcionar um atendimento de excelência, rápido e transparente."' !!}


{!! $conteudo->conteudos()->where('tipo', 'texto_contato')->first()->descricao ?? 'Entre em contato conosco:' !!}

@php $botao = $conteudo ->conteudos() ->where('tipo', 'botao_pagina') ->first(); @endphp
@if ($conteudo->conteudos()->where('tipo', 'logo_lan')->first()) @include('temas.componentes.imagem.edit', [ 'conteudo' => $conteudo->conteudos()->where('tipo', 'logo_lan')->first(), 'label' => 'Imagem (Resolução sugerida 160 x 70)', 'id' => 'logo_lan_modal_edit', 'tipo' => 'logo_lan', 'radius' => true, 'resizable' => 'true', ]) @else @include('temas.componentes.imagem.create', [ 'conteudo' => $conteudo, 'label' => 'Imagem (Resolução sugerida 160 x 70 )', 'id' => 'logo_lan_modal_edit', 'tipo' => 'logo_lan', 'radius' => true, 'resizable' => 'true', ]) @endif @if ($conteudo->conteudos()->where('tipo', 'titulo_profissional')->first()) @include('temas.componentes.texto.edit', [ 'conteudo' => $conteudo->conteudos()->where('tipo', 'titulo_profissional')->first(), 'label' => 'Título', 'id' => 'titulo_profissional_modal_edit', 'tipo' => 'titulo_profissional', ]) @else @include('temas.componentes.texto.create', [ 'conteudo' => $conteudo, 'label' => 'Título', 'id' => 'titulo_profissional_modal_edit', 'tipo' => 'titulo_profissional', ]) @endif @if ($conteudo->conteudos()->where('tipo', 'titulo_principal')->first()) @include('temas.componentes.texto.edit', [ 'conteudo' => $conteudo->conteudos() ->where('tipo', 'titulo_principal')->first(), 'label' => 'Título', 'id' => 'titulo_principal_modal_edit', 'tipo' => 'titulo_principal', ]) @else @include('temas.componentes.texto.create', [ 'conteudo' => $conteudo, 'label' => 'Título', 'id' => 'titulo_principal_modal_edit', 'tipo' => 'titulo_principal', ]) @endif @if ($conteudo->conteudos()->where('tipo', 'banner_profissional')->first()) @include('temas.componentes.imagem.edit', [ 'conteudo' => $conteudo->conteudos()->where('tipo', 'banner_profissional')->first(), 'label' => 'Imagem (Resolução sugerida 1920 x 400)', 'id' => 'banner_profissional_edit', 'tipo' => 'banner_profissional', 'height' => 400, 'width' => 1920, ]) @else @include('temas.componentes.imagem.create', [ 'conteudo' => $conteudo, 'label' => 'Imagem (Resolução sugerida 1920 x 400 )', 'id' => 'banner_profissional_edit', 'tipo' => 'banner_profissional', 'height' => 400, 'width' => 1920, ]) @endif {{-- Profissionais --}} @include('temas.componentes.profissional.create', [ 'conteudo' => $conteudo, 'label' => 'Um breve texto sobre o profissional', 'id' => 'profissional_modal_create', 'tipo' => 'profissional', ]) @if ($conteudo->conteudos()->where('tipo', 'profissional')->first()) @foreach ($conteudo->conteudos()->where('tipo', 'profissional')->get() as $profissional) @include('temas.componentes.profissional.edit', [ 'conteudo' => $profissional, 'label' => 'Um breve texto sobre o profissional', 'id' => 'profissional_modal_edit_' . $profissional->id, 'tipo' => 'profissional', ]) @endforeach() @endif {{-- area_atuacao --}} @include('temas.componentes.area-atuacao-imagem.create', [ 'conteudo' => $conteudo, 'label' => 'Título', 'id' => 'area_atuacao_modal_create', 'tipo' => 'area_atuacao', 'width' => 64, 'height' => 64, ]) @foreach ($conteudo->conteudos()->where('tipo', 'area_atuacao')->get() as $key => $area) @include('temas.componentes.area-atuacao-imagem.edit', [ 'conteudo' => $area, 'id' => 'area_atuacao_modal_edit' . $area->id, 'tipo' => 'area_atuacao', 'width' => 64, 'height' => 64, ]) @endforeach @if ($conteudo->conteudos()->where('tipo', 'cor_area')->first()) @include('temas.componentes.color.edit', [ 'conteudo' => $conteudo->conteudos()->where('tipo', 'cor_area')->first(), 'label' => 'Cor de fundo', 'id' => 'cor_area_edit', 'tipo' => 'cor_area', ]) @else @include('temas.componentes.color.create', [ 'conteudo' => $conteudo, 'label' => 'Cor de fundo', 'id' => 'cor_area_edit', 'tipo' => 'cor_area', ]) @endif @if ($conteudo->conteudos()->where('tipo', 'titulo_area')->first()) @include('temas.componentes.texto.edit', [ 'conteudo' => $conteudo->conteudos()->where('tipo', 'titulo_area')->first(), 'label' => 'Título', 'id' => 'titulo_area_modal_edit', 'tipo' => 'titulo_area', ]) @else @include('temas.componentes.texto.create', [ 'conteudo' => $conteudo, 'label' => 'Título', 'id' => 'titulo_area_modal_edit', 'tipo' => 'titulo_area', ]) @endif @if ($conteudo->conteudos()->where('tipo', 'contato_titulo')->first()) @include('temas.componentes.texto.edit', [ 'conteudo' => $conteudo->conteudos()->where('tipo', 'contato_titulo')->first(), 'label' => 'Título', 'id' => 'contato_titulo_modal_edit', 'tipo' => 'contato_titulo', ]) @else @include('temas.componentes.texto.create', [ 'conteudo' => $conteudo, 'label' => 'Título', 'id' => 'contato_titulo_modal_edit', 'tipo' => 'contato_titulo', ]) @endif @if ($conteudo->conteudos()->where('tipo', 'texto_contato')->first()) @include('temas.componentes.texto.edit', [ 'conteudo' => $conteudo->conteudos()->where('tipo', 'texto_contato')->first(), 'label' => 'Título', 'id' => 'texto_contato_modal_edit', 'tipo' => 'texto_contato', ]) @else @include('temas.componentes.texto.create', [ 'conteudo' => $conteudo, 'label' => 'Título', 'id' => 'texto_contato_modal_edit', 'tipo' => 'texto_contato', ]) @endif @if ($conteudo->conteudos()->where('tipo', 'texto_telefone')->first()) @include('temas.componentes.texto.edit', [ 'conteudo' => $conteudo->conteudos()->where('tipo', 'texto_telefone')->first(), 'label' => 'Título', 'id' => 'texto_telefone_modal_edit', 'tipo' => 'texto_telefone', ]) @else @include('temas.componentes.texto.create', [ 'conteudo' => $conteudo, 'label' => 'Título', 'id' => 'texto_telefone_modal_edit', 'tipo' => 'texto_telefone', ]) @endif @if ($conteudo->conteudos()->where('tipo', 'texto_endereco')->first()) @include('temas.componentes.texto.edit', [ 'conteudo' => $conteudo->conteudos()->where('tipo', 'texto_endereco')->first(), 'label' => 'Título', 'id' => 'texto_endereco_modal_edit', 'tipo' => 'texto_endereco', ]) @else @include('temas.componentes.texto.create', [ 'conteudo' => $conteudo, 'label' => 'Título', 'id' => 'texto_endereco_modal_edit', 'tipo' => 'texto_endereco', ]) @endif @if ($conteudo->conteudos()->where('tipo', 'texto_lei_dados')->first()) @include('temas.componentes.texto.edit', [ 'conteudo' => $conteudo->conteudos()->where('tipo', 'texto_lei_dados')->first(), 'label' => 'Título', 'id' => 'texto_lei_dados_modal_edit', 'tipo' => 'texto_lei_dados', ]) @else @include('temas.componentes.texto.create', [ 'conteudo' => $conteudo, 'label' => 'Título', 'id' => 'texto_lei_dados_modal_edit', 'tipo' => 'texto_lei_dados', ]) @endif @if ($conteudo->conteudos()->where('tipo', 'banner_contato')->first()) @include('temas.componentes.imagem.edit', [ 'conteudo' => $conteudo->conteudos()->where('tipo', 'banner_contato')->first(), 'label' => 'Imagem (Resolução sugerida 1920 x 400)', 'id' => 'banner_contato_modal_edit', 'tipo' => 'banner_contato', 'height' => 400, 'width' => 1920, ]) @else @include('temas.componentes.imagem.create', [ 'conteudo' => $conteudo, 'label' => 'Imagem (Resolução sugerida 1920 x 400 )', 'id' => 'banner_contato_modal_edit', 'tipo' => 'banner_contato', 'height' => 400, 'width' => 1920, ]) @endif @if ($conteudo-> conteudos()->where('tipo', 'chat_lan')->first()) @include('temas.componentes.imagem.edit', [ 'conteudo' => $conteudo->conteudos()->where('tipo', 'chat_lan')->first(), 'label' => 'Imagem (Resolução sugerida 250 x 250)', 'id' => 'foto_perfil_modal_edit', 'tipo' => 'chat_lan', 'height' => 250, 'width' => 250, ]) @else @include('temas.componentes.imagem.create', [ 'conteudo' => $conteudo, 'label' => 'Imagem (Resolução sugerida 250 x 251 )', 'id' => 'foto_perfil_modal_edit', 'tipo' => 'chat_lan', 'height' => 250, 'width' => 250, ]) @endif @if ($conteudo->conteudos()->where('tipo', 'cor_footer')->first()) @include('temas.componentes.color.edit', [ 'conteudo' => $conteudo->conteudos()->where('tipo', 'cor_footer')->first(), 'label' => 'Cor de fundo', 'id' => 'cor_footer_modal_edit', 'tipo' => 'cor_footer', ]) @else @include('temas.componentes.color.create', [ 'conteudo' => $conteudo, 'label' => 'Cor de fundo', 'id' => 'cor_footer_modal_edit', 'tipo' => 'cor_footer', ]) @endif @if ($conteudo->conteudos()->where('tipo', 'cor_header')->first()) @include('temas.componentes.color.edit', [ 'conteudo' => $conteudo->conteudos()->where('tipo', 'cor_header')->first(), 'label' => 'Cor de fundo', 'id' => 'cor_header_modal_edit', 'tipo' => 'cor_footer', 'camada' => true, ]) @else @include('temas.componentes.color.create', [ 'conteudo' => $conteudo, 'label' => 'Cor de fundo', 'id' => 'cor_header_modal_edit', 'tipo' => 'cor_header', 'camada' => true, ]) @endif @if ($conteudo->conteudos()->where('tipo', 'texto_header')->first()) @include('temas.componentes.texto.edit', [ 'conteudo' => $conteudo->conteudos()->where('tipo', 'texto_header')->first(), 'label' => 'Título', 'id' => 'texto_header_modal_edit', 'tipo' => 'texto_header', ]) @else @include('temas.componentes.texto.create', [ 'conteudo' => $conteudo, 'label' => 'Título', 'id' => 'texto_header_modal_edit', 'tipo' => 'texto_header', ]) @endif @if ($conteudo->conteudos()->where('tipo', 'botao_pagina')->first()) @include('temas.componentes.botao.edit', [ 'conteudo' => $conteudo->conteudos()->where('tipo', 'botao_pagina')->first(), 'label' => 'Cor de fundo', 'id' => 'botao_pagina_modal_edit', 'tipo' => 'cor_footer', ]) @else @include('temas.componentes.botao.create', [ 'conteudo' => $conteudo, 'label' => 'Cor de fundo', 'id' => 'botao_pagina_modal_edit', 'tipo' => 'botao_pagina', ]) @endif @if ($conteudo->conteudos()->where('tipo', 'botao_header')->first()) @include('temas.componentes.botao.edit', [ 'conteudo' => $conteudo->conteudos()->where('tipo', 'botao_header')->first(), 'label' => 'Cor de fundo', 'id' => 'botao_header_modal_edit', 'tipo' => 'botao_header', ]) @else @include('temas.componentes.botao.create', [ 'conteudo' => $conteudo, 'label' => 'Cor de fundo', 'id' => 'botao_header_modal_edit', 'tipo' => 'botao_header', ]) @endif @php $conteudo_config = $conteudo ->conteudos() -> where('tipo','conteudo_config') ->first(); @endphp @if($conteudo_config)
{{ csrf_field() }}
@else
{{ csrf_field() }}
@endif