@extends('templates.theme-ten') @section('menu-noticias') active @endsection @section('titulo-pagina') @empty($site->informacao->nome_comercial) Notícias @else {{ $site->informacao->nome_comercial }} - Notícias @endif @endsection @section('content')
conteudos()->where('tipo','banner_pagina')->first()) style="background-image: url('{{route('arquivo.show',$conteudo->conteudos()->where('tipo','banner_pagina')->first()->imagem)}}')" @else style="background-image: url('{{asset('theme-ten/img/bg.jpg')}}')" @endif >
@if($conteudo->conteudos()->where('tipo','titulo_principal')->first())

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

@else

Noticias

@endif
@if($posts) @foreach($posts as $post)

{{$post ->titulo}}

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

Continue lendo...
@endforeach
{{$posts ->links('vendor/pagination/bootstrap-4')}}
@endif @isset($feed['items']) @foreach($feed['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 @endisset
@endsection