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,8 +1,15 @@
<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">
<img src="<?php echo e($tour?->file_id ?? asset('assets/img/activity/01.jpg')); ?>"
alt="<?php echo e($tour->title); ?>">
<?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"