@php $pageStart = max(1, $posts->currentPage() - 2); $pageEnd = min($posts->lastPage(), $posts->currentPage() + 2); @endphp @extends('layouts.public') @section('meta') @include('includes.seo-meta', [ 'slug' => 'blog', 'path' => '/blog', 'defaults' => [ 'title' => __('public.pages.blog_title'), 'description' => __('public.pages.blog_desc'), ], ]) @push('json_ld') @include('includes.json-ld-graphs', [ 'graphs' => [ schema_breadcrumb([ ['name' => __('public.breadcrumb.home'), 'url' => schema_absolute_url('/')], ['name' => __('public.blog.title'), 'url' => schema_absolute_url('/blog')], ]), ], ]) @endpush @endsection @section('content') @include('includes.corano-breadcrumb', [ 'crumbs' => [ ['label' => __('public.blog.title')], ], ])
@include('pages.blog.partials.sidebar', ['recentPosts' => $recentPosts ?? []])
@if($posts->count())
@foreach($posts as $post)
@include('pages.blog.partials.post-card', ['post' => $post, 'showExcerpt' => true])
@endforeach
@if($posts->lastPage() > 1)
    @if(!$posts->onFirstPage())
  • @endif @for($page = $pageStart; $page <= $pageEnd; $page++)
  • {{ $page }}
  • @endfor @if($posts->hasMorePages())
  • @endif
@endif @else

{{ __('public.nothing_found') }}

@endif
@endsection