git commit "add user reservations and complete profile features"
This commit is contained in:
@@ -101,7 +101,33 @@
|
||||
<p class="mt-3">
|
||||
{{ $tour->description }}
|
||||
</p>
|
||||
<div class="mt-4">
|
||||
|
||||
@auth
|
||||
<form action="{{ route('users.reservations.store') }}" method="POST">
|
||||
|
||||
@csrf
|
||||
|
||||
<input type="hidden" name="reservable_id" value="{{ $tour->id }}">
|
||||
|
||||
<input type="hidden" name="reservable_type" value="App\Models\Tour">
|
||||
|
||||
<input type="hidden" name="price" value="{{ $tour->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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user