@extends('temas.theme-five.layout') @section('titulo-pagina') @empty($site->informacao->nome_comercial)) Notícias @else {{ $site->informacao->nome_comercial }} - Notícias @endif @endsection @section('imagem-header') @if($conteudo->conteudos()->where('tipo','banner_pagina')->first()) '{{route('arquivo.show',$conteudo->conteudos()->where('tipo','banner_pagina')->first()->imagem)}}' @else '{{asset('theme-five/img/bg.jpg')}}' @endif @endsection @section('style') @endsection @section('menu-noticias') active @endsection @section('header-set') @if($conteudo->conteudos()->where('tipo','banner_pagina') ->first())
@else
@endif @endsection @section('header') @if($conteudo->conteudos()->where('tipo','titulo_pagina')->first())

{!! $conteudo->conteudos()->where('tipo','titulo_pagina')->first()->descricao !!}

@else

Notícias

@endif @endsection @section('container')
@if($posts) @foreach($posts as $item)

{{ substr( ($item->titulo ), 0, 80)}} ...

Publicado em {{ date('d/m/Y',strtotime($item->created_at)) }}
Veja mais...

@endforeach
{{$posts->links('vendor/pagination/bootstrap-4')}}
@endif @if($posts and !($feed)) @if(!count($posts))
@endif @endif @isset($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 - 1) ) @break @endif @endforeach @endisset
{{-- titulo_sobre --}} @include('temas.componentes.texto.create',[ 'conteudo' => $conteudo, 'label' => 'Título', 'id' => 'titulo_pagina_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_pagina_modal_edit', 'tipo' => 'titulo_pagina', ]) @endif @include('temas.componentes.imagem.create',[ 'conteudo' => $conteudo, 'label' => 'Imagem de fundo', 'id' => 'banner_pagina_modal_create', 'tipo' => 'banner_pagina', 'width' => '1920', 'height' => '227' ]) @if($conteudo->conteudos()->where('tipo','banner_pagina')->first()) @include('temas.componentes.imagem.edit',[ 'conteudo' => $conteudo->conteudos()->where('tipo','banner_pagina')->first(), 'label' => 'Imagem de fundo', 'id' => 'banner_pagina_modal_edit', 'tipo' => 'banner_pagina', 'width' => '1920', 'height' => '227' ]) @endif @endsection