@extends('themes.alnakhlawy.app') @section('content')

{{$post['title']}}

{{$post['user']['name']}} {{ (new Carbon\Carbon($post['updated_at']))->diffForHumans()}} {{count($post['comments'])}} {{__('Comments')}}
{!! $post['content'] !!}

{{count($post['comments'])}} {{__('comments')}}

    @forelse($post['comments'] ?? [] as $Comment)
  • {{$Comment['name']}}
    {{$Comment['user']['name']}}{{$Comment['name']}}
    {{$Comment->created_at->diffForHumans()}}

    {{$Comment['body']}}

      @foreach($Comment['replies'] ?? [] as $reply)
    • {{$reply['name']}}
      {{$reply['user']['name']}}{{$reply['name']}}
      {{$reply->created_at->diffForHumans()}}

      {{$reply['body']}}

    • @endforeach
  • @empty
  • No, comments yet

  • @endforelse
@if(\Config::get('app.comments.status') == "opened" || \Config::get('app.comments.status') == "FacebookAndComments" || (\Config::get('app.comments.status') == "Member" && Auth::check()))

{{__('Leave a comment')}}


@if(!Auth::check())
@endif
@else @if(\Config::get('app.comments.status') == "Member" && !Auth::check())

{{__('Comments for Member Only')}}

@else @if(\Config::get('app.comments.status') != "Facebook")

{{__('Comments Closed')}}

@endif @endif @endif
@include('themes.alnakhlawy.inc.aside')
@endsection @section('scripts') @endsection