970786ae94
git commit "add tours pages, components and show views"
68 lines
1.7 KiB
PHP
68 lines
1.7 KiB
PHP
@foreach($tours as $tour)
|
|
|
|
<div class="swiper-slide tour-card group">
|
|
|
|
<a href="{{ route('tours.show', $tour->id) }}" class="tour-card_image-link">
|
|
<img
|
|
class="tour-card_img"
|
|
src="{{ asset($tour->image) }}" alt="{{ $tour->title }}" >
|
|
</a>
|
|
|
|
|
|
<div class="tour-card_content">
|
|
|
|
<a href="{{ route('tours.show', $tour->id) }}"
|
|
class="tour-card_title">
|
|
{{ $tour->title }}
|
|
</a>
|
|
|
|
|
|
<div class="tour-card_destination">
|
|
<span>📍</span>
|
|
{{ Str::limit($tour->summary, 60) }}
|
|
</div>
|
|
|
|
|
|
<div class="tour-card_details">
|
|
|
|
<div class="tour-detail-item">
|
|
<span>تاریخ حرکت</span>
|
|
<strong>
|
|
{{ \Carbon\Carbon::parse($tour->departure_date)->format('Y/m/d') }}
|
|
</strong>
|
|
</div>
|
|
|
|
|
|
<div class="tour-detail-item">
|
|
<span>نوع سفر</span>
|
|
<strong>
|
|
{{ $tour->travelType->name ?? '---' }}
|
|
</strong>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="tour-card_price">
|
|
|
|
<span>شروع قیمت از</span>
|
|
|
|
<strong>
|
|
{{ number_format($tour->price) }}
|
|
<small>تومان</small>
|
|
</strong>
|
|
|
|
</div>
|
|
|
|
|
|
<a href="{{ route('tours.show', $tour->id) }}"
|
|
class="tour-card_btn">
|
|
مشاهده تور
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endforeach
|