git commit "add favorites display with polymorphic relation"

This commit is contained in:
2026-08-17 14:14:55 +03:30
parent 902384625b
commit ea1a0cc0c4
6 changed files with 61 additions and 73 deletions
+15
View File
@@ -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">