@extends('layouts.app') @section('title', __('Blog')) @section('content')
@include('partials.how-it-works', ['key' => 'frontend.blog'])
{{ __('From the blog') }}

{{ setting('site_name', 'Learnify') }} {{ __('Blog') }}

{{ __('Insights, tips and stories from our community of learners and instructors.') }}

@if($posts->isEmpty())
{{ __('No posts yet') }}

{{ __('Check back soon for fresh articles.') }}

@else
@foreach($posts as $post)
{{ $post->title }} @if($post->category) {{ $post->category->name }} @endif
{{ $post->title }}

{{ Str::limit(strip_tags($post->content), 110) }}

{{ optional($post->author)->name ?? __('Admin') }} {{ optional($post->published_at)->format('M d, Y') }}
{{ __('Read more') }}
@endforeach
{{ $posts->links() }}
@endif
{{ __('Recent Posts') }}
@forelse($recentPosts as $recent)
{{ $recent->title }}
{{ optional($recent->published_at)->format('M d, Y') }}
@empty

{{ __('No recent posts.') }}

@endforelse
@endsection