chore: finalize project updates
This commit is contained in:
@@ -1,273 +1,72 @@
|
||||
<div class="col-md-4 col-sm-6">
|
||||
@extends('layouts.app')
|
||||
|
||||
<div class="theme-search-results-item">
|
||||
@section('title', 'آرشیو پروازها')
|
||||
|
||||
<div class="theme-search-results-item-header">
|
||||
@push('styles')
|
||||
<link rel="stylesheet" href="{{ asset('assets/css/archive.css') }}">
|
||||
@endpush
|
||||
|
||||
<div>
|
||||
<strong>
|
||||
{{ $flight->airline_name }}
|
||||
</strong>
|
||||
</div>
|
||||
@section('content')
|
||||
<div class="archive-page">
|
||||
<div class="container">
|
||||
|
||||
<div>
|
||||
<strong>
|
||||
{{ $flight->flight_number }}
|
||||
</strong>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="theme-search-results-item-body">
|
||||
|
||||
{{-- مسیر پرواز --}}
|
||||
<div class="text-center">
|
||||
|
||||
<div>
|
||||
|
||||
<strong>
|
||||
{{ $flight->origin }}
|
||||
</strong>
|
||||
|
||||
<span>
|
||||
→
|
||||
</span>
|
||||
|
||||
<strong>
|
||||
{{ $flight->destination }}
|
||||
</strong>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<hr>
|
||||
|
||||
|
||||
{{-- ساعت پرواز --}}
|
||||
<div class="row">
|
||||
|
||||
<div class="col-xs-6 text-center">
|
||||
|
||||
<small>
|
||||
حرکت
|
||||
</small>
|
||||
|
||||
<div>
|
||||
<strong>
|
||||
{{ $flight->departure_time }}
|
||||
</strong>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xs-6 text-center">
|
||||
|
||||
<small>
|
||||
رسیدن
|
||||
</small>
|
||||
|
||||
<div>
|
||||
<strong>
|
||||
{{ $flight->arrival_time }}
|
||||
</strong>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<hr>
|
||||
|
||||
|
||||
{{-- مدت --}}
|
||||
<div class="text-center">
|
||||
|
||||
<small>
|
||||
مدت پرواز
|
||||
</small>
|
||||
|
||||
<div>
|
||||
{{ $flight->duration }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<hr>
|
||||
|
||||
|
||||
{{-- قیمت --}}
|
||||
<div class="text-center">
|
||||
|
||||
<small>
|
||||
قیمت
|
||||
</small>
|
||||
|
||||
<div>
|
||||
|
||||
<strong>
|
||||
{{ number_format($flight->price) }}
|
||||
</strong>
|
||||
|
||||
تومان
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div style="margin-top: 15px;">
|
||||
|
||||
<a
|
||||
href="{{ route('flights.show', ['flight' => $flight->id]) }}"
|
||||
class="btn btn-primary btn-block"
|
||||
>
|
||||
مشاهده جزئیات
|
||||
{{-- هدر آرشیو --}}
|
||||
<div class="archive-header">
|
||||
<h4><i class="fa fa-plane mr-2"></i> آرشیو پروازها</h4>
|
||||
<a href="{{ route('index') }}" class="btn-back">
|
||||
<i class="fa fa-home"></i> بازگشت به صفحه اصلی
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
@forelse($flights as $flight)
|
||||
<div class="col-md-4 col-sm-6 mb-4">
|
||||
<div class="flight-card">
|
||||
<div class="flight-body">
|
||||
{{-- مسیر پرواز --}}
|
||||
<div class="flight-route">
|
||||
<div class="flight-city">
|
||||
<span>مبدأ</span>
|
||||
<strong>{{ $flight->origin }}</strong>
|
||||
</div>
|
||||
<div class="flight-line">
|
||||
<span class="plane-icon">✈</span>
|
||||
</div>
|
||||
<div class="flight-city">
|
||||
<span>مقصد</span>
|
||||
<strong>{{ $flight->destination }}</strong>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- زمانها --}}
|
||||
<div class="flight-info">
|
||||
<p>🛫 حرکت: {{ $flight->departure_time?->toJalali()->format('Y/m/d H:i') }}</p>
|
||||
<p>🛬 ورود: {{ $flight->arrival_time?->toJalali()->format('Y/m/d H:i') }}</p>
|
||||
</div>
|
||||
|
||||
{{-- قیمت --}}
|
||||
<span class="flight-price">{{ number_format($flight->price) }} تومان</span>
|
||||
|
||||
<a href="{{ route('flights.show', $flight->id) }}" class="btn btn-sm btn-primary btn-block mt-3">
|
||||
مشاهده جزئیات <i class="fa fa-arrow-left"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@empty
|
||||
<div class="col-12">
|
||||
<div class="archive-empty">
|
||||
<i class="fa fa-plane"></i>
|
||||
<p>هنوز پروازی ثبت نشده است.</p>
|
||||
</div>
|
||||
</div>
|
||||
@endforelse
|
||||
</div>
|
||||
|
||||
|
||||
<div class="archive-pagination">
|
||||
{{ $flights->links('pagination::bootstrap-4') }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{{--@extends('layouts.app')--}}
|
||||
|
||||
{{--@section('title', 'پروازها')--}}
|
||||
|
||||
{{--@section('content')--}}
|
||||
|
||||
{{-- <div class="theme-page-section theme-page-section-gray">--}}
|
||||
|
||||
{{-- <div class="container">--}}
|
||||
|
||||
{{-- <div class="theme-page-section-header">--}}
|
||||
|
||||
{{-- <h1 class="theme-page-section-title">--}}
|
||||
{{-- پروازها--}}
|
||||
{{-- </h1>--}}
|
||||
|
||||
{{-- <p>--}}
|
||||
{{-- پرواز مورد نظر خود را انتخاب کنید.--}}
|
||||
{{-- </p>--}}
|
||||
|
||||
{{-- </div>--}}
|
||||
|
||||
|
||||
{{-- --}}{{-- Search --}}
|
||||
{{-- <div class="theme-search-area theme-search-area-stacked theme-search-area-white">--}}
|
||||
|
||||
{{-- <div class="theme-search-area-form">--}}
|
||||
|
||||
{{-- <div class="row">--}}
|
||||
|
||||
{{-- <div class="col-md-3">--}}
|
||||
{{-- <input--}}
|
||||
{{-- class="form-control"--}}
|
||||
{{-- type="text"--}}
|
||||
{{-- placeholder="مبدا">--}}
|
||||
{{-- </div>--}}
|
||||
|
||||
{{-- <div class="col-md-3">--}}
|
||||
{{-- <input--}}
|
||||
{{-- class="form-control"--}}
|
||||
{{-- type="text"--}}
|
||||
{{-- placeholder="مقصد">--}}
|
||||
{{-- </div>--}}
|
||||
|
||||
{{-- <div class="col-md-2">--}}
|
||||
{{-- <input--}}
|
||||
{{-- class="form-control"--}}
|
||||
{{-- type="text"--}}
|
||||
{{-- placeholder="تاریخ">--}}
|
||||
{{-- </div>--}}
|
||||
|
||||
{{-- <div class="col-md-2">--}}
|
||||
{{-- <select class="form-control">--}}
|
||||
{{-- <option>اقتصادی</option>--}}
|
||||
{{-- <option>بیزینس</option>--}}
|
||||
{{-- <option>فرست کلاس</option>--}}
|
||||
{{-- </select>--}}
|
||||
{{-- </div>--}}
|
||||
|
||||
{{-- <div class="col-md-2">--}}
|
||||
|
||||
{{-- <button class="btn btn-primary btn-block">--}}
|
||||
{{-- جستجو--}}
|
||||
{{-- </button>--}}
|
||||
|
||||
{{-- </div>--}}
|
||||
|
||||
{{-- </div>--}}
|
||||
|
||||
{{-- </div>--}}
|
||||
|
||||
{{-- </div>--}}
|
||||
|
||||
{{-- --}}
|
||||
{{-- --}}{{-- Flights --}}
|
||||
{{-- <div class="row row-col-gap">--}}
|
||||
|
||||
{{-- @forelse($flights as $flight)--}}
|
||||
|
||||
{{-- @include('components.flight', [--}}
|
||||
{{-- 'flight' => $flight--}}
|
||||
{{-- ])--}}
|
||||
|
||||
{{-- @empty--}}
|
||||
|
||||
{{-- <div class="col-12">--}}
|
||||
|
||||
{{-- <div class="alert alert-info text-center">--}}
|
||||
{{-- در حال حاضر پرواز فعالی برای نمایش وجود ندارد.--}}
|
||||
{{-- </div>--}}
|
||||
|
||||
{{-- </div>--}}
|
||||
|
||||
{{-- @endforelse--}}
|
||||
|
||||
{{-- </div>--}}
|
||||
{{-- <div class="row row-col-gap">--}}
|
||||
|
||||
{{-- @include('components.flight', [--}}
|
||||
{{-- 'airline' => 'ایران ایر',--}}
|
||||
{{-- 'from' => 'تهران',--}}
|
||||
{{-- 'to' => 'استانبول',--}}
|
||||
{{-- 'departure' => '09:30',--}}
|
||||
{{-- 'arrival' => '12:00',--}}
|
||||
{{-- 'price' => '25,000,000'--}}
|
||||
{{-- ])--}}
|
||||
|
||||
{{-- @include('components.flight', [--}}
|
||||
{{-- 'airline' => 'ماهان',--}}
|
||||
{{-- 'from' => 'تهران',--}}
|
||||
{{-- 'to' => 'دبی',--}}
|
||||
{{-- 'departure' => '14:00',--}}
|
||||
{{-- 'arrival' => '17:00',--}}
|
||||
{{-- 'price' => '18,500,000'--}}
|
||||
{{-- ])--}}
|
||||
|
||||
{{-- @include('components.flight', [--}}
|
||||
{{-- 'airline' => 'ترکیش ایرلاینز',--}}
|
||||
{{-- 'from' => 'تهران',--}}
|
||||
{{-- 'to' => 'استانبول',--}}
|
||||
{{-- 'departure' => '20:30',--}}
|
||||
{{-- 'arrival' => '23:30',--}}
|
||||
{{-- 'price' => '22,000,000'--}}
|
||||
{{-- ])--}}
|
||||
|
||||
{{-- </div>--}}
|
||||
|
||||
{{-- </div>--}}
|
||||
|
||||
{{-- </div>--}}
|
||||
|
||||
{{--@endsection--}}
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user