git commit "add user reservations and complete profile features"

This commit is contained in:
2026-08-17 19:35:22 +03:30
parent ded7416302
commit 3055e42641
12 changed files with 829 additions and 0 deletions
+27
View File
@@ -483,6 +483,33 @@
<span>قیمت</span>
<b>{{ number_format($flight->price) }} تومان</b>
</div>
<div class="mt-4">
@auth
<form action="{{ route('users.reservations.store') }}" method="POST">
@csrf
<input type="hidden" name="reservable_id" value="{{ $flight->id }}">
<input type="hidden" name="reservable_type" value="App\Models\Flight">
<input type="hidden" name="price" value="{{ $flight->price }}">
<button type="submit" class="btn btn-success">
رزرو تور
</button>
</form> @else
<a href="{{ route('auth.login.index') }}" class="btn btn-warning btn-lg px-5">
برای رزرو وارد شوید
</a>
@endauth
</div>
<div>
<span>تعداد مشاهده</span>