@extends(getTemplate().'.layouts.app') @section('content')

{{ $post->title }}

@if(!empty($post->author)) {{ trans('public.created_by') }} @if($post->author->isTeacher()) {{ $post->author->full_name }} @elseif(!empty($post->author->full_name)) {{ $post->author->full_name }} @endif @endif {{ trans('public.in') }} {{ $post->category->title }} {{ dateTimeFormat($post->created_at, 'j M Y') }}
{{ trans('public.share') }}
{!! nl2br($post->content) !!}
{{-- post Comments --}} @if($post->enable_comment) @include('web.default.includes.comments',[ 'comments' => $post->comments, 'inputName' => 'blog_id', 'inputValue' => $post->id ]) @endif {{-- ./ post Comments --}}
@if(!empty($post->author) and !empty($post->author->full_name))

{{ $post->author->full_name }}

@if(!empty($post->author->role)) {{ $post->author->role->caption }} @endif
@endif {{-- categories --}}

{{ trans('categories.categories') }}

@foreach($blogCategories as $blogCategory) {{ $blogCategory->title }} @endforeach
{{-- recent_posts --}}

{{ trans('site.recent_posts') }}

@foreach($popularPosts as $popularPost)
{{ $popularPost->title }}

{{ truncate($popularPost->title,40) }}

{{ dateTimeFormat($popularPost->created_at, 'j M Y') }}
@endforeach {{ trans('home.view_all') }} {{ trans('site.posts') }}
@include('web.default.blog.share_modal') @endsection @push('scripts_bottom') @endpush