83 lines
1.8 KiB
PHP
83 lines
1.8 KiB
PHP
<div class="col-md-4">
|
|
|
|
<div class="card border-0 shadow-sm rounded-4 overflow-hidden h-100">
|
|
<form action="{{ route('users.favorite.store') }}" method="POST">
|
|
|
|
@csrf
|
|
|
|
<input type="hidden" name="id" value="{{ $tour->id }}">
|
|
|
|
<input type="hidden"
|
|
name="type"
|
|
value="App\Models\Tour">
|
|
|
|
|
|
<button class="btn btn-outline-danger">
|
|
❤️ افزودن به علاقهمندی
|
|
</button>
|
|
|
|
</form>
|
|
|
|
<div class="flight-image">
|
|
|
|
<img src="{{ $tour->image ? asset('storage/'.$tour->image) : asset('assets/img/placeholder.jpg') }}"
|
|
class="w-100 h-100 object-fit-cover"
|
|
alt="{{ $tour->airline }}">
|
|
|
|
|
|
<span class="flight-badge">
|
|
تور
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body d-flex flex-column">
|
|
|
|
|
|
<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">
|
|
|
|
<strong>
|
|
{{ number_format($tour->price) }} تومان
|
|
</strong>
|
|
|
|
|
|
<a href="{{ route('tours.show',$tour) }}"
|
|
class="btn btn-primary rounded-pill">
|
|
مشاهده
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|