@extends('admin.layouts.app') @push('styles_top') @endpush @section('content')

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

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

{{ nl2br($comment->comment) }}


@if(!empty($comment->replies) and $comment->replies->count() > 0)

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

@foreach($comment->replies as $reply) @endforeach
{{ trans('admin/main.user') }} {{ trans('admin/main.comment') }} {{ trans('public.date') }} {{ trans('admin/main.status') }} {{ trans('admin/main.type') }} {{ trans('admin/main.action') }}
{{ $reply->user->id .' - '.$reply->user->full_name }} {{ dateTimeFormat($reply->created_at, 'Y M j | H:i') }} {{ ($reply->status == 'pending') ? trans('admin/main.pending') : trans('admin/main.published') }} {{ (empty($reply->reply_id)) ? trans('admin/main.main_comment') : trans('admin/main.replied') }} @can('admin_comments_status') @if($reply->status == 'pending') @else @endif @endcan @can('admin_comments_edit') @endcan @can('admin_comments_delete') @include('admin.includes.delete_button',['url' => getAdminPanelUrl().'/comments/'. $page .'/'.$reply->id.'/delete','btnClass' => 'btn-sm mt-2']) @endcan
@endif
{{ csrf_field() }}
@error('comment')
{{ $message }}
@enderror
@endsection @push('scripts_bottom') @endpush