diff --git a/resources/views/admin/employer/index.blade.php b/resources/views/admin/employer/index.blade.php index d37f983..5b41915 100644 --- a/resources/views/admin/employer/index.blade.php +++ b/resources/views/admin/employer/index.blade.php @@ -43,7 +43,7 @@ console.log('click button'); let id = e.target.id; let form = document.getElementById("form_modal_del"); - form.action = "/delete/"+e.target.getAttribute('data-employer')+'/'+e.target.getAttribute('data-user'); + form.action = "admin/employers/delete/"+e.target.getAttribute('data-employer')+'/'+e.target.getAttribute('data-user'); //document.getElementById("title_modal").innerHTML = id; console.log(e.target.getAttribute('data-employer')); console.log(e.target.getAttribute('data-user')); diff --git a/resources/views/admin/reclames/index.blade.php b/resources/views/admin/reclames/index.blade.php index f1d6313..9c4f007 100644 --- a/resources/views/admin/reclames/index.blade.php +++ b/resources/views/admin/reclames/index.blade.php @@ -37,7 +37,7 @@ console.log('click button'); //let id = e.target.id; let form = document.getElementById("form_modal_del"); - form.action = "/delete/"+e.target.getAttribute('data-reclame'); + form.action = "admin/reclames/delete/"+e.target.getAttribute('data-reclame'); //document.getElementById("title_modal").innerHTML = id; console.log(e.target.getAttribute('data-employer')); console.log(e.target.getAttribute('data-user')); diff --git a/resources/views/admin/reclames/index_ajax.blade.php b/resources/views/admin/reclames/index_ajax.blade.php index c5860de..2c2afea 100644 --- a/resources/views/admin/reclames/index_ajax.blade.php +++ b/resources/views/admin/reclames/index_ajax.blade.php @@ -46,13 +46,12 @@ @method('DELETE') @if ($reclame->is_hidden) -

|

@else -

|

@endif - + | Удалить +