v1.2.1 - Fixed Category for guides

This commit is contained in:
Anders
2020-09-14 08:57:31 +02:00
parent cab8ad604c
commit 580c38e940
3 changed files with 40 additions and 27 deletions
@@ -65,6 +65,18 @@
@foreach(\App\GuidesCategory::query()->get() as $guideCategory)
<tr>
<td>{{$guideCategory->guidesCategoryName}}</td>
@if(auth()->user()->can('guides.edit'))
<td><a href="{{ route("guides-category.edit", $guideCategory) }}"><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update2"></a></td>
@endif
@if(auth()->user()->can('guides.delete'))
<td><form method="post" action="{{ route("guides-category.destroy", $guideCategory) }}" class="w-100 nostyle">
@csrf
@method("delete")
<button onclick="return confirm('Are you sure you want to delete? You will also delete all guides with this category!');" class="w-100 nostyle" type="submit"><img class="w-100 cursor-pointer" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></button>
</form>
</td>
@endif
</tr>
@endforeach
</table>