diff --git a/resources/views/admin/employer/index.blade.php b/resources/views/admin/employer/index.blade.php
index 82a282a..d37f983 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 = "=$_SERVER['HTTP_REFERER']?>/delete/"+e.target.getAttribute('data-employer')+'/'+e.target.getAttribute('data-user');
+ form.action = "=$_SERVER['REDIRECT_URL']?>/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 f84f244..f1d6313 100644
--- a/resources/views/admin/reclames/index.blade.php
+++ b/resources/views/admin/reclames/index.blade.php
@@ -29,6 +29,26 @@
});
});
+
+
+@endsection
+
+@section('modal')
+@include('admin.reclames.modal')
@endsection
@section('search')
@@ -41,6 +61,7 @@
Добавить рекламу
+
//print_r($_SERVER);?>
|
@else -|
@endif - + | Удалить + diff --git a/resources/views/admin/reclames/modal.blade.php b/resources/views/admin/reclames/modal.blade.php new file mode 100644 index 0000000..23e7404 --- /dev/null +++ b/resources/views/admin/reclames/modal.blade.php @@ -0,0 +1,87 @@ + ++ Вы действительно хотите удалить данную рекламу? +
+ +
+ Это приведет к удалению всей информации о рекламе
+ на данном проекте.
+