chore: finalize project updates

This commit is contained in:
2026-08-22 11:42:16 +03:30
parent 7719d750e9
commit 691290c340
55 changed files with 1923 additions and 6498 deletions
+12 -4
View File
@@ -26,14 +26,22 @@
@endif
</div>
<div class="card-footer bg-transparent border-0 d-flex justify-content-between">
<a href="{{route('tours.index')}}" class="btn btn-sm btn-primary">مشاهده</a>
<div
class="card-footer bg-transparent border-0 d-flex justify-content-between align-items-center">
@if($favorite->favoritable_type === \App\Models\Tour::class)
<a href="{{ route('tours.show', $item->id) }}" class="btn btn-sm btn-primary">مشاهده
تور</a>
@endif
<form action="{{ route('favorites.toggle') }}" method="POST">
@csrf
<input type="hidden" name="favoritable_type" value="{{ $favorite->favoritable_type }}">
<input type="hidden" name="favoritable_type"
value="{{ $favorite->favoritable_type }}">
<input type="hidden" name="favoritable_id" value="{{ $favorite->favoritable_id }}">
<button class="btn btn-sm btn-danger">حذف</button>
<button type="submit" class="btn btn-sm btn-outline-danger">
از علاقه‌مندی‌ها حذف شود
</button>
</form>
</div>
</div>