chore: finalize project updates
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user