fix:change flight blade
This commit is contained in:
@@ -1,25 +1,54 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
|
||||
<main class="main">
|
||||
|
||||
<div class="site-breadcrumb" style="background: url({{asset('assets/img/breadcrumb/01.jpg')}})">
|
||||
<div
|
||||
class="site-breadcrumb"
|
||||
style="background: url({{ asset('assets/img/breadcrumb/01.jpg') }})"
|
||||
>
|
||||
<div class="container">
|
||||
<h2 class="breadcrumb-title">لیست پرواز</h2>
|
||||
|
||||
<h2 class="breadcrumb-title">
|
||||
لیست پرواز
|
||||
</h2>
|
||||
|
||||
<ul class="breadcrumb-menu">
|
||||
<li><a href="{{route('index')}}">صفحه اصلی</a></li>
|
||||
<li class="active">لیست پرواز</li>
|
||||
<li>
|
||||
<a href="{{ route('index') }}">
|
||||
صفحه اصلی
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="active">
|
||||
لیست پرواز
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@include('components.search-area')
|
||||
|
||||
|
||||
<div class="flight-booking flight-list py-120">
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div class="row">
|
||||
|
||||
{{-- Sidebar --}}
|
||||
<div class="col-lg-4 col-xl-3 mb-4">
|
||||
|
||||
<div class="booking-sidebar">
|
||||
<form action="{{ route('flights.index') }}" method="GET">
|
||||
|
||||
<form
|
||||
action="{{ route('flights.index') }}"
|
||||
method="GET"
|
||||
>
|
||||
|
||||
<input
|
||||
type="hidden"
|
||||
name="from-destination"
|
||||
@@ -31,87 +60,129 @@
|
||||
name="to-destination"
|
||||
value="{{ request('to-destination') }}"
|
||||
>
|
||||
|
||||
<input
|
||||
type="hidden"
|
||||
name="journey-date"
|
||||
value="{{ request('journey-date') }}"
|
||||
>
|
||||
|
||||
|
||||
<div class="booking-item">
|
||||
<h4 class="booking-title">نوع پرواز</h4>
|
||||
|
||||
<h4 class="booking-title">
|
||||
نوع پرواز
|
||||
</h4>
|
||||
|
||||
|
||||
<div class="flight-class">
|
||||
|
||||
{{-- یک طرفه --}}
|
||||
<div class="form-check">
|
||||
|
||||
<input
|
||||
class="form-check-input"
|
||||
type="radio"
|
||||
name="flight_type"
|
||||
value="0"
|
||||
value="{{ \App\Enums\FlightType::DEPARTURE->value }}"
|
||||
id="flight-type-0"
|
||||
{{ request('flight_type') === '0' ? 'checked' : '' }}
|
||||
{{ request('flight_type') === (string) \App\Enums\FlightType::DEPARTURE->value ? 'checked' : '' }}
|
||||
>
|
||||
|
||||
<label class="form-check-label" for="flight-type-0">
|
||||
رفت
|
||||
<label
|
||||
class="form-check-label"
|
||||
for="flight-type-0"
|
||||
>
|
||||
یکطرفه
|
||||
</label>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{{-- برگشت --}}
|
||||
<div class="form-check">
|
||||
|
||||
<input
|
||||
class="form-check-input"
|
||||
type="radio"
|
||||
name="flight_type"
|
||||
value="1"
|
||||
value="{{ \App\Enums\FlightType::RETURN->value }}"
|
||||
id="flight-type-1"
|
||||
{{ request('flight_type') === '1' ? 'checked' : '' }}
|
||||
{{ request('flight_type') === (string) \App\Enums\FlightType::RETURN->value ? 'checked' : '' }}
|
||||
>
|
||||
|
||||
<label class="form-check-label" for="flight-type-1">
|
||||
<label
|
||||
class="form-check-label"
|
||||
for="flight-type-1"
|
||||
>
|
||||
برگشت
|
||||
</label>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{{-- رفت و برگشت --}}
|
||||
<div class="form-check">
|
||||
|
||||
<input
|
||||
class="form-check-input"
|
||||
type="radio"
|
||||
name="flight_type"
|
||||
value="2"
|
||||
value="{{ \App\Enums\FlightType::ROUNDTRIP->value }}"
|
||||
id="flight-type-2"
|
||||
{{ request('flight_type') === '2' ? 'checked' : '' }}
|
||||
{{ request('flight_type') === (string) \App\Enums\FlightType::ROUNDTRIP->value ? 'checked' : '' }}
|
||||
>
|
||||
|
||||
<label class="form-check-label" for="flight-type-2">
|
||||
<label
|
||||
class="form-check-label"
|
||||
for="flight-type-2"
|
||||
>
|
||||
رفت و برگشت
|
||||
</label>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="text-center mt-3">
|
||||
<button type="submit" class="theme-btn">
|
||||
|
||||
<button
|
||||
type="submit"
|
||||
class="theme-btn"
|
||||
>
|
||||
<i class="far fa-filter"></i>
|
||||
اعمال فیلتر
|
||||
</button>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{{-- Flights --}}
|
||||
<div class="col-lg-8 col-xl-9">
|
||||
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="booking-sort">
|
||||
|
||||
<h5>
|
||||
{{ $flights->total() }} پرواز پیدا شد
|
||||
{{ $flights->total() }}
|
||||
پرواز پیدا شد
|
||||
</h5>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row align-items-center">
|
||||
|
||||
@forelse($flights as $flight)
|
||||
@@ -123,21 +194,32 @@
|
||||
@empty
|
||||
|
||||
<div class="col-12 text-center">
|
||||
<p>در حال حاضر هیچ پروازی ثبت نشده است.</p>
|
||||
|
||||
<p>
|
||||
در حال حاضر هیچ پروازی ثبت نشده است.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
@endforelse
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mt-10 w-full">
|
||||
|
||||
{{ $flights->links() }}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</main>
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -18,10 +18,21 @@
|
||||
<div class="listing-content">
|
||||
|
||||
<div class="listing-slider owl-carousel owl-theme" dir="ltr">
|
||||
@if($flight->file?->path)
|
||||
|
||||
<img
|
||||
src="{{ asset('storage/' . $flight->file->path) }}"
|
||||
alt="{{ $flight->title }}"
|
||||
>
|
||||
|
||||
@else
|
||||
|
||||
<img
|
||||
src="{{ asset('assets/img/flight/single-1.jpg') }}"
|
||||
alt=""
|
||||
alt="{{ $flight->title }}"
|
||||
>
|
||||
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="listing-header">
|
||||
|
||||
Reference in New Issue
Block a user