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