feat: complete comment history
This commit is contained in:
@@ -0,0 +1,123 @@
|
||||
@extends('account.layouts.app')
|
||||
|
||||
@section('title', 'نظرات من')
|
||||
|
||||
@section('account-content')
|
||||
|
||||
|
||||
<div class="col-lg-9">
|
||||
|
||||
<div class="user-profile-wrapper">
|
||||
|
||||
<div class="user-profile-card">
|
||||
|
||||
<h4 class="user-profile-card-title">
|
||||
نظرات من
|
||||
</h4>
|
||||
|
||||
<div class="row mt-30">
|
||||
|
||||
@forelse($comments as $comment)
|
||||
|
||||
<div class="col-12 mb-4">
|
||||
|
||||
<div class="review-item">
|
||||
|
||||
<div class="review-item-content">
|
||||
|
||||
|
||||
<div class="mb-2">
|
||||
|
||||
@if($comment->tour)
|
||||
|
||||
<span class="badge">
|
||||
تور
|
||||
</span>
|
||||
|
||||
@elseif($comment->flight)
|
||||
|
||||
<span class="badge">
|
||||
پرواز
|
||||
</span>
|
||||
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<h5>
|
||||
@if($comment->tour)
|
||||
|
||||
{{ $comment->tour->title }}
|
||||
|
||||
@elseif($comment->flight)
|
||||
|
||||
{{ $comment->flight->title }}
|
||||
|
||||
@endif
|
||||
</h5>
|
||||
|
||||
|
||||
|
||||
<p>
|
||||
{{ $comment->comment }}
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
<small>
|
||||
{{ $comment->created_at->format('Y/m/d') }}
|
||||
</small>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@empty
|
||||
|
||||
<div class="col-12">
|
||||
|
||||
<div class="text-center py-5">
|
||||
|
||||
<i class="far fa-comment-alt fa-3x mb-3"></i>
|
||||
|
||||
<h5>
|
||||
هنوز نظری ثبت نکردهاید.
|
||||
</h5>
|
||||
|
||||
<p>
|
||||
نظراتی که برای تورها یا پروازها ثبت کنید،
|
||||
در این قسمت نمایش داده میشوند.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@endforelse
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{{-- Pagination --}}
|
||||
@if($comments->hasPages())
|
||||
|
||||
<div class="pagination-area my-4">
|
||||
|
||||
{{ $comments->links() }}
|
||||
|
||||
</div>
|
||||
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@endsection
|
||||
Reference in New Issue
Block a user