179 lines
6.0 KiB
PHP
179 lines
6.0 KiB
PHP
@extends('account.layouts.app')
|
|
|
|
@section('title', 'رزروهای من')
|
|
|
|
@section('account-content')
|
|
|
|
<div class="col-lg-9">
|
|
|
|
<div class="user-profile-wrapper">
|
|
|
|
@error('')
|
|
<span class="text-success">{{ $message }}</span>
|
|
@enderror
|
|
|
|
<div class="user-profile-card">
|
|
|
|
<h4 class="user-profile-card-title">
|
|
رزروهای من
|
|
</h4>
|
|
|
|
<div class="row mt-30">
|
|
|
|
@forelse($bookings as $booking)
|
|
|
|
<div class="col-12 mb-4">
|
|
|
|
<div class="review-item">
|
|
|
|
<div class="review-item-content">
|
|
|
|
@if($booking->flight)
|
|
|
|
<div class="mb-2">
|
|
<span class="badge">
|
|
<i class="far fa-plane"></i>
|
|
رزرو پرواز
|
|
</span>
|
|
</div>
|
|
|
|
<h5 class="mt-2">
|
|
{{ $booking->flight->title }}
|
|
</h5>
|
|
|
|
<p>
|
|
قیمت:
|
|
{{ number_format($booking->flight->price) }}
|
|
تومان
|
|
</p>
|
|
|
|
@if($booking->flight->departureAirport)
|
|
<p>
|
|
مبدا:
|
|
{{ $booking->flight->departureAirport->city->name }}
|
|
</p>
|
|
@endif
|
|
|
|
@if($booking->flight->arrivalAirport)
|
|
<p>
|
|
مقصد:
|
|
{{ $booking->flight->arrivalAirport->city->name }}
|
|
</p>
|
|
@endif
|
|
|
|
|
|
|
|
@elseif($booking->tour)
|
|
|
|
<div class="mb-2">
|
|
<span class="badge">
|
|
<i class="far fa-map"></i>
|
|
رزرو تور
|
|
</span>
|
|
</div>
|
|
|
|
<h5 class="mt-2">
|
|
{{ $booking->tour->title }}
|
|
</h5>
|
|
|
|
<p>
|
|
قیمت:
|
|
{{ number_format($booking->tour->price) }}
|
|
تومان
|
|
</p>
|
|
|
|
<p>
|
|
مبدا:
|
|
{{ $booking->tour->origin }}
|
|
</p>
|
|
|
|
<p>
|
|
مقصد:
|
|
{{ $booking->tour->destination }}
|
|
</p>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<small>
|
|
وضعیت رزرو:
|
|
|
|
@if($booking->status === \App\Enums\BookingStatus::PENDING)
|
|
در انتظار تأیید
|
|
|
|
@elseif($booking->status === \App\Enums\BookingStatus::CONFIRMED)
|
|
تأیید شده
|
|
|
|
@elseif($booking->status === \App\Enums\BookingStatus::CANCELLED)
|
|
لغو شده
|
|
@endif
|
|
</small>
|
|
|
|
<br>
|
|
|
|
|
|
<small>
|
|
کد پیگیری:
|
|
{{ $booking->tracking_code }}
|
|
</small>
|
|
|
|
<br>
|
|
|
|
|
|
<small>
|
|
تاریخ رزرو:
|
|
{{ $booking->created_at->toJalali()->format('Y/m/d') }}
|
|
</small>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@empty
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="text-center py-5">
|
|
|
|
<i class="far fa-shopping-bag fa-3x mb-3"></i>
|
|
|
|
<h5>
|
|
هنوز رزروی ندارید.
|
|
</h5>
|
|
|
|
<p>
|
|
رزروهای پرواز و تور شما در این قسمت نمایش داده میشوند.
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endforelse
|
|
|
|
</div>
|
|
|
|
|
|
{{-- Pagination --}}
|
|
@if($bookings->hasPages())
|
|
|
|
<div class="pagination-area my-4">
|
|
|
|
{{ $bookings->links() }}
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|