feat:compele comments for dashboard side
This commit is contained in:
@@ -0,0 +1,90 @@
|
||||
@extends('account.layouts.app')
|
||||
|
||||
@section('title', 'نظرات من')
|
||||
|
||||
@section('account-content')
|
||||
|
||||
<div class="user-profile-wrapper">
|
||||
|
||||
<div class="col-lg-12 mb-4">
|
||||
|
||||
<div class="user-profile-card">
|
||||
|
||||
<h4 class="user-profile-card-title">
|
||||
نظرات من
|
||||
</h4>
|
||||
|
||||
@forelse($comments as $comment)
|
||||
|
||||
<div class="border-bottom py-4">
|
||||
|
||||
<div class="d-flex justify-content-between">
|
||||
|
||||
<div>
|
||||
|
||||
@if($comment->flight)
|
||||
|
||||
<h5>
|
||||
نظر درباره پرواز
|
||||
</h5>
|
||||
|
||||
<p>
|
||||
{{ $comment->flight->departureAirport->city->name }}
|
||||
<i class="far fa-exchange"></i>
|
||||
{{ $comment->flight->arrivalAirport->city->name }}
|
||||
</p>
|
||||
|
||||
@elseif($comment->tour)
|
||||
|
||||
<h5>
|
||||
نظر درباره تور
|
||||
</h5>
|
||||
|
||||
<p>
|
||||
{{ $comment->tour->title }}
|
||||
</p>
|
||||
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<p class="mt-3">
|
||||
{{ $comment->comment }}
|
||||
</p>
|
||||
|
||||
|
||||
@if($comment->created_at)
|
||||
|
||||
<small class="text-muted">
|
||||
{{ $comment->created_at->toJalali()->format('Y/m/d') }}
|
||||
</small>
|
||||
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
@empty
|
||||
|
||||
<div class="text-center py-5">
|
||||
|
||||
<p>
|
||||
هنوز نظری ثبت نکردهاید.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
@endforelse
|
||||
|
||||
<div class="mt-4">
|
||||
{{ $comments->links() }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
Reference in New Issue
Block a user