diff --git a/resources/views/admin/employer/index.blade.php b/resources/views/admin/employer/index.blade.php index 82a282a..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 f84f244..9c4f007 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 @@ Добавить рекламу
+
@@ -91,13 +112,12 @@ @method('DELETE') @if ($reclame->is_hidden) -

|

@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 @@ + +
+ + +
+