57 lines
2.6 KiB
PHP
57 lines
2.6 KiB
PHP
<div class="col-md-6 col-lg-3">
|
|
<div class="activity-item wow fadeInUp" data-wow-duration="1s" data-wow-delay=".25s">
|
|
<div class="activity-img">
|
|
<?php if($tour->coverImage?->file): ?>
|
|
<img src="<?php echo e(getFileUrl($tour->coverImage->file_id)); ?>"
|
|
class="w-100 h-100"
|
|
alt="<?php echo e($tour->title); ?>">
|
|
<?php else: ?>
|
|
<img src="<?php echo e(asset('assets/Admin/images/tour/single-2.jpg')); ?>"
|
|
class="w-100 h-100"
|
|
alt="<?php echo e($tour->title); ?>">
|
|
<?php endif; ?>
|
|
<?php if(auth()->guard()->check()): ?>
|
|
<form action="<?php echo e(route('accounts.favorites.tour.toggle', ['tour' => $tour->id])); ?>"
|
|
method="POST"
|
|
class="favorite-form">
|
|
<?php echo csrf_field(); ?>
|
|
|
|
<button type="submit"
|
|
class="add-wishlist border-0"
|
|
title="افزودن به علاقهمندیها">
|
|
<i class="far fa-heart"></i>
|
|
</button>
|
|
</form>
|
|
<?php else: ?>
|
|
<a href="<?php echo e(route('auth.login.index')); ?>"
|
|
class="add-wishlist"
|
|
title="برای افزودن به علاقهمندیها وارد شوید">
|
|
<i class="far fa-heart"></i>
|
|
</a>
|
|
<?php endif; ?>
|
|
</div>
|
|
<div class="activity-content">
|
|
<h4 class="activity-title">
|
|
<a href="#"><?php echo e($tour->title); ?></a>
|
|
</h4>
|
|
|
|
<p><i class="far fa-location-dot"></i>
|
|
<?php echo e($tour->originCity->name ?? 'مبدأ'); ?>
|
|
|
|
<i class="fas fa-arrow-right-long"></i>
|
|
<?php echo e($tour->city?->name ?? 'مقصد'); ?>
|
|
|
|
</p>
|
|
<div class="activity-bottom">
|
|
<div class="activity-price">
|
|
<span class="activity-price-amount"><?php echo e(number_format(optional($tour->tourDepartures->first())->price ?? 0)); ?> تومان</span>
|
|
</div>
|
|
<div class="activity-text-btn">
|
|
<a href="<?php echo e(route('tours.show' , $tour->id)); ?>">نمایش جزئیات <i class="fas fa-arrow-left"></i></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php /**PATH C:\Users\ASUS\Desktop\airline-agency\resources\views/components/tour-card.blade.php ENDPATH**/ ?>
|