@extends('core::base.layouts.master') @section('title') {{ translate('Post Comment') }} @endsection @section('custom_css') @include('core::base.includes.data_table.css') @endsection @section('main_content')
| {{ translate('Author') }} | {{ translate('Comment') }} | @if (!request()->blog){{ translate('In Response to') }} | @endif{{ translate('Submitted on') }} | |
|---|---|---|---|---|
|
@php
$comment_setting = commentFormSettings();
$author = Core\Models\User::where('id', $comment->user_id)->first();
$author_image = $comment->user_type == 'admin' || $comment->user_type == 'user' ? userImage($author) : null;
$author_name = $comment->user_type == 'admin' || $comment->user_type == 'user' ? $author->name : null;
$author_name = isset($author_name) ? $author_name : $comment->user_name;
$author_email = $comment->user_type == 'admin' || $comment->user_type == 'user' ? $author->email : $comment->user_email;
@endphp
{{ $author_name }}
@if (isset($comment->user_website) && $comment->user_website != '') {{ $comment->user_website }} @endif {{ $author_email }} {{ $comment->user_ip_address }} |
@if (isset($comment->parent)) @php $parent_comment = Core\Models\TlBlogComment::where('id', $comment->parent)->first()->user_name; @endphp {{ translate('In reply to') }} {{ $parent_comment }} @endif {{ $comment->comment }} | {{-- Check if Comments is Filter By Blog Or not --}} @if (!request()->blog){{ getCommentCount([['tl_blog_comments.blog_id', '=', $comment->blog_id], ['tl_blog_comments.status', '=', config('settings.blog_comment_status.pending')]]) }} {{ getCommentCount([['tl_blog_comments.blog_id', '=', $comment->blog_id], ['tl_blog_comments.status', '=', config('settings.blog_comment_status.approve')]]) }} | @endif{{ getFormatedDateTime($comment->comment_date, 'Y/m/d \a\t H:i a') }} |
{{ translate('Showing') }} @if (!request()->input('page') || request()->input('page') == 1) 1 to {{ count($comments) }} @else @php if (request()->input('per_page')) { $per_page_count = request()->input('per_page'); } else { $per_page_count = 10; } $start_count = ((int) request()->input('page') - 1) * $per_page_count + 1; if (request()->input('page') == $comments->lastPage()) { $end_count = $comments->total(); } else { $end_count = (int) request()->input('page') * $per_page_count; } @endphp {{ $start_count . ' to ' . $end_count }} @endif {{ translate('items of') }} {{ $comments->total() }}
{{ translate('Comment Reply') }}