In the admin panel in the feedback section I added a date.

This commit is contained in:
Leonid Nikitin 2024-05-03 00:01:39 +05:00
parent 303af6f203
commit 35c2368ae2
Signed by: kor-elf
GPG Key ID: 3C0F720C170F6E1D
2 changed files with 8 additions and 0 deletions

View File

@ -8,6 +8,7 @@
<thead class="thead-light">
<tr>
<th class="border-0">{{ __('admin-sections.Project') }}</th>
<th class="border-0">{{ __('validation.attributes.date') }}</th>
<th class="border-0" style="width: 100%;">{{ __('site.attributes.message') }}</th>
<th class="border-0">{{ __('site.attributes.name') }}</th>
<th class="border-0">{{ __('site.attributes.email') }}</th>
@ -17,6 +18,9 @@
@foreach($feedbacks as $feedback)
<tr>
<td>{{ $feedback->project->name }}</td>
<td data-bs-toggle="tooltip" data-bs-placement="top" title="{{ $feedback->created_at->timezone(\App\Helpers\Helpers::getUserTimeZone())->isoFormat('LLL') }}">
{{ $feedback->created_at->diffForHumans() }}
</td>
<td>{!! $feedback->message !!}</td>
<td>
<p>{{ $feedback->name }}</p>

View File

@ -8,6 +8,7 @@
<table class="table table-centered table-nowrap mb-0 rounded">
<thead class="thead-light">
<tr>
<th class="border-0">{{ __('validation.attributes.date') }}</th>
<th class="border-0" style="width: 100%;">{{ __('site.attributes.message') }}</th>
<th class="border-0">{{ __('site.attributes.name') }}</th>
<th class="border-0">{{ __('site.attributes.email') }}</th>
@ -16,6 +17,9 @@
<tbody>
@foreach($feedbacks as $feedback)
<tr>
<td data-bs-toggle="tooltip" data-bs-placement="top" title="{{ $feedback->created_at->timezone(\App\Helpers\Helpers::getUserTimeZone())->isoFormat('LLL') }}">
{{ $feedback->created_at->diffForHumans() }}
</td>
<td>{!! $feedback->message !!}</td>
<td>
<p>{{ $feedback->name }}</p>