@extends('site.layouts.main') @section('meta_title'){{ trans('messages.Adnan Eltaher') . ' | ' . $article->{'title_' . App::getLocale()} }}@stop @section('content')
{{ time_elapsed_string(date('Y-m-d H:i', strtotime($article->created_at))) }}

{{ $article->{'title_' . App::getLocale()} }}

{!! $article->{'body_' . App::getLocale()} !!}

@guest @else
{!! Form::open([ 'route' => 'blogCommentStore', 'files' => true, 'id' => 'add-blog-comment-form', ]) !!} {!! Form::hidden('blog_id', $article->id, []) !!} {!! Form::hidden('user_id', Auth::user()->id, []) !!}
{!! Form::textarea('comment', null, [ 'id' => 'comment', 'class' => 'form-control', 'rows' => '3', ]) !!}
{!! Form::Close() !!}

@endguest

{{ trans('messages.Comments') }}

@forelse ($article->comments as $comment)

{{ $comment->user->name }}

{{ time_elapsed_string(date('Y-m-d H:i', strtotime($comment->created_at))) }}

{{ $comment->comment }}

@empty

{{ trans('messages.There are no comments yet') }}

@endforelse
@endsection @section('script') @endsection