feat: update the comments.blade.php

This commit is contained in:
2026-08-18 19:51:15 +03:30
parent f3b57246f0
commit 88df60a154
+38 -44
View File
@@ -5,50 +5,44 @@
@section('account-content') @section('account-content')
<div class="col-lg-9">
<div class="user-profile-wrapper">
<div class="col-lg-12">
<div class="user-profile-card profile-booking">
<h4 class="user-profile-card-title">نظرات من ({{ $comments->count() }})</h4>
<div class="col-lg-9"> <div class="table-responsive">
<div class="user-profile-wrapper"> <table class="table text-nowrap">
<div class="col-lg-12"> <thead>
<div class="user-profile-card profile-booking"> <tr>
<h4 class="user-profile-card-title">نظرات من ({{ $comments->count() }})</h4> <th>شماره</th>
<div class="table-responsive"> <th>نظر</th>
<table class="table text-nowrap"> <th>مربوط به</th>
<thead> <th>تاریخ</th>
<tr> </tr>
<th>شماره</th> </thead>
<th>نظر</th> <tbody>
<th>مربوط به</th> @forelse($comments as $index => $comment)
<th>تاریخ</th> <tr>
</tr> <td>{{ $index + 1 }}.</td>
</thead> <td>
<tbody> <p>{{ $comment->body }}</p>
@forelse($comments as $index => $comment) </td>
<tr> <td>
<td>{{ $index + 1 }}.</td> {{ $comment->commentable->title ?? $comment->commentable->flight_number ?? '-' }}
<td> </td>
<p>{{ $comment->body }}</p> <td>{{ $comment->created_at->format('Y/m/d') }}</td>
</td> </tr>
<td> @empty
{{ $comment->commentable->title ?? $comment->commentable->flight_number ?? '-' }} <tr>
</td> <td colspan="4" class="text-center">هنوز نظری ثبت نکردی.</td>
<td>{{ $comment->created_at->format('Y/m/d') }}</td> </tr>
</tr> @endforelse
@empty </tbody>
<tr> </table>
<td colspan="4" class="text-center">هنوز نظری ثبت نکردی.</td>
</tr>
@endforelse
</tbody>
</table>
</div>
</div>
</div>
</div>
</div> </div>
</div>
</div>
</div>
</div>
@endsection @endsection