git commit "add favorites display with polymorphic relation"
This commit is contained in:
@@ -1,7 +1,22 @@
|
||||
<div class="col-md-4">
|
||||
|
||||
<div class="card border-0 shadow-sm rounded-4 overflow-hidden h-100">
|
||||
<form action="{{ route('users.favorite.store') }}" method="POST">
|
||||
|
||||
@csrf
|
||||
|
||||
<input type="hidden" name="id" value="{{ $tour->id }}">
|
||||
|
||||
<input type="hidden"
|
||||
name="type"
|
||||
value="App\Models\Tour">
|
||||
|
||||
|
||||
<button class="btn btn-outline-danger">
|
||||
❤️ افزودن به علاقهمندی
|
||||
</button>
|
||||
|
||||
</form>
|
||||
|
||||
<div class="flight-image">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user