@extends('layouts.public') @section('title', 'News') @section('content') @push('meta') @endpush

Our News

Loading...

Load News...

@if (request()->hasAny(['category', 'author', 'tag', 'search']))
Aplicated Filters: @if (request()->has('category')) @php $category = App\Models\Category::where('slug', request('category'))->first() @endphp Categoría: {{ $category->name ?? 'Desconocida' }} @endif @if (request()->has('author')) @php $author = App\Models\User::where('slug', request('author'))->first(); @endphp Author: {{ $author->name ?? 'Desconocido' }} @endif @if (request()->has('tag')) @php $tag = App\Models\Tag::where('slug', request('tag'))->first() @endphp Tag: {{ $tag->name ?? 'Desconocida' }} @endif @if (request()->has('search')) Search: "{{ request('search') }}" @endif Clear Filters
@endif
@include('posts.partials.post-cards', ['posts' => $posts])
@if ($posts->hasPages())
{{ $posts->links('pagination::bootstrap-5') }}
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush