@php /** @var \Illuminate\Pagination\LengthAwarePaginator $news */ $pageTitle = 'Notícias Arquivadas'; @endphp @extends('v2-cms::layouts.app', [ 'title' => $pageTitle, ]) @section('page-breadcrumbs') @include('v2-cms::partials.breadcrumb', ['items' => [ ['label' => 'Publicações'], ['label' => 'Notícias'], ['label' => 'Arquivadas'], ]]) @endsection @section('css') @parent @include('v2-noticias::cms.includes.styles') @endsection @section('content')

{{ $news->total() }} registros encontrados

@if($news->count() > 0)
@foreach($news as $item)
@php $coverUrl = $item->getCoverImageUrl(); @endphp
@if($coverUrl) Capa da notícia (arquivada) @else
@endif
Arquivada
{{ $item->title }}
{{ $item->created_at->format('d/m/Y') }} {{ $item->deleted_at->format('d/m/Y') }}
@if($item->category || ($item->relationLoaded('tags') && $item->tags->count() > 0))
@if($item->category) {{ $item->category->name }} @endif @if($item->relationLoaded('tags') && $item->tags->count() > 0) @foreach($item->tags->take(2) as $tag) {{ $tag->name }} @endforeach @if($item->tags->count() > 2) +{{ $item->tags->count() - 2 }} @endif @endif
@endif
@php $restoreFormId = 'restore-form-' . $item->id; @endphp
{{ csrf_field() }}
@endforeach
@if($news->hasPages())
{{ $news->appends(request()->except('page'))->links('v2-cms::partials.pagination') }}
@endif @else

Nenhuma notícia arquivada

Notícias arquivadas aparecerão aqui.

Voltar para Notícias
@endif @include('v2-noticias::cms.includes._confirm-modal') @endsection @push('scripts') @include('v2-noticias::cms.includes.scripts') @endpush