109 lines
5.6 KiB
PHP
109 lines
5.6 KiB
PHP
<?php $__env->startSection('title' , 'کامنت های من'); ?>
|
|
|
|
<?php $__env->startSection('account-content'); ?>
|
|
<div class="user-profile-wrapper">
|
|
|
|
<?php if(session('success')): ?>
|
|
<div class="col-lg-12 mb-3">
|
|
<div class="alert alert-success">
|
|
<?php echo e(session('success')); ?>
|
|
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<?php if(session('error')): ?>
|
|
<div class="col-lg-12 mb-3">
|
|
<div class="alert alert-danger">
|
|
<?php echo e(session('error')); ?>
|
|
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<div class="col-lg-12">
|
|
<div class="user-profile-card">
|
|
<div class="d-flex justify-content-between align-items-center mb-4">
|
|
<h4 class="user-profile-card-title mb-0">
|
|
<i class="far fa-comments"></i>
|
|
کامنتهای من
|
|
</h4>
|
|
|
|
<span class="badge bg-primary">
|
|
<?php echo e($comments->total()); ?> کامنت
|
|
</span>
|
|
</div>
|
|
|
|
<?php $__empty_1 = true; $__currentLoopData = $comments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $comment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
|
|
<div class="border rounded p-3 mb-3">
|
|
<div class="d-flex justify-content-between align-items-center mb-3">
|
|
<?php if($comment->tour): ?>
|
|
<span class="badge bg-info px-3 py-2" style="font-size: 0.95rem;">
|
|
<i class="fas fa-umbrella-beach me-1"></i>
|
|
تور:
|
|
<a href="<?php echo e(route('tours.show', $comment->tour->id)); ?>"
|
|
class="text-white text-decoration-none fw-semibold">
|
|
<?php echo e($comment->tour->title ?? ('تور شماره ' . $comment->tour->id)); ?>
|
|
|
|
</a>
|
|
</span>
|
|
<?php elseif($comment->flight): ?>
|
|
<span class="badge bg-primary px-3 py-2" style="font-size: 0.95rem;">
|
|
<i class="fas fa-plane-departure me-1"></i>
|
|
پرواز:
|
|
<a href="<?php echo e(route('flights.show', $comment->flight->id)); ?>"
|
|
class="text-white text-decoration-none fw-semibold">
|
|
<?php echo e($comment->flight->flight_number ?? ('پرواز شماره ' . $comment->flight->id)); ?>
|
|
|
|
</a>
|
|
</span>
|
|
<?php else: ?>
|
|
<span class="badge bg-secondary px-3 py-2" style="font-size: 0.95rem;">
|
|
عمومی
|
|
</span>
|
|
<?php endif; ?>
|
|
<span class="text-muted">
|
|
<i class="far fa-calendar-alt"></i>
|
|
<?php echo e(\Hekmatinasser\Verta\Verta::instance($comment->created_at)->format('Y/m/d - H:i')); ?>
|
|
|
|
</span>
|
|
|
|
<?php if(isset($comment->status)): ?>
|
|
<?php if($comment->status == \App\Enums\CommentStatus::PENDING): ?>
|
|
<span class="badge bg-success"><?php echo e($comment->status->label()); ?></span>
|
|
<?php elseif($comment->status == \App\Enums\CommentStatus::CONFIRMED): ?>
|
|
<span class="badge bg-warning text-dark"><?php echo e($comment->status->label()); ?></span>
|
|
<?php elseif($comment->status == \App\Enums\CommentStatus::REJECTED): ?>
|
|
<span class="badge bg-danger"><?php echo e($comment->status->label()); ?></span>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<p class="mb-0">
|
|
<?php echo e($comment->content); ?>
|
|
|
|
</p>
|
|
</div>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
|
|
<div class="text-center py-5">
|
|
<i class="far fa-comment-dots fa-3x text-muted mb-3"></i>
|
|
<h5>هنوز کامنتی ثبت نکردهاید.</h5>
|
|
<p class="text-muted mb-0">
|
|
بعد از ثبت نظر برای تورها یا پروازها، کامنتهایتان در این بخش نمایش داده میشوند.
|
|
</p>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<?php if($comments->hasPages()): ?>
|
|
<div class="mt-4 d-flex justify-content-center">
|
|
<?php echo e($comments->links()); ?>
|
|
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<?php $__env->stopSection(); ?>
|
|
|
|
<?php echo $__env->make('account.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\ASUS\Desktop\airline-agency\resources\views/account/comments.blade.php ENDPATH**/ ?>
|