Open baralogi opened 2 years ago
Improve function delete with bs modal/sweetalert/toastr. Now I just create with confirm vanilla js
modal/sweetalert/toastr
<div> <form method="POST" class="d-inline" action="{{ route('votings.destroy', ['voting' => $voting->id]) }}"> @method("delete") @csrf <input type="hidden" value="{{ $voting->id }}" /> <button class="btn btn-outline-danger btn-sm" onclick="return confirm('Yakin ingin menghapus data?')">Hapus</button> </form> </div>
Improve function delete with bs
modal/sweetalert/toastr
. Now I just create with confirm vanilla js