feat: add site visit tracking middleware and admin dashboard stats

This commit is contained in:
2026-08-20 17:03:13 +03:30
parent 3e60fa13d3
commit dd8785514f
29 changed files with 335 additions and 3187 deletions
@@ -1,22 +1,20 @@
<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 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/img/flight/single-1.jpg')); ?>" alt="<?php echo e($tour->title); ?>">
<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; ?>
</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>
<p class="listing-stop"> سفر <?php echo e($tour->tour_type->label() ?? 'نامشخص'); ?></p>
</div>
</div>
@@ -62,7 +60,7 @@
</div>
<div class="listing-feature-content">
<h6>نوع تور</h6>
<span><?php echo e($tour->tour_type ?? 'نامشخص'); ?></span>
<span><?php echo e($tour->tour_type?->label() ?? 'نامشخص'); ?></span>
</div>
</div>
</div>