tekrardan merhabalar bir soru daha soracağım

farklı bir konu olacakta fazla kirlilik yaratmak istemediğimdendir..
öncelikle benim bir .js kodum var
$("#smart-mod-eg1").click(function(e) {
$.SmartMessageBox({
title : "Do you want to delete !",
buttons : '[No][Yes]'
}, function(ButtonPressed) {
if (ButtonPressed === "Yes") {
$.smallBox({
title : "You did delete your information",
content : "<i class='fa fa-clock-o'></i> <i>You pressed Yes...</i>",
color : "#C46A69",
iconSmall : "fa fa-check fa-2x fadeInRight animated",
timeout : 4000
});
$(function(e){
$('[data-method]').append(function(e){
return "\n"+
"<form action='"+$(this).attr('href')+"' method='POST' style='display:none'>\n"+
" <input type='hidden' name='_method' value='"+$(this).attr('data-method')+"'>\n"+
"</form>\n"
})
.removeAttr('href')
.attr('style','cursor:pointer;')
.attr('onclick','$(this).find("form").submit();');
});
}
if (ButtonPressed === "No") {
$.smallBox({
title : "Callback function",
content : "<i class='fa fa-clock-o'></i> <i>You pressed No...</i>",
color : "#659265",
iconSmall : "fa fa-times fa-2x fadeInRight animated",
timeout : 4000
});
}
});
e.preventDefault();
})
şimdi burada bişeyleri yanlış yaptığımın farkındayım ancak isteğim şu şekilde bir delete butonu oluşturmak öncesinde de uyarıdaki .js ile alert vermek ve yes yada no ya göre notification bastırmak tek amacım
<a class="btn btn-xs btn-danger" id="smart-mod-eg1" data-method="delete" href="{{ route('edu.destroy',array($edu->id)) }}"> <i class="glyphicon glyphicon-trash"></i></a>
buttun linkim de bu şekildedir.. burayı nasıl düzgün bir hale getirebilirim acaba