fix:edit navbar and reviews blade
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user