@extends('templates.theme-five') @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') @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 @isset($feed['items']) @foreach($feed['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
@endsection