@extends('layouts.app') @section('title', $post->meta_title ?: $post->title) @push('head') {!! \App\Support\Seo\Schema::render( \App\Support\Seo\Schema::blogPosting($post), \App\Support\Seo\Schema::breadcrumbs([ ['name' => __('Home'), 'url' => route('home')], ['name' => __('Blog'), 'url' => route('blog.index')], ['name' => $post->title, 'url' => url()->current()], ]), ) !!} @endpush @section('meta_description', $post->meta_description ?: Str::limit(strip_tags($post->content ?? ''), 160, '')) @section('og_type', 'article') @section('og_image', $post->thumbnail ? media_url($post->thumbnail) : '') @section('content')
@if($post->category)
{{ $post->category->name }}
@endif

{{ $post->title }}

{{ optional($post->author)->name ?? __('Admin') }} ยท {{ optional($post->published_at)->format('F d, Y') }}
{{ $post->title }}
{!! $post->content !!}
@if($relatedPosts->isNotEmpty())

{{ __('Related Posts') }}

@foreach($relatedPosts as $related) @endforeach
@endif
{{ __('Recent Posts') }}
@forelse($recentPosts as $recent)
{{ $recent->title }}
{{ optional($recent->published_at)->format('M d, Y') }}
@empty

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

@endforelse {{ __('Back to Blog') }}
@endsection