@extends('layouts.site') @section('content')

Releases

@if($busca || $categoria) Limpar @endif

Nova release

@foreach($noticias as $key => $noticia) @endforeach
# Título Publicado Categoria Autor Criado Acessos Ações
{{ ($key+1) + ($noticias->currentPage() * $noticias->perPage() - $noticias->perPage()) }} {{ $noticia->titulo }}
{{ csrf_field() }}
{{ $noticia->categoria->nome }} {{ $noticia->autor }} {{ $noticia->created_at->format('d/m/Y - H:i') }} {{ $noticia->acessos }}
{{ csrf_field() }}
@if($noticias->total() == 0)
Não há registros a serem exibidos
@else

{{ $noticias->total() }} {{ $noticias->total() > 1 ? 'resultados encontrados' : 'resultado encontrado' }}

@endif
@endsection