@extends('layouts.app') @section('title', $blog->title . ' - Primary Learning Tutor') @section('content')
@if($blog->featured_image) {{ $blog->title }} @endif
@if($blog->category) {{ $blog->category }} @endif @if($blog->tags && count($blog->tags) > 0) @foreach($blog->tags as $tag) {{ $tag }} @endforeach @endif

{{ $blog->title }}

@if($blog->author_name) 👤 {{ $blog->author_name }} @elseif($blog->author) 👤 {{ $blog->author->name }} @endif
@if($blog->published_at)
📅 {{ $blog->published_at->format('F d, Y') }}
@endif
👁️ {{ $blog->view_count }} views
@if($blog->excerpt)
{{ $blog->excerpt }}
@endif
{!! $blog->content !!}
@if($relatedBlogs->count() > 0) @endif @if($categories->count() > 0)
📂 Categories
@foreach($categories as $category) {{ $category }} @endforeach
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush