fix:edit booking blade
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
@extends('account.layouts.app')
|
||||
@section('title', 'رزروهای من')
|
||||
@section('account-content')
|
||||
<div class="user-profile-wrapper">
|
||||
<div class="col-lg-12 mb-4">
|
||||
<div class="user-profile-card">
|
||||
<h4 class="user-profile-card-title">
|
||||
رزروهای من
|
||||
</h4>
|
||||
@forelse($bookings as $booking)
|
||||
<div class="border-bottom py-4">
|
||||
@if($booking->flight)
|
||||
<h5>
|
||||
رزرو پرواز
|
||||
</h5>
|
||||
<p>
|
||||
{{ $booking->flight->departureAirport->city->name }}
|
||||
|
||||
<i class="far fa-exchange mx-1"></i>
|
||||
|
||||
{{ $booking->flight->arrivalAirport->city->name }}
|
||||
</p>
|
||||
|
||||
@elseif($booking->tourDate && $booking->tourDate->tour)
|
||||
<h5>
|
||||
رزرو تور
|
||||
</h5>
|
||||
|
||||
<p>
|
||||
{{ $booking->tourDate->tour->title }}
|
||||
</p>
|
||||
@endif
|
||||
<p>
|
||||
کد پیگیری:
|
||||
{{ $booking->tracking_code }}
|
||||
</p>
|
||||
<p>
|
||||
بزرگسال:
|
||||
{{ $booking->adult_count }}
|
||||
-
|
||||
کودک:
|
||||
{{ $booking->child_count }}
|
||||
</p>
|
||||
<p>
|
||||
مبلغ:
|
||||
{{ number_format($booking->total_price) }}
|
||||
تومان
|
||||
</p>
|
||||
|
||||
</div>
|
||||
@empty
|
||||
<div class="text-center py-5">
|
||||
<p>
|
||||
هنوز رزروی ثبت نکردهاید.
|
||||
</p>
|
||||
</div>
|
||||
@endforelse
|
||||
<div class="mt-4">
|
||||
{{ $bookings->links() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user