@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') {{$blog->title}} @if($blog->image != "") @endif {{$blog->title}} {{$blog->created_at->format('d M Y')}} {{$blog->author->name}} {{$blog->comments->count()}} {{$blog->category->name}} {!! $blog->content !!} @lang('labels.frontend.blog.share_this_news') BY: {{$blog->author->name}} @if($previous != "") Previous Post @endif @if($next != "") Next Post @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')}} {{$item->title}} @endforeach @endif @lang('labels.frontend.blog.post_comments') @if(auth()->check()) @csrf @lang('labels.frontend.blog.write_a_comment') {{ $errors->first('comment', ':message') }} @lang('labels.frontend.blog.add_comment') @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) @lang('labels.general.delete') @endif {{$item->comment}} @endforeach @else @lang('labels.frontend.blog.no_comments_yet') @endif @include('frontend.blogs.partials.sidebar') @endsection
{!! $blog->content !!}
{{$item->comment}}
@lang('labels.frontend.blog.no_comments_yet')
@if($item->user_id == auth()->user()->id)
{{$item->comment}}