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
+24 -31
View File
@@ -1,64 +1,51 @@
@foreach($tours as $tour)
<!-- TOUR ITEM -->
<div class="swiper-slide tour-card group">
<!-- tour image -->
<a href="#">
<a href="{{ route('tours.show', $tour->id) }}" class="tour-card_image-link">
<img
class="tour-card_img"
src="{{ $tour->image ?? asset('assets/img/placeholder.jpg') }}"
alt="{{ $tour->title }}"
>
src="{{ asset($tour->image) }}" alt="{{ $tour->title }}" >
</a>
<!-- tour content -->
<div class="tour-card_content">
<!-- title -->
<a href="#" class="tour-card_title">
<a href="{{ route('tours.show', $tour->id) }}"
class="tour-card_title">
{{ $tour->title }}
</a>
<!-- destination -->
<div class="tour-card_destination">
<span>
📍
</span>
{{ $tour->destination }}
<span>📍</span>
{{ Str::limit($tour->summary, 60) }}
</div>
<!-- details -->
<div class="tour-card_details">
<div>
<span>مدت تور</span>
<div class="tour-detail-item">
<span>تاریخ حرکت</span>
<strong>
{{ $tour->duration }} روز
{{ \Carbon\Carbon::parse($tour->departure_date)->format('Y/m/d') }}
</strong>
</div>
<div>
<span>ظرفیت</span>
<div class="tour-detail-item">
<span>نوع سفر</span>
<strong>
{{ $tour->capacity }} نفر
{{ $tour->travelType->name ?? '---' }}
</strong>
</div>
</div>
<!-- price -->
<div class="tour-card_price">
<span>
شروع قیمت از
</span>
<span>شروع قیمت از</span>
<strong>
{{ number_format($tour->price) }}
@@ -67,6 +54,12 @@
</div>
<a href="{{ route('tours.show', $tour->id) }}"
class="tour-card_btn">
مشاهده تور
</a>
</div>
</div>