@php Theme::set('pageTitle', __('Blog Details')) @endphp

{{ $post->name }}

  • {{ number_format($post->views) }}
  • {{ $post->created_at->translatedFormat('M d, Y') }}
{!! BaseHelper::clean($post->content) !!}
@if ($post->tags->isNotEmpty())
@endif
@if(($posts = get_related_posts($post->id, 2)) && $posts->isNotEmpty())
@if($prevPost = $posts[0])
@endif @if ($post->firstCategory)
{{ $post->firstCategory->name }}
@endif @if($nextPost = (isset($posts[1]) ? $posts[1] : null))
@endif
@else
@endif @php($author = $post->author)
{{ $author->getMetaData('display_name', true) }}
{{ $author->getMetaData('display_name', true) ?: $author->name }}
@if ($socials = $author->getMetaData('socials', true))
@foreach(['facebook', 'twitter', 'instagram', 'behance', 'linkedin'] as $social) @if ($url = Arr::get($socials, $social)) @switch($social) @case('twitter') @break @case('facebook') @break @case('instagram') @break @case('behance') @break @case('linkedin') @break @endswitch @endif @endforeach
@endif
{{ $author->getMetaData('bio', true) }}