@extends('admin.layouts.app')
@section('content')
{{ $pageTitle }}
{{ trans('admin/main.total_comments') }}
{{ trans('admin/main.published_comments') }}
{{ trans('admin/main.pending_comments') }}
{{ trans('admin/main.comments_reports') }}
@foreach($comments as $comment)
{{ trans('admin/main.comment') }}
{{ trans('admin/main.created_date') }}
{{ trans('admin/main.user') }}
@if($page == 'webinars')
{{ trans('admin/main.class') }}
@elseif($page == 'bundles')
{{ trans('update.bundle') }}
@elseif($page == 'blog')
{{ trans('admin/main.blog') }}
@elseif($page == 'products')
{{ trans('update.product') }}
@endif
{{ trans('admin/main.type') }}
{{ trans('admin/main.status') }}
{{ trans('admin/main.action') }}
@endforeach
{{ dateTimeFormat($comment->created_at, 'j M Y | H:i') }}
{{ $comment->user->full_name }}
{{ $comment->$itemRelation->title }}
{{ (empty($comment->reply_id)) ? trans('admin/main.main_comment') : trans('admin/main.replied') }}
{{ ($comment->status == 'pending') ? trans('admin/main.pending') : trans('admin/main.published') }}
@can('admin_comments_status')
@if($comment->status == 'pending')
@else
@endif
@endcan
@can('admin_comments_reply')
@endcan
@can('admin_comments_edit')
@endcan
@can('admin_comments_delete')
@include('admin.includes.delete_button',['url' => getAdminPanelUrl().'/comments/'. $page .'/'.$comment->id.'/delete','btnClass' => ''])
@endcan