diff --git a/resources/views/admin/pages/index.blade.php b/resources/views/admin/pages/index.blade.php
index aea947b..11abe0c 100644
--- a/resources/views/admin/pages/index.blade.php
+++ b/resources/views/admin/pages/index.blade.php
@@ -64,7 +64,7 @@
{{$page->name}}
- {{ action([\App\Http\Controllers\PagesController::class, 'pages'], ['slug' => $page->slug]) }}
+ {{ route('page', ['pages' => $page]) }}
|
{{$page->created_at}}
diff --git a/resources/views/admin/reclames/index.blade.php b/resources/views/admin/reclames/index.blade.php
new file mode 100644
index 0000000..d794ceb
--- /dev/null
+++ b/resources/views/admin/reclames/index.blade.php
@@ -0,0 +1,98 @@
+@extends('layout.admin', ['title' => 'Админка - Реклама сайта'])
+
+@section('script')
+
+@endsection
+
+@section('search')
+
+@endsection
+
+@section('content')
+
+
+ Добавить рекламу
+
+
+
+
+
+
+
+
+ № |
+ Заголовок |
+ Ссылка |
+ Позиция |
+ Скрыть |
+ Клики |
+ Редактировать |
+
+
+
+ @foreach($reclames as $reclame)
+
+
+ {{$reclame->id}}
+ |
+
+ {{$reclame->title}}
+ |
+
+ {{$reclame->link}}
+ |
+
+ {{$reclame->position}}
+ |
+
+ {{$reclame->is_hidden}}
+ |
+
+ {{$reclame->col_vo_click}}
+ |
+
+
+ |
+
+ @endforeach
+
+
+
+
+
+ =$reclames->appends($_GET)->links('admin.pagginate'); ?>
+
+
+@endsection
diff --git a/resources/views/admin/seo/add.blade.php b/resources/views/admin/seo/add.blade.php
new file mode 100644
index 0000000..e69de29
diff --git a/resources/views/admin/seo/edit.blade.php b/resources/views/admin/seo/edit.blade.php
new file mode 100644
index 0000000..e69de29
diff --git a/resources/views/admin/seo/form.blade.php b/resources/views/admin/seo/form.blade.php
new file mode 100644
index 0000000..e69de29
diff --git a/resources/views/admin/seo/index.blade.php b/resources/views/admin/seo/index.blade.php
new file mode 100644
index 0000000..2b46343
--- /dev/null
+++ b/resources/views/admin/seo/index.blade.php
@@ -0,0 +1,90 @@
+@extends('layout.admin', ['title' => 'Админка - Страницы SEO сайта'])
+
+@section('script')
+
+@endsection
+
+@section('search')
+
+@endsection
+
+@section('content')
+
+
+ Добавить seo странице
+
+
+
+
+
+
+
+
+ № |
+ URL страницы |
+ title страницы |
+ Дата создания |
+ Редактировать |
+
+
+
+ @foreach($pages as $page)
+
+
+ {{$page->id}}
+ |
+
+ {{$page->url}}
+ |
+
+ {{$page->title}}
+ |
+
+ {{$page->created_at}}
+ |
+
+
+ |
+
+ @endforeach
+
+
+
+
+
+ =$pages->appends($_GET)->links('admin.pagginate'); ?>
+
+
+@endsection
diff --git a/routes/web.php b/routes/web.php
index c972ec5..7dd4198 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -9,6 +9,7 @@ use App\Http\Controllers\Admin\UsersController;
use App\Http\Controllers\Admin\WorkersController;
use App\Http\Controllers\Auth\LoginController;
use App\Http\Controllers\Auth\RegisterController;
+use App\Http\Controllers\CKEditorController;
use App\Models\User;
use App\Http\Controllers\MainController;
use App\Http\Controllers\HomeController;
@@ -17,6 +18,7 @@ use App\Http\Controllers\Admin\CompanyController;
use App\Http\Controllers\Admin\Ad_EmployersController;
use App\Http\Controllers\Admin\MsgAnswersController;
use App\Http\Controllers\Admin\GroupsController;
+use App\Http\Controllers\PagesController;
/*
@@ -180,6 +182,11 @@ Route::group([
// кабинет - редактор seo-сайта
Route::get('editor-seo', [CompanyController::class, 'editor_seo'])->name('editor-seo');
+ Route::get('editor-seo/add', [CompanyController::class, 'editor_seo_add'])->name('add-seo');
+ Route::post('editor-seo/add', [CompanyController::class, 'editor_seo_store'])->name('add-seo-store');
+ Route::get('editor-seo/edit/{page}', [CompanyController::class, 'editor_seo_edit'])->name('edit-seo');
+ Route::put('editor-seo/edit/{page}', [CompanyController::class, 'editor_seo_update'])->name('update-seo');
+ Route::delete('editor-seo/delete/{page}', [CompanyController::class, 'editor_seo_destroy'])->name('delete-seo');
// кабинет - редактор страниц
@@ -225,3 +232,7 @@ Route::group([
Route::get('roles', [UsersController::class, 'roles'])->name('roles');
});
+
+Route::post('ckeditor/upload', [CKEditorController::class, 'upload'])->name('ckeditor.image-upload');
+
+Route::get('pages/{pages:slug}', [PagesController::class, 'pages'])->name('page'); |