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
+9 -11
View File
@@ -1,22 +1,20 @@
<div class="listing-content">
<div class="listing-slider owl-carousel owl-theme" dir="ltr">
@if ($tour->images && $tour->images->count() > 0)
@if ($tour->images->count() > 1)
@foreach ($tour->images as $image)
<img src="{{ asset($image->path) }}" alt="{{ $tour->title }}">
@endforeach
@else
<img src="{{ asset($tour->images->first()->path) }}" alt="{{ $tour->title }}">
@endif
@if($tour->coverImage?->file)
<img src="{{ getFileUrl($tour->coverImage->file_id) }}"
class="w-100 h-100"
alt="{{ $tour->title }}">
@else
<img src="{{ asset('assets/img/flight/single-1.jpg') }}" alt="{{ $tour->title}}">
<img src="{{ asset('assets/Admin/images/tour/single-2.jpg') }}"
class="w-100 h-100"
alt="{{ $tour->title }}">
@endif
</div>
<div class="listing-header">
<div class="listing-header-info">
<h4 class="listing-title">{{ $tour->originCity?->name }} - {{ $tour->city?->name }}</h4>
<p class="listing-stop"> سفر {{ $tour->tour_type }}</p>
<p class="listing-stop"> سفر {{ $tour->tour_type->label() ?? 'نامشخص'}}</p>
</div>
</div>
@@ -60,7 +58,7 @@
</div>
<div class="listing-feature-content">
<h6>نوع تور</h6>
<span>{{ $tour->tour_type ?? 'نامشخص' }}</span>
<span>{{ $tour->tour_type?->label() ?? 'نامشخص' }}</span>
</div>
</div>
</div>