@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.create_comment')

@else @foreach ($comments as $comment) @endforeach

{{ $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() !!}
@lang('forms.delete_action')
{{ $comments->links() }}
@endif
@endsection