970786ae94
git commit "add tours pages, components and show views"
232 lines
4.5 KiB
PHP
232 lines
4.5 KiB
PHP
<style>
|
|
.flight-detail-page {
|
|
padding: 70px 0;
|
|
background: #f5f7fb;
|
|
direction: rtl;
|
|
}
|
|
|
|
.flight-detail-card {
|
|
background: #fff;
|
|
border-radius: 25px;
|
|
overflow: hidden;
|
|
display: flex;
|
|
gap: 0;
|
|
box-shadow: 0 15px 50px rgba(0,0,0,.12);
|
|
}
|
|
|
|
|
|
.flight-detail-image {
|
|
width: 40%;
|
|
min-height: 450px;
|
|
}
|
|
|
|
.flight-detail-image img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
|
|
.flight-detail-content {
|
|
width: 60%;
|
|
padding: 45px;
|
|
}
|
|
|
|
|
|
.flight-detail-content h1 {
|
|
font-size: 34px;
|
|
font-weight: 800;
|
|
color: #102a43;
|
|
margin: 0;
|
|
}
|
|
|
|
|
|
.flight-badge-show {
|
|
background: #1976d2;
|
|
color: white;
|
|
padding: 8px 22px;
|
|
border-radius: 50px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
|
|
.route-box {
|
|
margin: 35px 0;
|
|
padding: 25px;
|
|
border-radius: 20px;
|
|
background: #f8fafc;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-around;
|
|
}
|
|
|
|
|
|
.route-box div {
|
|
text-align: center;
|
|
}
|
|
|
|
|
|
.route-box small {
|
|
display: block;
|
|
color: #78909c;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
|
|
.route-box strong {
|
|
font-size: 22px;
|
|
color: #102a43;
|
|
}
|
|
|
|
|
|
.route-line {
|
|
font-size: 30px;
|
|
color: #f4b400;
|
|
}
|
|
|
|
|
|
.flight-info-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2,1fr);
|
|
gap: 20px;
|
|
margin-bottom: 35px;
|
|
}
|
|
|
|
|
|
.flight-info-grid div {
|
|
background: #f8fafc;
|
|
padding: 18px;
|
|
border-radius: 15px;
|
|
}
|
|
|
|
|
|
.flight-info-grid span {
|
|
display:block;
|
|
color:#78909c;
|
|
font-size:13px;
|
|
margin-bottom:8px;
|
|
}
|
|
|
|
|
|
.flight-info-grid b {
|
|
font-size:18px;
|
|
color:#102a43;
|
|
}
|
|
|
|
|
|
.buy-flight-btn {
|
|
display:inline-block;
|
|
width:100%;
|
|
text-align:center;
|
|
background:#1976d2;
|
|
color:white;
|
|
padding:15px;
|
|
border-radius:15px;
|
|
text-decoration:none;
|
|
font-weight:700;
|
|
transition:.3s;
|
|
}
|
|
|
|
|
|
.buy-flight-btn:hover {
|
|
background:#125ca8;
|
|
color:white;
|
|
}
|
|
|
|
|
|
@media(max-width:768px){
|
|
|
|
.flight-detail-card{
|
|
flex-direction:column;
|
|
}
|
|
|
|
.flight-detail-image,
|
|
.flight-detail-content{
|
|
width:100%;
|
|
}
|
|
|
|
.flight-detail-image{
|
|
height:280px;
|
|
}
|
|
|
|
.flight-info-grid{
|
|
grid-template-columns:1fr;
|
|
}
|
|
|
|
}
|
|
</style>
|
|
|
|
|
|
<section class="flight-detail-page">
|
|
<div class="container">
|
|
|
|
<div class="flight-detail-card">
|
|
|
|
<div class="flight-detail-image">
|
|
<img src="{{ asset($flight->image) }}"
|
|
alt="{{ $flight->airline }}">
|
|
</div>
|
|
|
|
<div class="flight-detail-content">
|
|
|
|
<div class="d-flex justify-content-between align-items-center mb-4">
|
|
<h1>{{ $flight->airline }}</h1>
|
|
|
|
<span class="flight-badge-show">
|
|
پرواز
|
|
</span>
|
|
</div>
|
|
|
|
|
|
<div class="route-box">
|
|
|
|
<div>
|
|
<small>مبدا</small>
|
|
<strong>{{ $flight->origin }}</strong>
|
|
</div>
|
|
|
|
|
|
<div class="route-line">
|
|
✈
|
|
</div>
|
|
|
|
|
|
<div>
|
|
<small>مقصد</small>
|
|
<strong>{{ $flight->destination }}</strong>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="flight-info-grid">
|
|
|
|
<div>
|
|
<span>کلاس پرواز</span>
|
|
<b>{{ $flight->flight_class }}</b>
|
|
</div>
|
|
|
|
<div>
|
|
<span>ظرفیت</span>
|
|
<b>{{ $flight->capacity }} نفر</b>
|
|
</div>
|
|
|
|
<div>
|
|
<span>تاریخ حرکت</span>
|
|
<b>{{ $flight->departure_date->toJalali()->format('Y/m/d') }}</b>
|
|
</div>
|
|
|
|
<div>
|
|
<span>قیمت</span>
|
|
<b>{{ number_format($flight->price) }} تومان</b>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</section>
|