@extends('front.layouts.master') @section('banner') Archive: {{ $month }} Home Archive: {{ $month }} @endsection @section('content') @forelse($posts as $post) {{ $post->title }} READ MORE @empty No posts found @endforelse @if($posts->hasPages()) {{-- Previous Page Link --}} @if ($posts->onFirstPage()) @else @endif {{-- Pagination Elements --}} {{-- Note: This requires the $posts->links() logic or manual loop --}} @foreach ($posts->getUrlRange(max(1, $posts->currentPage() - 2), min($posts->lastPage(), $posts->currentPage() + 2)) as $page => $url) @if ($page == $posts->currentPage()) {{ $page }} @else {{ $page }} @endif @endforeach {{-- Next Page Link --}} @if ($posts->hasMorePages()) @else @endif @endif @endsection