From 0f2b11d0efd8dc4cde44051f12dec5031017237e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=20=D0=9B=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D0=BE=D0=BD=D0=BE=D0=B2?= Date: Wed, 25 Oct 2023 15:03:56 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D0=BC=D0=BC=D0=B8=D1=82=20=D0=B4=D0=B8?= =?UTF-8?q?=D0=B0=D0=BB=D0=BE=D0=B3=D0=BE=D0=B2=D1=8B=D1=85=20=D0=BE=D0=BA=D0?= =?UTF-8?q?=BE=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/admin/employer/index.blade.php | 2 +- resources/views/admin/reclames/index.blade.php | 26 ++++++- resources/views/admin/reclames/modal.blade.php | 87 ++++++++++++++++++++++++ 3 files changed, 111 insertions(+), 4 deletions(-) create mode 100644 resources/views/admin/reclames/modal.blade.php 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 @@ + +
+ + +
+ -- 1.7.10.4