@extends('front.layouts.master') @section('banner') {{ $page_data->page_title }} Home {{ $page_data->page_title }} @endsection @section('content') @foreach($photos as $photo) {{ $photo->caption }} @endforeach {{-- Previous Page Link --}} @if ($photos->onFirstPage()) @else @endif {{-- Pagination Elements --}} {{-- Note: This requires the $photos->links() logic or manual loop --}} @foreach ($photos->getUrlRange(max(1, $photos->currentPage() - 2), min($photos->lastPage(), $photos->currentPage() + 2)) as $page => $url) @if ($page == $photos->currentPage()) {{ $page }} @else {{ $page }} @endif @endforeach {{-- Next Page Link --}} @if ($photos->hasMorePages()) @else @endif @endsection