@extends('layouts.app') @section('meta-tags') @endSection @section('title', $post->getTranslatedAttribute('title')) @section('content')
{{ $post->created_at->diffForHumans() }}
Category:  {{ is_null($post->category_id)? "Uncategorized" : $post->category->name}}
{!! clean($post->getTranslatedAttribute('body')) !!}

Comments

@if (count($related_posts)>0)

Related


@foreach ($related_posts as $post)

{{$post->getTranslatedAttribute('title')}}

{{Str::words($post->excerpt,10)}} Read More

By {{ is_null($post->authorId)?'Admin':$post->authorId->name }}

{{$post->created_at->diffForhumans()}}

@endforeach
@endif @endSection