From e905cec2e3ac20308528eb1a4dc638899df8ceb2 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 18:26:42 +0700 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=B8=D0=B0=D0=BB=D0=BE=D0=B3=D0=BE=D0=B2=D1?= =?UTF-8?q?=8B=D0=B5=20=D0=BE=D0=BA=D0=BD=D0=B0=20=D1=83=D0=B4=D0=B0=D0=BB=D0?= =?UTF-8?q?=B5=D0=BD=D0=B8=D1=8F=20=D0=B2=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0?= =?UTF-8?q?=BE=D0=B4=D0=B0=D1=82=D0=B5=D0=BB=D1=8F=D1=85=20=D0=B8=20=D1=80=D0?= =?UTF-8?q?=B5=D0=BA=D0=BB=D0=B0=D0=BC=D0=B5?= 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..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 = "/delete/"+e.target.getAttribute('data-employer')+'/'+e.target.getAttribute('data-user'); + form.action = "/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 @@ Добавить рекламу
+
@@ -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