64 lines
1.5 KiB
PHP
64 lines
1.5 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="{{ $flight->id }}">
|
|
|
|
<input type="hidden"
|
|
name="type"
|
|
value="App\Models\Flight">
|
|
|
|
|
|
<button class="btn btn-outline-danger">
|
|
❤️ افزودن به علاقهمندی
|
|
</button>
|
|
|
|
</form>
|
|
|
|
<div class="flight-image">
|
|
|
|
<img src="{{ asset($flight->image) }}"
|
|
alt="{{ $flight->airline }}">
|
|
|
|
<span class="flight-badge">
|
|
پرواز
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="card-body d-flex flex-column">
|
|
|
|
<h5 class="fw-bold">
|
|
{{ $flight->airline }}
|
|
</h5>
|
|
|
|
|
|
<div class="route">
|
|
<span>{{ $flight->origin }}</span>
|
|
|
|
<span class="line"></span>
|
|
|
|
<span>{{ $flight->destination }}</span>
|
|
</div>
|
|
|
|
|
|
<div class="mt-auto d-flex justify-content-between align-items-center">
|
|
|
|
<strong>
|
|
{{ number_format($flight->price) }} تومان
|
|
</strong>
|
|
|
|
<a href="{{ route('flights.show',$flight) }}"
|
|
class="btn btn-primary rounded-pill">
|
|
مشاهده
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div></div>
|