git commit "add user reservations and complete profile features"
This commit is contained in:
@@ -0,0 +1,155 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="theme-page-section theme-page-section-lg">
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
|
||||
@include('account.layout.app')
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-md-9">
|
||||
|
||||
|
||||
<div class="account-content">
|
||||
|
||||
|
||||
<h2 class="account-title">
|
||||
رزروهای من ✈️
|
||||
</h2>
|
||||
|
||||
|
||||
|
||||
@if($reservations->count())
|
||||
|
||||
|
||||
<div class="favorite-list">
|
||||
|
||||
|
||||
@foreach($reservations as $reservation)
|
||||
|
||||
|
||||
<div class="favorite-card">
|
||||
|
||||
|
||||
<div class="favorite-info">
|
||||
|
||||
|
||||
@if($reservation->reservable_type == 'App\Models\Tour')
|
||||
|
||||
|
||||
<h3>
|
||||
{{ $reservation->reservable?->title ?? 'تور حذف شده' }}
|
||||
</h3>
|
||||
|
||||
<p>
|
||||
تور
|
||||
</p>
|
||||
|
||||
|
||||
@elseif($reservation->reservable_type == 'App\Models\Flight')
|
||||
|
||||
|
||||
<h3>
|
||||
{{ $reservation->reservable?->name ?? 'پرواز حذف شده' }}
|
||||
</h3>
|
||||
|
||||
<p>
|
||||
پرواز
|
||||
</p>
|
||||
|
||||
|
||||
@endif
|
||||
|
||||
|
||||
|
||||
<p>
|
||||
مبلغ:
|
||||
|
||||
<strong>
|
||||
{{ number_format($reservation->price) }}
|
||||
تومان
|
||||
</strong>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
<p>
|
||||
|
||||
وضعیت:
|
||||
|
||||
@if($reservation->status == 'pending')
|
||||
|
||||
<span class="badge bg-warning">
|
||||
در انتظار بررسی
|
||||
</span>
|
||||
|
||||
@elseif($reservation->status == 'confirmed')
|
||||
|
||||
<span class="badge bg-success">
|
||||
تایید شده
|
||||
</span>
|
||||
|
||||
@elseif($reservation->status == 'cancelled')
|
||||
|
||||
<span class="badge bg-danger">
|
||||
لغو شده
|
||||
</span>
|
||||
|
||||
@endif
|
||||
|
||||
</p>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@endforeach
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@else
|
||||
|
||||
|
||||
<div class="empty-favorite">
|
||||
|
||||
<i class="fa fa-plane"></i>
|
||||
|
||||
<p>
|
||||
هنوز رزروی ثبت نکردهاید.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@endif
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@endsection
|
||||
Reference in New Issue
Block a user