@extends('admin.master.master') @section('content')

Posts

@include('admin.posts.filter') @if($posts)
{!! (isset($search) && !empty($search) ? $search : '') !!}

Total de registros encontrados: {{ $posts->total() }} | Página {{ $posts->currentPage() }} de {{ $posts->lastPage() }}

@if($errors->all()) @foreach($errors->all() as $error) @message(['color' => 'red'])

{{ $error }}

@endmessage @endforeach @endif
@foreach($posts as $post)

#{{ $post->id }} {{ $post->title }}

Data: {{ $post->date_back }}
Categoria: {{ $post->category()->first()->title }} {{ (!empty($post->category_parent()->first()->title) ? '/ ' . $post->category_parent()->first()->title : '') }}
Destaque: {{ $post->highlight_back }}
Status: {{ $post->status_back }}
@csrf @method('DELETE') Visualizar post Editar Post
@endforeach
{{ $posts->links() }}
@endif
@endsection