git add .

git commit  "add tours pages, components and show views"
This commit is contained in:
2026-08-17 11:36:19 +03:30
parent e99c340f1e
commit 970786ae94
15 changed files with 595 additions and 249 deletions
+45 -22
View File
@@ -1,43 +1,66 @@
<div class="swiper-slide">
<div class="col-md-4">
<div class="card border-0 shadow-sm rounded-4 overflow-hidden h-100">
<div class="position-relative" style="height: 170px;">
@if($tour->image)
<img src="{{ asset('storage/'.$tour->image) }}"
class="w-100 h-100 object-fit-cover"
alt="{{ $tour->title }}">
@else
<div class="w-100 h-100 bg-light"></div>
@endif
<span class="position-absolute top-0 end-0 m-2 badge rounded-pill" style="background: var(--teal);">
<div class="flight-image">
<img src="{{ asset($tour->image) }}"
alt="{{ $tour->title }}">
<span class="flight-badge">
تور
</span>
</div>
<div class="card-body d-flex flex-column">
<h5 class="card-title fw-bold fs-6 mb-2">{{ $tour->title }}</h5>
@if($tour->summary)
<p class="text-secondary small mb-3">{{ \Illuminate\Support\Str::limit($tour->summary, 70) }}</p>
@endif
<div class="small text-secondary mb-3">
<i class="bi bi-calendar-event"></i>
تاریخ حرکت: {{ optional($tour->departure_date)->format('Y/m/d') }}
<h5 class="fw-bold">
{{ $tour->title }}
</h5>
<div class="route">
<span>
{{ $tour->travelType?->name ?? 'تور گردشگری' }}
</span>
<span class="line"></span>
<span>
{{ \Carbon\Carbon::parse($tour->departure_date)->format('Y/m/d') }}
</span>
</div>
<div class="mt-auto d-flex justify-content-between align-items-center">
<span class="fw-bold" style="color: var(--blue);">
<strong>
{{ number_format($tour->price) }} تومان
</span>
<a href="{{ route('tours.show', $tour) }}"
class="btn btn-sm rounded-pill px-3 text-white"
style="background: var(--blue);">
</strong>
<a href="{{ route('tours.show',$tour) }}"
class="btn btn-primary rounded-pill">
مشاهده
</a>
</div>
</div>
</div>
</div>