@extends(Theme::viewName('layout')) @section('title', trans('admin.list_comments_title')) @section('breadcrumb') @endsection @section('content')

@yield('title')

@lang('admin.list_comments_intro')
@if (count($comments) == 0)

@lang('admin.no_comments_title')

@lang('admin.no_comments_text')

@lang('admin.no_comments_text_2')

@else
{{ csrf_field() }} @foreach ($comments as $comment) @endforeach

{{-- TODO: edit comments {{ $comment->name }} --}} {{ $comment->name }}
{{ trans('admin.comment_summary', ['album_name' => $comment->photo->album->name, 'photo_name' => $comment->photo->name, 'comment_date' => date(UserConfig::get('date_format'), strtotime($comment->created_at))]) }}

{!! $comment->textAsHtml() !!}

@if (!$comment->isModerated()) @lang('admin.comment_badge.new') @elseif ($comment->isApproved()) @lang('admin.comment_badge.approved') @elseif ($comment->isRejected()) @lang('admin.comment_badge.rejected') @endif

@if (!$comment->isModerated()) @lang('forms.approve_action') @lang('forms.reject_action') @elseif ($comment->isApproved()) @lang('forms.reject_action') @elseif ($comment->isRejected()) @lang('forms.approve_action') @endif
@lang('forms.delete_action')
{{ $comments->links() }}
@endif
@endsection