@php
$is_reply = (isset($is_reply) && $is_reply);
@endphp
@if (!$is_reply)
@foreach ($comment->children as $childComment)
@if ($childComment->isApproved())
@include(Theme::viewName('partials.photo_single_comment'), ['comment' => $childComment])
@elseif (!$childComment->isModerated() && Gate::allows('moderate-comments', $photo))
@include(Theme::viewName('partials.photo_single_comment_moderate'), ['comment' => $childComment])
@endif
@endforeach
@endif
{{ $comment->authorDisplayName() }}
{{ date(UserConfig::get('date_format'), strtotime($comment->created_at)) }}
{!! $comment->textAsHtml() !!} @if (!$is_reply && ($comment->depth() < UserConfig::get('photo_comments_thread_depth') - 1) && \App\User::currentOrAnonymous()->can('post-comment', $photo)) @lang('gallery.photo_comments_reply_action') @endif