@extends('front.layouts.app') @section('seo') {{-- Meta Description --}} {{-- Meta Keywords --}} @if (!empty($post->meta['keywords'])) @endif {{-- Canonical URL --}} {{-- Open Graph (WhatsApp / Facebook / LinkedIn previews) --}} @if ($post->featured_image) @endif {{-- Twitter Card --}} @if ($post->featured_image) @endif @endsection @section('content')
{{ $post->title }}
@foreach ($post->categories ?? [$post->category] as $category) {{ $category->name ?? 'Uncategorized' }} @endforeach
{{--
--}}

{{ $post->title }}


{{--
{{ $post->published_at?->format('F j, Y') }} | {{ $post->views ?? 0 }}
--}}
Published: {{ $post->published_at?->format('M d, Y') }} Updated: {{ $post->updated_at?->format('M d, Y') }} {{ number_format($post->views ?? 0) }} views
{!! $post->content !!}
{{-- Showing tags of the current blog --}}
@if ($post->tags && $post->tags->count() > 0)
@foreach ($post->tags as $tag) {{ $tag->name }} @endforeach
@endif

Share this article

{{-- don't remove this code as this is for authors which will be added later and this ready code --}} {{--

Author

@if ($post->author) {{ $post->author->name }}

{{ $post->author->designation }}

@else Unknown Author @endif

--}}

Contents

{{-- Recent Posts Section (Below, Horizontal) --}}

{{-- Relevant Posts --}} More {{ $post->category->name }} stories

@forelse($relatedPosts as $related)
@if ($related->featured_image) {{ $related->title }} @else @endif @if ($related->category)
{{ strtoupper($related->category->name) }}
@endif
@empty

No related posts found

@endforelse
@endsection