@extends('admin.layouts.app') @section('content')

{{ trans('admin/main.comments_reports') }}

@if(!empty($comment))

{{ trans('admin/main.reported_comment') }}

{{ trans('admin/main.user') }} {{ trans('admin/main.comment') }} {{ trans('public.date') }} {{ trans('admin/main.status') }} {{ trans('admin/main.type') }} {{ trans('admin/main.action') }}
{{ $comment->user->id .' - '.$comment->user->full_name }} {{ nl2br($comment->comment) }} {{ dateTimeFormat($comment->created_at, 'j M Y | H:i') }} {{ ($comment->status == 'pending') ? trans('admin/main.pending') : trans('admin/main.published') }} {{ (empty($comment->reply_id)) ? trans('admin/main.main_comment') : trans('admin/main.replied') }} @can('admin_comments_status') {{ trans('admin/main.'.(($comment->status == 'pending') ? 'publish' : 'pending')) }} @endcan @can('admin_comments_edit') @endcan
@can('admin_comments_reply') {{ trans('admin/main.reply') }} @endcan @can('admin_comments_delete') @include('admin.includes.delete_button',['url' => getAdminPanelUrl().'/'. $page .'/comments/'.$comment->id.'/delete?redirect_to='.getAdminPanelUrl().'/'. $page .'/comments/reports','btnClass' => 'btn-sm mt-2']) @endcan
@endif

{{ trans('admin/main.report_message') }}

{{ nl2br($report->message) }}

{{ trans('admin/main.report_detail') }}

{{ trans('admin/main.user') }} {{ trans('admin/main.post') }} {{ trans('site.message') }} {{ trans('public.date') }} {{ trans('admin/main.action') }}
{{ $report->user->id .' - '.$report->user->full_name }} {{ $report->$itemRelation->title }} {{ nl2br($report->message) }} {{ dateTimeFormat($report->created_at, 'j M Y | H:i') }} @can('admin_'. $itemRelation .'_comments_reports') @include('admin.includes.delete_button',['url' => getAdminPanelUrl().'/'. $page .'/comments/reports/'.$report->id.'/delete?redirect_to='.getAdminPanelUrl().'/'. $page .'/comments/reports','btnClass' => 'btn-sm']) @endcan
@endsection