@section('title', __('site.page_comments_title')) @section('head') @endsection @include('includes/header') @include('includes/topSite')

{{ __('site.page_comments_h1') }}

@if($allComments->count() == 0)
{{ __('site.page_comments_norec') }}
@else @php foreach($allComments as $comment){ $reply = DB::connection('mysql_site_' . session('serverID'))->table('comments_reply')->where('comment_id','=',$comment->id)->get()->first(); $post = DB::connection('mysql_site_' . session('serverID'))->table('posts')->where('id','=',$comment->source_id)->get()->first(); @endphp
{{ __('site.page_comments_source') }}: @if(isset($post) && $comment->source === 'post') {{ $comment->source }} @else {{ $comment->source }} @endif
{{ $comment->name }}
@if($comment->status == 0) @endif {{ DateShort($comment->created_at) }} - IP: {{ $comment->ip }}
{{ $comment->message }}
{{ __('site.page_comments_admin') }} {{ __('site.page_comments_remove_answer') }} @if(!$reply)
@endif {{ ($reply ? $reply->message : '') }}
@if(!$reply) @endif
@php } @endphp {{ $allComments->links('vendor.pagination.default') }} @endif
@include('includes/footer')