@extends('frontend.layouts.app') @section('content') Our Blog HOME / Blog @forelse($posts as $post) {{ $post->created_at->format('d M Y') }} {{ $post->title }} {{ $post->excerpt ?: Str::limit(strip_tags($post->body), 100) }} @empty No blog posts available at the moment. @endforelse @if($posts->hasPages()) {{ $posts->appends(request()->query())->links() }} @endif Recent Posts @forelse($recentPosts as $recentPost) {{ $recentPost->created_at->format('d M Y') }} {{ Str::limit($recentPost->title, 50) }} @empty No recent posts available @endforelse Categories @forelse($categories as $category) {{ $category->name }} ({{ $category->posts()->where('status', 'PUBLISHED')->count() }} posts) @empty No categories available @endforelse @stop
{{ $post->excerpt ?: Str::limit(strip_tags($post->body), 100) }}
No blog posts available at the moment.
{{ $recentPost->created_at->format('d M Y') }}
No recent posts available
No categories available