93 lines
4.6 KiB
PHP
93 lines
4.6 KiB
PHP
<div class="booking-sidebar listing-side-content">
|
|
<div class="booking-item">
|
|
<?php
|
|
$departure = $tour->tourDepartures->first();
|
|
?>
|
|
|
|
<div class="listing-price">
|
|
<h4 class="listing-price-tag">تور</h4>
|
|
<div class="listing-price-amount">
|
|
<span><?php echo e($departure?->price ? number_format($departure->price) . ' تومان' : 'تماس بگیرید'); ?></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="search-form">
|
|
<form action="<?php echo e(route('tours.show' , $tour->id)); ?>">
|
|
<?php echo csrf_field(); ?>
|
|
<input type="hidden" name="tour_id" value="<?php echo e($tour->id); ?>">
|
|
|
|
<div class="tour-search-wrapper">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="form-group">
|
|
<div class="search-form-date">
|
|
<div class="search-form-return">
|
|
<label for="departure_date">زمان رفت</label>
|
|
<input
|
|
type="text"
|
|
id="departure_date"
|
|
class="form-control"
|
|
value="<?php echo e($departure && $departure->start_date ? verta($departure->start_date)->format('Y/m/d - H:i') : 'نامشخص'); ?>"
|
|
disabled
|
|
>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-lg-12">
|
|
<div class="form-group">
|
|
<div class="search-form-date">
|
|
<div class="search-form-return">
|
|
<label for="return_date">تاریخ برگشت</label>
|
|
<input
|
|
type="text"
|
|
id="return_date"
|
|
class="form-control"
|
|
value="<?php echo e($departure && $departure->end_date ? verta($departure->end_date)->format('Y/m/d - H:i') : 'نامشخص'); ?>"
|
|
disabled
|
|
>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="listing-side-btn">
|
|
<button type="submit" class="theme-btn">
|
|
<span class="far fa-shopping-bag"></span>
|
|
اکنون ثبت کن
|
|
</button>
|
|
|
|
<?php if(auth()->guard()->check()): ?>
|
|
<form action="<?php echo e(route('accounts.favorites.tour.toggle', ['tour' => $tour->id])); ?>"
|
|
method="POST"
|
|
class="d-inline">
|
|
<?php echo csrf_field(); ?>
|
|
|
|
<button type="submit" class="border-btn border-0">
|
|
<?php if($isFavorite): ?>
|
|
<i class="fas fa-heart"></i>
|
|
حذف از علاقهمندیها
|
|
<?php else: ?>
|
|
<i class="far fa-heart"></i>
|
|
افزودن به علاقهمندیها
|
|
<?php endif; ?>
|
|
</button>
|
|
</form>
|
|
<?php else: ?>
|
|
<a href="<?php echo e(route('auth.login.index')); ?>" class="border-btn">
|
|
<i class="far fa-heart"></i>
|
|
افزودن به علاقهمندیها
|
|
</a>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="listing-side-share">
|
|
<span><i class="far fa-eye"></i> <?php echo e($tour->views_count); ?> مشاهده</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php /**PATH C:\Users\ASUS\Desktop\airline-agency\resources\views/tours/partials/sidebar.blade.php ENDPATH**/ ?>
|