295 lines
14 KiB
PHP
295 lines
14 KiB
PHP
<div class="listing-content">
|
|
<div class="listing-slider owl-carousel owl-theme" dir="ltr">
|
|
<?php if($tour->images && $tour->images->count() > 0): ?>
|
|
<?php if($tour->images->count() > 1): ?>
|
|
<?php $__currentLoopData = $tour->images; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $image): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<img src="<?php echo e(asset($image->path)); ?>" alt="<?php echo e($tour->title); ?>">
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
<?php else: ?>
|
|
<img src="<?php echo e(asset($tour->images->first()->path)); ?>" alt="<?php echo e($tour->title); ?>">
|
|
<?php endif; ?>
|
|
<?php else: ?>
|
|
<img src="<?php echo e(asset('assets/img/flight/single-1.jpg')); ?>" alt="<?php echo e($tour->title); ?>">
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<div class="listing-header">
|
|
<div class="listing-header-info">
|
|
<h4 class="listing-title"><?php echo e($tour->originCity?->name); ?> - <?php echo e($tour->city?->name); ?></h4>
|
|
<p class="listing-stop"> سفر <?php echo e($tour->tour_type); ?></p>
|
|
</div>
|
|
</div>
|
|
|
|
<?php
|
|
$departure = $tour->tourDepartures->first();
|
|
?>
|
|
|
|
<div class="listing-item listing-flight">
|
|
<div class="flight-booking-time">
|
|
<div class="start-time">
|
|
<div class="start-time-icon">
|
|
<i class="fal fa-map-marker-alt"></i>
|
|
</div>
|
|
<div class="start-time-info">
|
|
<h6 class="start-time-text"> شروع حرکت</h6>
|
|
<p class="flight-full-date">
|
|
<?php echo e($departure && $departure->start_date ? Verta::instance($departure->start_date)->format('Y/m/d - H:i') : 'نامشخص'); ?>
|
|
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div class="end-time">
|
|
<div class="start-time-icon">
|
|
<i class="fal fa-map-marker-alt"></i>
|
|
</div>
|
|
<div class="start-time-info">
|
|
<h6 class="end-time-text">پایان سفر</h6>
|
|
<p class="flight-full-date">
|
|
<?php echo e($departure && $departure->end_date ? Verta::instance($departure->end_date)->format('Y/m/d - H:i') : 'نامشخص'); ?>
|
|
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="listing-item pt-5">
|
|
<div class="row">
|
|
<div class="col-md-6 col-lg-3">
|
|
<div class="listing-feature">
|
|
<div class="listing-feature-icon">
|
|
<i class="far fa-user-tie"></i>
|
|
</div>
|
|
<div class="listing-feature-content">
|
|
<h6>نوع تور</h6>
|
|
<span><?php echo e($tour->tour_type ?? 'نامشخص'); ?></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6 col-lg-3">
|
|
<div class="listing-feature">
|
|
<div class="listing-feature-icon">
|
|
<i class="far fa-suitcase"></i>
|
|
</div>
|
|
<div class="listing-feature-content">
|
|
<h6>ظرفیت</h6>
|
|
<span><?php echo e($departure ? $departure->capacity . ' نفر' : 'تکمیل شده'); ?></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6 col-lg-3">
|
|
<div class="listing-feature">
|
|
<div class="listing-feature-icon">
|
|
<i class="far fa-money-bill-wave"></i>
|
|
</div>
|
|
<div class="listing-feature-content">
|
|
<h6>قیمت هر نفر</h6>
|
|
<span><?php echo e($departure ? number_format($departure->price) . ' تومان' : 'نامشخص'); ?></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="listing-item">
|
|
<h4 class="mb-3">درباره <?php echo e($tour->title); ?></h4>
|
|
<p><?php echo e($tour->description ?? $tour->summary); ?></p>
|
|
</div>
|
|
|
|
<div class="listing-item">
|
|
<h4 class="mb-3"> ویژگی های هنگام سفر</h4>
|
|
<div class="listing-amenity">
|
|
<div class="row">
|
|
<div class="col-lg-4">
|
|
<div class="listing-amenity-item">
|
|
<h6><i class="far fa-wifi"></i> وای فای</h6>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-4">
|
|
<div class="listing-amenity-item">
|
|
<h6><i class="far fa-tv"></i> تلویزیون</h6>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-4">
|
|
<div class="listing-amenity-item">
|
|
<h6><i class="far fa-music"></i> سرگرمی</h6>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-4">
|
|
<div class="listing-amenity-item">
|
|
<h6><i class="far fa-cup-togo"></i> قهوه</h6>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-4">
|
|
<div class="listing-amenity-item">
|
|
<h6><i class="far fa-air-conditioner"></i> تهویه مطبوع</h6>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-4">
|
|
<div class="listing-amenity-item">
|
|
<h6><i class="fa-regular fa-salad"></i> غذا</h6>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-4">
|
|
<div class="listing-amenity-item">
|
|
<h6><i class="far fa-gamepad-modern"></i> بازی ها</h6>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-4">
|
|
<div class="listing-amenity-item">
|
|
<h6><i class="far fa-wine-bottle"></i> شربت ها</h6>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-4">
|
|
<div class="listing-amenity-item">
|
|
<h6><i class="far fa-couch"></i> راحتی</h6>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-4">
|
|
<div class="listing-amenity-item">
|
|
<h6><i class="far fa-image"></i> مجلات</h6>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="listing-item">
|
|
<h4 class="mb-3">بررسی ها</h4>
|
|
<div class="listing-rating-box">
|
|
<div class="listing-review">
|
|
<h5>نظرات کاربران</h5>
|
|
<?php $__empty_1 = true; $__currentLoopData = $tour->comments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $comment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
|
|
<div class="listing-review-item">
|
|
<div class="listing-review-author">
|
|
<img src="<?php echo e(asset('assets/img/account/DefaultAvatar.jpg')); ?>" alt="user">
|
|
<div class="listing-review-author-info">
|
|
<div>
|
|
<h6><?php echo e($comment->guest_name ?? $comment->user?->first_name); ?></h6>
|
|
<span><i class="far fa-clock"></i> <?php echo e(Verta::instance($comment->created_at)->formatDifference()); ?></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<p><?php echo e($comment->content); ?></p>
|
|
</div>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
|
|
<p class="text-muted">هنوز نظری برای این تور ثبت نشده است.</p>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<div class="listing-review-form">
|
|
<?php if(session('success')): ?>
|
|
<div class="alert alert-success">
|
|
<?php echo e(session('success')); ?>
|
|
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<?php if(session('error')): ?>
|
|
<div class="alert alert-danger">
|
|
<?php echo e(session('error')); ?>
|
|
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<?php if($errors->any()): ?>
|
|
<div class="alert alert-danger">
|
|
<ul class="mb-0">
|
|
<?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<li><?php echo e($error); ?></li>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
</ul>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<h4>نظر بدهید</h4>
|
|
<form action="<?php echo e(route('tours.comments.store', $tour)); ?>" method="POST">
|
|
<?php echo csrf_field(); ?>
|
|
<input type="hidden" name="parent_id" value="">
|
|
<?php if(auth()->guard()->check()): ?>
|
|
<div class="row">
|
|
<div class="col-lg-6">
|
|
<div class="form-group">
|
|
<input type="text"
|
|
class="form-control"
|
|
value="<?php echo e(auth()->user()->first_name); ?>"
|
|
disabled>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-6">
|
|
<div class="form-group">
|
|
<input type="email"
|
|
class="form-control"
|
|
value="<?php echo e(auth()->user()->email); ?>"
|
|
disabled>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php else: ?>
|
|
<div class="row">
|
|
<div class="col-lg-6">
|
|
<div class="form-group">
|
|
<input type="text"
|
|
name="guest_name"
|
|
class="form-control"
|
|
placeholder="اسم شما*"
|
|
value="<?php echo e(old('guest_name')); ?>">
|
|
<?php $__errorArgs = ['guest_name'];
|
|
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
|
if ($__bag->has($__errorArgs[0])) :
|
|
if (isset($message)) { $__messageOriginal = $message; }
|
|
$message = $__bag->first($__errorArgs[0]); ?>
|
|
<span style="color: red"><?php echo e($message); ?></span>
|
|
<?php unset($message);
|
|
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
|
endif;
|
|
unset($__errorArgs, $__bag); ?>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-6">
|
|
<div class="form-group">
|
|
<input type="email"
|
|
name="guest_email"
|
|
class="form-control"
|
|
placeholder="ایمیل شما*"
|
|
value="<?php echo e(old('guest_email')); ?>">
|
|
<?php $__errorArgs = ['guest_email'];
|
|
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
|
if ($__bag->has($__errorArgs[0])) :
|
|
if (isset($message)) { $__messageOriginal = $message; }
|
|
$message = $__bag->first($__errorArgs[0]); ?>
|
|
<span style="color: red"><?php echo e($message); ?></span>
|
|
<?php unset($message);
|
|
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
|
endif;
|
|
unset($__errorArgs, $__bag); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<div class="form-group mt-3">
|
|
<textarea name="content"
|
|
class="form-control"
|
|
cols="30"
|
|
rows="5"
|
|
placeholder="نظر خود را بنویسید*"><?php echo e(old('content')); ?></textarea>
|
|
<?php $__errorArgs = ['content'];
|
|
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
|
if ($__bag->has($__errorArgs[0])) :
|
|
if (isset($message)) { $__messageOriginal = $message; }
|
|
$message = $__bag->first($__errorArgs[0]); ?>
|
|
<span style="color: red"><?php echo e($message); ?></span>
|
|
<?php unset($message);
|
|
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
|
endif;
|
|
unset($__errorArgs, $__bag); ?>
|
|
</div>
|
|
|
|
<button class="theme-btn mt-3" type="submit">نظر بدهید</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php /**PATH C:\Users\ASUS\Desktop\airline-agency\resources\views/tours/partials/main.blade.php ENDPATH**/ ?>
|