<form class="d-inline-block" action="Your url here" method="POST">
@csrf
<input type="hidden" name="id" value="{{ $category->id }}">
<button class="btn btn-sm btn-danger" type="button" onclick="if(confirm('Are you sure?')) $(this).closest('form').submit();">Delete</button>
</form>
Digər dildə:
EN