@extends('temas.theme-four.layout') @section('titulo-pagina') @if(!empty($site->informacao->nome_comercial)) {{ $site->informacao->nome_comercial }} - Página inicial @else Página inicial @endif @endsection @section('menu-home') active @endsection @section('header') @if($conteudo->conteudos()->where('tipo','banner_home')->first()) @else @endif @if($conteudo->conteudos()->where('tipo','titulo_principal')->first()) {!! $conteudo->conteudos()->where('tipo','titulo_principal')->first()->descricao !!} @else PROFISSIONAIS EXPERIENTES E RESPEITADOS @endif @if($conteudo->conteudos()->where('tipo','subtitulo_principal')->first()) {!! $conteudo->conteudos()->where('tipo','subtitulo_principal')->first()->descricao !!} @else Soluções jurídicas eficazes @endif @endsection @section('conteudo') @if($conteudo->conteudos()->where('tipo','area_atuacao')->count()) @foreach($conteudo ->conteudos() ->where('tipo','area_atuacao') ->get() as $key => $area) {{$area->nome}} {!!substr($area->descricao, 0,100)!!}... {{ csrf_field() }} Sim Não @endforeach SAIBA MAIS @endif Adicionar área de atuação conteudos()->where('tipo','banner_noticias')->first()) style="background-image: url('{{route('arquivo.show',$conteudo->conteudos()->where('tipo','banner_noticias')->first() ->imagem)}}') !important;position: relative;" @else style="position:relative;" @endif > @if($conteudo->conteudos()->where('tipo','banner_noticias')->first()) @else @endif @if($conteudo->conteudos()->where('tipo','titulo_noticias')->first()) {!! $conteudo->conteudos()->where('tipo','titulo_noticias')->first()->descricao !!} @else ÚLTIMAS NOTÍCIAS @endif @if($posts) @foreach($posts as $item) {{ substr( ($item->titulo ), 0, 80)}}... Publicado em {{ date('d/m/Y',strtotime($item->created_at)) }} Veja mais... @endforeach @endif @if($posts and !($feed)) @if(!count($posts)) Configurar notícias @endif @endif @if($feed) @foreach($feed ->get_items() as $key => $item) {{ substr( ($item->get_title() ), 0, 80)}}... Publicado em {{ $item->get_date('d/m/Y') }} Veja mais... @if($key > ($site->adicional->num_noticias_home - 2)) @break @endif @endforeach @endif {{-- banner_home --}} @include('temas.componentes.imagem.create',[ 'conteudo' => $conteudo, 'label' => 'Imagem de fundo', 'id' => 'banner_home_modal_create', 'tipo' => 'banner_home', 'width' => '1920', 'height' => '650' ]) @if($conteudo->conteudos()->where('tipo','banner_home')->first()) @include('temas.componentes.imagem.edit',[ 'conteudo' => $conteudo->conteudos()->where('tipo','banner_home')->first(), 'label' => 'Imagem de fundo', 'id' => 'banner_home_modal_edit', 'tipo' => 'banner_home', 'width' => '1920', 'height' => '650' ]) @endif {{-- titulo_principal --}} @include('temas.componentes.texto.create',[ 'conteudo' => $conteudo, 'label' => 'Título', 'id' => 'titulo_principal_modal_create', 'tipo' => 'titulo_principal', ]) @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', ]) @endif {{-- subtitulo_principal --}} @include('temas.componentes.texto.create',[ 'conteudo' => $conteudo, 'label' => 'Título', 'id' => 'subtitulo_principal_modal_create', 'tipo' => 'subtitulo_principal', ]) @if($conteudo->conteudos()->where('tipo','subtitulo_principal')->first()) @include('temas.componentes.texto.edit',[ 'conteudo' => $conteudo->conteudos()->where('tipo','subtitulo_principal')->first(), 'label' => 'Título', 'id' => 'subtitulo_principal_modal_edit', 'tipo' => 'subtitulo_principal', ]) @endif {{-- texto_profissionais --}} @include('temas.componentes.textarea.create',[ 'conteudo' => $conteudo, 'label' => 'Texto', 'id' => 'texto_profissionais_modal_create', 'tipo' => 'texto_profissionais', ]) @if($conteudo->conteudos()->where('tipo','texto_profissionais')->first()) @include('temas.componentes.textarea.edit',[ 'conteudo' => $conteudo->conteudos()->where('tipo','texto_profissionais')->first(), 'label' => 'Texto', 'id' => 'texto_profissionais_modal_edit', 'tipo' => 'texto_profissionais', ]) @endif {{-- banner_noticias --}} @include('temas.componentes.imagem.create',[ 'conteudo' => $conteudo, 'label' => 'Imagem de fundo', 'id' => 'banner_noticias_modal_create', 'tipo' => 'banner_noticias', 'width' => '1920', 'height' => '650' ]) @if($conteudo->conteudos()->where('tipo','banner_noticias')->first()) @include('temas.componentes.imagem.edit',[ 'conteudo' => $conteudo->conteudos()->where('tipo','banner_noticias')->first(), 'label' => 'Imagem de fundo', 'id' => 'banner_noticias_modal_edit', 'tipo' => 'banner_noticias', 'width' => '1920', 'height' => '650' ]) @endif {{-- texto_noticias --}} @include('temas.componentes.texto.create',[ 'conteudo' => $conteudo, 'label' => 'Título', 'id' => 'titulo_noticias_modal_create', 'tipo' => 'titulo_noticias', ]) @if($conteudo->conteudos()->where('tipo','titulo_noticias')->first()) @include('temas.componentes.texto.edit',[ 'conteudo' => $conteudo->conteudos()->where('tipo','titulo_noticias')->first(), 'label' => 'Título', 'id' => 'titulo_noticias_modal_edit', 'tipo' => 'titulo_noticias', ]) @endif {{-- area_atuacao --}} @include('temas.componentes.area-atuacao.create',[ 'conteudo' => $conteudo, 'label' => 'Título', 'id' => 'area_atuacao_modal_create', 'tipo' => 'area_atuacao', ]) @foreach($conteudo->conteudos()->where('tipo','area_atuacao')->get() as $key => $area) @include('temas.componentes.area-atuacao.edit',[ 'conteudo' => $area, 'id' => 'area_atuacao_modal_edit'.$area->id, 'tipo' => 'area_atuacao', ]) @endforeach @endsection @section('scripts') @endsection
Publicado em {{ date('d/m/Y',strtotime($item->created_at)) }} Veja mais...
Publicado em {{ $item->get_date('d/m/Y') }} Veja mais...