@extends('site.layouts.main') @section('meta_title'){{ trans('messages.Adnan Eltaher') . ' | ' . $article->{'title_' . App::getLocale()} }}@stop @section('content') {{ trans('Home') }} {{ trans('messages.Blog') }} {{ $article->blogCategory->{'name_' . App::getLocale()} }} {{ 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, []) !!} {{ trans('messages.Write your comment here') }} {!! Form::textarea('comment', null, [ 'id' => 'comment', 'class' => 'form-control', 'rows' => '3', ]) !!} {{ trans('messages.Send') }} {!! 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
{!! $article->{'body_' . App::getLocale()} !!}
شارك الموضوع
{{ trans('messages.Comments') }}
{{ $comment->user->name }}
{{ time_elapsed_string(date('Y-m-d H:i', strtotime($comment->created_at))) }}
{{ $comment->comment }}
{{ trans('messages.There are no comments yet') }}
@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 }}
{{ trans('messages.There are no comments yet') }}