@extends('layouts.app') @section('title', 'Blogs - Primary Learning Tutor') @section('content')

📝 Our Blog

Discover helpful articles, tips, and insights about learning and education!

🔍 Search Blogs
@if($blogs->count() > 0)
@foreach($blogs as $blog)
@if($blog->featured_image) {{ $blog->title }} @else
📝
@endif
@if($blog->category) {{ $blog->category }} @endif @if($blog->tags && count($blog->tags) > 0) @foreach(array_slice($blog->tags, 0, 2) as $tag) {{ $tag }} @endforeach @endif
{{ $blog->title }}
@if($blog->excerpt)

{{ Str::limit($blog->excerpt, 120) }}

@else

{{ Str::limit(strip_tags($blog->content), 120) }}

@endif
@if($blog->author_name) 👤 {{ $blog->author_name }} @elseif($blog->author) 👤 {{ $blog->author->name }} @endif 👁️ {{ $blog->view_count }} views
@if($blog->published_at) 📅 {{ $blog->published_at->format('M d, Y') }} @endif
@endforeach
{{ $blogs->links() }}
@else
📝

No blogs found

@if(request('search') || request('category')) Try adjusting your search or filters, or check back later for new blogs! @else Check back later for new blog posts! @endif

@if(request('search') || request('category')) View All Blogs @endif
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush