fix:edit navbar and reviews blade

This commit is contained in:
2026-08-17 14:09:40 +03:30
parent 577bb9ae31
commit 4095f0bed2
2 changed files with 20 additions and 7 deletions
+17 -4
View File
@@ -10,17 +10,18 @@
<div class="listing-review-author">
<img
src="{{ $comment->user->file ? asset('storage/'.$comment->user->file->path) : asset('assets/img/account/01.jpg') }}"
src="{{ $comment->user?->file
? asset('storage/'.$comment->user->file->path)
: asset('assets/img/account/01.jpg') }}"
alt
>
<div class="listing-review-author-info">
<div>
<h6>
{{ $comment->user->first_name }}
{{ $comment->user->last_name }}
{{ $comment->user?->first_name }}
{{ $comment->user?->last_name }}
</h6>
<span>
<i class="far fa-clock"></i>
{{ $comment->created_at->toJalali()->format('Y/m/d') }}
@@ -40,7 +41,19 @@
<div class="listing-review-form">
<h4>نظر بدهید</h4>
@if($errors->any())
<div class="alert alert-danger">
@foreach($errors->all() as $error)
<div>{{ $error }}</div>
@endforeach
</div>
@endif
@if(session('success'))
<div class="alert alert-success">
{{ session('success') }}
</div>
@endif
<form action="{{ route('flights.comments.store', $flight) }}" method="POST">
@csrf