@extends('layouts.admin.master') @section('content') @include('admin.alert.alert')
{{ __('content.comments') }}
@csrf @method('PATCH')
@if (count($comments) > 0) @php $i = 1; @endphp @foreach ($comments as $comment) @endforeach
# {{ __('content.name') }} {{ __('content.email') }} {{ __('content.comment') }} {{ __('content.approval_status') }} {{ __('content.action') }}
{{ $i++ }} {{ $comment->name }} {{ $comment->email }} {{ $comment->comment }} @if ($comment->approval == 0) {{ __('content.pending_approval') }} @else {{ __('content.approval') }} @endif
@if ($comment->approval == 0)
@method('PUT') @csrf
@endif
@else {{ __('content.not_yet_created') }} @endif
@endsection