@extends('temas.theme-eight.layout') @section('menu-noticias') active @stop @section('titulo-pagina') @empty(!$site->informacao->nome_comercial) {{ $site->informacao->nome_comercial }} - notícias @else Notícias @endif @endsection @section('content')

@if($conteudo->conteudos()->where('tipo','titulo_pagina')->first())
{!!$conteudo->conteudos()->where('tipo','titulo_pagina')->first()->descricao !!}
@else
Notícias
@endif

{!! Form::open( ['route' => ['salvarContatoNewsletter', 'subdominio' => Route::input('subdominio') ] , 'method' => 'POST', 'class'=>'contact-form row extend form-news px', 'id' => 'newsletter'] ) !!} {!! Form::hidden('id_solicitacao', $site->id, ['class'=>'form-control']) !!}

@if($conteudo -> conteudos() ->where('tipo','titulo_newsletter') -> first())
{{$conteudo -> conteudos() ->where('tipo','titulo_newsletter') -> first() ->descricao}}
@else
Assine nosso newsletter e receba as notícias no seu e-mail:
@endif

{!! Form::close() !!}
@if($posts) @foreach($posts as $post)

{{$post ->titulo}}

{{substr(strip_tags($post -> texto), 0, 117)}}

Continue lendo...
@endforeach @endif @if($posts and !($feed)) @if(!count($posts))
@endif @endif @if($feed) @foreach($feed ->get_items() as $key => $item)

{{$item->get_title()}}

{{substr(strip_tags($item ->data['child']['']['description'][0]['data'] ?? ''), 0, 180)}}...

Continue lendo...
@if($key > ($site->adicional->num_noticias_home - 2)) @break @endif @endforeach @endif
{{-- titulo_noticias --}} @include('temas.componentes.texto.create',[ 'conteudo' => $conteudo, 'label' => 'Título', 'id' => 'titulo_modal_create', 'tipo' => 'titulo_pagina', ]) @if($conteudo->conteudos()->where('tipo','titulo_pagina')->first()) @include('temas.componentes.texto.edit',[ 'conteudo' => $conteudo->conteudos()->where('tipo','titulo_pagina')->first(), 'label' => 'Título', 'id' => 'titulo_modal_edit', 'tipo' => 'titulo_pagina', ]) @endif {{-- titulo_noticias --}} @include('temas.componentes.texto.create',[ 'conteudo' => $conteudo, 'label' => 'Título', 'id' => 'titulo_newsletter_modal_create', 'tipo' => 'titulo_newsletter', ]) @if($conteudo->conteudos()->where('tipo','titulo_newsletter')->first()) @include('temas.componentes.texto.edit',[ 'conteudo' => $conteudo->conteudos()->where('tipo','titulo_newsletter')->first(), 'label' => 'Título', 'id' => 'titulo_newsletter_modal_edit', 'tipo' => 'titulo_newsletter', ]) @endif @endsection