sihciv

Need to confirm delete record in laravel application

sihciv PURCHASED
6 months ago
Greetings,
I'm implementing backend functions by integrating Smarty 5.0.6 with Laravel.
I need help implementing a delete confirmation from the DB using the built-in plugin but I can't send additional parameters (csrf token and method=DELETE) via data-ajax-param.
Without the confirmation functionality everything works

<form action="{{ route('web.back.test.destroy', $permission->id) }}" method="POST">
@csrf
@method('DELETE')
<button type="submit" class="btn btn-primary">
<svg class="text-danger" width="18px" height="18px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke ="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="3 6 5 6 21 6"></polyline>
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>
<line x1="10" y1="11" x2="10" y2="17"></line>
<line x1="14" y1="11" x2="14" y2="17"></line>
</svg>
<span class="w-100">Delete</span>
</button>
</form>

trying to use js-ajax-config but no.

Some idea?

Thank you