@extends('frontend-rtl.layouts.app'.config('theme_layout')) @section('title', ($blog->meta_title) ? $blog->meta_title : app_name() ) @section('meta_description', $blog->meta_description) @section('meta_keywords', $blog->meta_keywords) @section('content')
@if($blog->image != "")
@endif

{{$blog->title}}

{{$blog->created_at->format('d M Y')}} {{$blog->author->name}} {{$blog->comments->count()}} {{$blog->category->name}}

{!! $blog->content !!}

BY: {{$blog->author->name}}
@if($previous != "") @endif @if($next != "") @endif

@lang('labels.frontend.blog.related_news')

@if(count($related_news) > 0)
@foreach($related_news as $item)
image != "") style="background-image: url({{asset('storage/uploads/'.$item->image)}})" @endif>
{{$item->created_at->format('d M Y')}}
@endforeach
@endif

@lang('labels.frontend.blog.post_comments')

@if(auth()->check())
@csrf
{{ $errors->first('comment', ':message') }}
@else @lang('labels.frontend.blog.login_to_post_a_comment') @endif
@if($blog->comments->count() > 0)
    @foreach($blog->comments as $item)
  • @lang('labels.frontend.blog.by'): {{$item->name}}
    {{$item->created_at->diffforhumans()}}

    @if($item->user_id == auth()->user()->id) @endif

    {{$item->comment}}

  • @endforeach
@else

@lang('labels.frontend.blog.no_comments_yet')

@endif
@include('frontend.blogs.partials.sidebar')
@endsection