Commit c8c3ee5c649c4fa270a293c21690ffdaaa7f8aa1

Authored by Андрей Ларионов
Exists in master

Merge branch 'master' of http://gitlab.nologostudio.ru/alarionov/rekamore-su

Showing 5 changed files Side-by-side Diff

app/Http/Controllers/Admin/UsersController.php
... ... @@ -150,11 +150,11 @@ class UsersController extends Controller
150 150 public function admin_roles(Request $request) {
151 151  
152 152 if ($request->ajax()) {
153   - $content_roles = ContentRoles::find($request->id);
154   - $request->offsetUnset($request->id);
155   - $content_roles->update($request->all());
  153 + $id = $request->id;
  154 + $request->offsetUnset('id');
  155 + ContentRoles::where('id', '=', $id)->update($request->all());
156 156 }
157   - $roles = ContentRoles::query()->OrderBy('name')->paginate(25);
  157 + $roles = ContentRoles::query()->OrderBy('id')->paginate(25);
158 158  
159 159  
160 160 if ($request->ajax()) {
resources/views/admin/content/roles_index.blade.php
... ... @@ -5,7 +5,7 @@
5 5 $(document).ready(function() {
6 6 $(document).on('click', '.check_click', function () {
7 7 var this_ = $(this);
8   - var value = this_.val();
  8 + var value_id = this_.attr('data-id');
9 9 var field = this_.attr('data-field');
10 10 var ajax_block = $('#ajax_block');
11 11 var bool = 0;
... ... @@ -16,8 +16,9 @@
16 16 } else {
17 17 bool = 0;
18 18 }
  19 +
19 20 console.log(field);
20   - str_get = "id=" + value + "&" + field + "=" + bool;
  21 + str_get = "id=" + value_id + "&" + field + "=" + bool;
21 22 console.log(str_get);
22 23  
23 24 $.ajax({
... ... @@ -25,7 +26,7 @@
25 26 url: "{{ url()->full()}}",
26 27 data: str_get,
27 28 success: function (data) {
28   - console.log('Обновление таблицы пользователей ');
  29 + console.log('Обновление таблицы ролей ');
29 30 //data = JSON.parse(data);
30 31 //console.log(data);
31 32 ajax_block.html(data);
... ... @@ -71,10 +72,12 @@
71 72 {{ $role->url_page }}
72 73 </td>
73 74 <td class="px-4 py-3 text-xs">
74   - {{ $role->is_admin }}
  75 + <input type="checkbox" class="check_click" data-id="{{$role->id}}" data-field="is_admin" name="admin_{{$role->id}}" {{ ($role->is_admin) ? "checked" : "" }}/>
  76 +
75 77 </td>
76 78 <td class="px-4 py-3 text-xs">
77   - {{ $role->is_manager }}
  79 + <input type="checkbox" class="check_click" data-id="{{$role->id}}" data-field="is_manager" name="manager_{{$role->id}}" {{ ($role->is_manager) ? "checked" : "" }}/>
  80 +
78 81 </td>
79 82  
80 83 <td class="px-4 py-3 text-xs">
resources/views/admin/content/roles_index_ajax.blade.php
... ... @@ -0,0 +1,47 @@
  1 +<div class="w-full overflow-x-auto">
  2 + <table class="w-full whitespace-no-wrap">
  3 + <thead>
  4 + <tr
  5 + class="text-xs font-semibold tracking-wide text-left text-gray-500 uppercase border-b dark:border-gray-700 bg-gray-50 dark:text-gray-400 dark:bg-gray-800"
  6 + >
  7 + <th class="px-4 py-3 text-xs">№</th>
  8 + <th class="px-4 py-3 text-xs">Раздел</th>
  9 + <th class="px-4 py-3 text-xs">URL-страницы</th>
  10 + <th class="px-4 py-3 text-xs">Админ</th>
  11 + <th class="px-4 py-3 text-xs">Менеджер</th>
  12 + <th class="px-4 py-3 text-xs">Дата регист.</th>
  13 + </tr>
  14 + </thead>
  15 + <tbody class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800">
  16 + @foreach($roles as $role)
  17 + <tr class="text-gray-700 dark:text-gray-400">
  18 + <td class="px-4 py-3 text-xs">
  19 + {{$role->id}}
  20 + </td>
  21 + <td class="px-4 py-3 text-xs">
  22 + {{$role->name}}
  23 + </td>
  24 + <td class="px-4 py-3 text-xs">
  25 + {{ $role->url_page }}
  26 + </td>
  27 + <td class="px-4 py-3 text-xs">
  28 + <input type="checkbox" class="check_click" value="{{$role->id}}" data-field="admin" name="admin_{{$role->id}}" {{ ($role->is_admin) ? "checked" : "" }}/>
  29 +
  30 + </td>
  31 + <td class="px-4 py-3 text-xs">
  32 + <input type="checkbox" class="check_click" value="{{$role->id}}" data-field="admin" name="admin_{{$role->id}}" {{ ($role->is_manager) ? "checked" : "" }}/>
  33 +
  34 + </td>
  35 +
  36 + <td class="px-4 py-3 text-xs">
  37 + {{ date('d.m.Y', strtotime($role->created_at)) }}
  38 + </td>
  39 + </tr>
  40 + @endforeach
  41 + </tbody>
  42 + </table>
  43 +</div>
  44 +
  45 +<div class="grid px-4 py-3 text-xs font-semibold tracking-wide text-gray-500 uppercase border-t dark:border-gray-700 bg-gray-50 sm:grid-cols-9 dark:text-gray-400 dark:bg-gray-800">
  46 + {{$roles->links('admin.pagginate') }}
  47 +</div>
resources/views/layout/admin.blade.php
Changes suppressed. Click to show
... ... @@ -32,9 +32,7 @@
32 32 href="{{ route('admin.index') }}">
33 33 Админка
34 34 </a>
35   -
36 35 <ul class="mt-6">
37   - @if (($is_manager == 1) || ($admin == 1))
38 36 <li class="relative px-6 py-3">
39 37 <span
40 38 class="absolute inset-y-0 left-0 w-1 bg-purple-600 rounded-tr-lg rounded-br-lg"
... ... @@ -61,39 +59,72 @@
61 59 <span class="ml-4">Главная страница</span>
62 60 </a>
63 61 </li>
64   - @endif
65 62 </ul>
  63 +
66 64 <ul>
67   - @if (($UserId == 1) || ($admin == 1))
68   - <li class="relative px-6 py-3">
69   - <a
70   - class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.users') ? 'dark:text-gray-100' : null }}"
71   - href="{{ route('admin.users') }}"
72   - >
73   - <svg
74   - class="w-5 h-5"
75   - aria-hidden="true"
76   - fill="none"
77   - stroke-linecap="round"
78   - stroke-linejoin="round"
79   - stroke-width="2"
80   - viewBox="0 0 24 24"
81   - stroke="currentColor"
82   - >
83   - <path
84   - d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"
85   - ></path>
86   - </svg>
87   - <span class="ml-4">Пользователи</span>
88   - </a>
89   - </li>
  65 + @foreach ($contents as $cont)
  66 + @if ($cont->url_page == "admin/users")
  67 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  68 + (($cont->is_manager == 1) && ($is_manager == 1)))
  69 + <li class="relative px-6 py-3">
  70 + <a
  71 + class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.users') ? 'dark:text-gray-100' : null }}"
  72 + href="{{ route('admin.users') }}"
  73 + >
  74 + <svg
  75 + class="w-5 h-5"
  76 + aria-hidden="true"
  77 + fill="none"
  78 + stroke-linecap="round"
  79 + stroke-linejoin="round"
  80 + stroke-width="2"
  81 + viewBox="0 0 24 24"
  82 + stroke="currentColor"
  83 + >
  84 + <path
  85 + d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"
  86 + ></path>
  87 + </svg>
  88 + <span class="ml-4">Пользователи</span>
  89 + </a>
  90 + </li>
  91 + @endif
90 92 @endif
91 93  
92   - @if ($admin == 1)
93   - <!--<li class="relative px-6 py-3">
  94 + @if ($cont->url_page == "admin/admin_roles")
  95 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  96 + (($cont->is_manager == 1) && ($is_manager == 1)))
  97 + <li class="relative px-6 py-3">
  98 + <a
  99 + class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.users') ? 'dark:text-gray-100' : null }}"
  100 + href="{{ route('admin.admin_roles') }}"
  101 + >
  102 + <svg
  103 + class="w-5 h-5"
  104 + aria-hidden="true"
  105 + fill="none"
  106 + stroke-linecap="round"
  107 + stroke-linejoin="round"
  108 + stroke-width="2"
  109 + viewBox="0 0 24 24"
  110 + stroke="currentColor"
  111 + >
  112 + <path
  113 + d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"
  114 + ></path>
  115 + </svg>
  116 + <span class="ml-4">Роли администраторов</span>
  117 + </a>
  118 + </li>
  119 + @endif
  120 + @endif
  121 +
  122 + @if ($cont->url_page == "admin/admin-users")
  123 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  124 + (($cont->is_manager == 1) && ($is_manager == 1)))
  125 + <li class="relative px-6 py-3">
94 126 <a
95   - class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.users') ? 'dark:text-gray-100' : null }}"
96   - href="{{ route('admin.admin_roles') }}"
  127 + class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.admin-users') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.admin-users') }}"
97 128 >
98 129 <svg
99 130 class="w-5 h-5"
... ... @@ -106,18 +137,76 @@
106 137 stroke="currentColor"
107 138 >
108 139 <path
109   - d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"
  140 + d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"
110 141 ></path>
111 142 </svg>
112   - <span class="ml-4">Роли администраторов</span>
  143 + <span class="ml-4">Администраторы</span>
113 144 </a>
114   - </li>-->
  145 + </li>
  146 + @endif
115 147 @endif
116 148  
117   - @if ($admin == 1)
118   - <li class="relative px-6 py-3">
  149 + @if ($cont->url_page == "admin/employers")
  150 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  151 + (($cont->is_manager == 1) && ($is_manager == 1)))
  152 + <li class="relative px-6 py-3">
  153 + <a
  154 + class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.employers') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.employers') }}"
  155 + >
  156 + <svg
  157 + class="w-5 h-5"
  158 + aria-hidden="true"
  159 + fill="none"
  160 + stroke-linecap="round"
  161 + stroke-linejoin="round"
  162 + stroke-width="2"
  163 + viewBox="0 0 24 24"
  164 + stroke="currentColor"
  165 + >
  166 + <path
  167 + d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"
  168 + ></path>
  169 + </svg>
  170 + <span class="ml-4">Работодатели</span>
  171 + </a>
  172 + </li>
  173 + @endif
  174 + @endif
  175 +
  176 + @if ($cont->url_page == "admin/workers")
  177 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  178 + (($cont->is_manager == 1) && ($is_manager == 1)))
  179 + <li class="relative px-6 py-3">
  180 + <a
  181 + class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.workers') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.workers') }}"
  182 + >
  183 + <svg
  184 + class="w-5 h-5"
  185 + aria-hidden="true"
  186 + fill="none"
  187 + stroke-linecap="round"
  188 + stroke-linejoin="round"
  189 + stroke-width="2"
  190 + viewBox="0 0 24 24"
  191 + stroke="currentColor"
  192 + >
  193 + <path
  194 + d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"
  195 + ></path>
  196 + <path d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"></path>
  197 + </svg>
  198 + <span class="ml-4">Соискатели</span>
  199 + </a>
  200 + </li>
  201 + @endif
  202 + @endif
  203 +
  204 + @if ($cont->url_page == "admin/ad-employers")
  205 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  206 + (($cont->is_manager == 1) && ($is_manager == 1)))
  207 + <li class="relative px-6 py-3">
119 208 <a
120   - class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.admin-users') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.admin-users') }}"
  209 + class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.ad-employers') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.ad-employers') }}"
121 210 >
122 211 <svg
123 212 class="w-5 h-5"
... ... @@ -130,158 +219,122 @@
130 219 stroke="currentColor"
131 220 >
132 221 <path
133   - d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"
  222 + d="M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"
134 223 ></path>
135 224 </svg>
136   - <span class="ml-4">Администраторы</span>
  225 + <span class="ml-4">Вакансии</span>
137 226 </a>
138   - </li>
139   - @endif
140   -
141   - @if (($is_manager == 1) || ($admin == 1))
142   - <li class="relative px-6 py-3">
143   - <a
144   - class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.employers') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.employers') }}"
145   - >
146   - <svg
147   - class="w-5 h-5"
148   - aria-hidden="true"
149   - fill="none"
150   - stroke-linecap="round"
151   - stroke-linejoin="round"
152   - stroke-width="2"
153   - viewBox="0 0 24 24"
154   - stroke="currentColor"
155   - >
156   - <path
157   - d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"
158   - ></path>
159   - </svg>
160   - <span class="ml-4">Работодатели</span>
161   - </a>
162   - </li>
163   - @endif
164   -
165   - @if (($is_manager == 1) || ($admin == 1))
166   - <li class="relative px-6 py-3">
167   - <a
168   - class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.workers') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.workers') }}"
169   - >
170   - <svg
171   - class="w-5 h-5"
172   - aria-hidden="true"
173   - fill="none"
174   - stroke-linecap="round"
175   - stroke-linejoin="round"
176   - stroke-width="2"
177   - viewBox="0 0 24 24"
178   - stroke="currentColor"
179   - >
180   - <path
181   - d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"
182   - ></path>
183   - <path d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"></path>
184   - </svg>
185   - <span class="ml-4">Соискатели</span>
186   - </a>
187   - </li>
  227 + </li>
  228 + @endif
188 229 @endif
189 230  
190   - @if (($is_manager) || ($admin))
191   - <li class="relative px-6 py-3">
192   - <a
193   - class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.ad-employers') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.ad-employers') }}"
194   - >
195   - <svg
196   - class="w-5 h-5"
197   - aria-hidden="true"
198   - fill="none"
199   - stroke-linecap="round"
200   - stroke-linejoin="round"
201   - stroke-width="2"
202   - viewBox="0 0 24 24"
203   - stroke="currentColor"
  231 + @if ($cont->url_page == "admin/messages")
  232 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  233 + (($cont->is_manager == 1) && ($is_manager == 1)))
  234 + <li class="relative px-6 py-3">
  235 + <a
  236 + class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.messages') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.messages') }}"
204 237 >
205   - <path
206   - d="M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"
207   - ></path>
208   - </svg>
209   - <span class="ml-4">Вакансии</span>
210   - </a>
211   - </li>
  238 + <svg
  239 + class="w-5 h-5"
  240 + aria-hidden="true"
  241 + fill="none"
  242 + stroke-linecap="round"
  243 + stroke-linejoin="round"
  244 + stroke-width="2"
  245 + viewBox="0 0 24 24"
  246 + stroke="currentColor"
  247 + >
  248 + <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path>
  249 + </svg>
  250 + <span class="ml-4">Сообщения все</span>
  251 + </a>
  252 + </li>
  253 + @endif
212 254 @endif
213 255  
214   - @if ($admin)
215   - <li class="relative px-6 py-3">
216   - <a
217   - class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.messages') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.messages') }}"
218   - >
219   - <svg
220   - class="w-5 h-5"
221   - aria-hidden="true"
222   - fill="none"
223   - stroke-linecap="round"
224   - stroke-linejoin="round"
225   - stroke-width="2"
226   - viewBox="0 0 24 24"
227   - stroke="currentColor"
228   - >
229   - <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path>
230   - </svg>
231   - <span class="ml-4">Сообщения все</span>
232   - </a>
233   - </li>
  256 + @if ($cont->url_page == "admin/admin-messages")
  257 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  258 + (($cont->is_manager == 1) && ($is_manager == 1)))
  259 + <li class="relative px-6 py-3">
  260 + <a
  261 + class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.admin-messages') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.admin-messages') }}"
  262 + >
  263 + <svg
  264 + class="w-5 h-5"
  265 + aria-hidden="true"
  266 + fill="none"
  267 + stroke-linecap="round"
  268 + stroke-linejoin="round"
  269 + stroke-width="2"
  270 + viewBox="0 0 24 24"
  271 + stroke="currentColor"
  272 + >
  273 + <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path>
  274 + </svg>
  275 + <span class="ml-4">Заявки на рассылку</span>
  276 + </a>
  277 + </li>
  278 + @endif
234 279 @endif
235 280  
236   - @if ($admin)
237   - <li class="relative px-6 py-3">
238   - <a
239   - class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.admin-messages') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.admin-messages') }}"
240   - >
241   - <svg
242   - class="w-5 h-5"
243   - aria-hidden="true"
244   - fill="none"
245   - stroke-linecap="round"
246   - stroke-linejoin="round"
247   - stroke-width="2"
248   - viewBox="0 0 24 24"
249   - stroke="currentColor"
  281 + @if ($cont->url_page == "admin/groups")
  282 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  283 + (($cont->is_manager == 1) && ($is_manager == 1)))
  284 + <li class="relative px-6 py-3">
  285 + <a
  286 + class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.groups') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.groups') }}"
250 287 >
251   - <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path>
252   - </svg>
253   - <span class="ml-4">Заявки на рассылку</span>
254   - </a>
255   - </li>
  288 + <svg
  289 + class="w-5 h-5"
  290 + aria-hidden="true"
  291 + fill="none"
  292 + stroke-linecap="round"
  293 + stroke-linejoin="round"
  294 + stroke-width="2"
  295 + viewBox="0 0 24 24"
  296 + stroke="currentColor"
  297 + >
  298 + <path
  299 + d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"
  300 + ></path>
  301 + </svg>
  302 + <span class="ml-4">Группы пользователей</span>
  303 + </a>
  304 + </li>
  305 + @endif
256 306 @endif
257 307  
258   - @if (($is_manager) || ($admin))
259   - <li class="relative px-6 py-3">
260   - <a
261   - class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.groups') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.groups') }}"
262   - >
263   - <svg
264   - class="w-5 h-5"
265   - aria-hidden="true"
266   - fill="none"
267   - stroke-linecap="round"
268   - stroke-linejoin="round"
269   - stroke-width="2"
270   - viewBox="0 0 24 24"
271   - stroke="currentColor"
272   - >
273   - <path
274   - d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"
275   - ></path>
276   - </svg>
277   - <span class="ml-4">Группы пользователей</span>
278   - </a>
279   - </li>
  308 + @if ($cont->url_page == "admin/media")
  309 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  310 + (($cont->is_manager == 1) && ($is_manager == 1)))
  311 + <li class="relative px-6 py-3">
  312 + <a class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.media') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.media') }}">
  313 + <svg
  314 + class="w-5 h-5"
  315 + aria-hidden="true"
  316 + fill="none"
  317 + stroke-linecap="round"
  318 + stroke-linejoin="round"
  319 + stroke-width="2"
  320 + viewBox="0 0 24 24"
  321 + stroke="currentColor"
  322 + >
  323 + <path
  324 + d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"
  325 + ></path>
  326 + </svg>
  327 + <span class="ml-4">Медиа</span>
  328 + </a>
  329 + </li>
  330 + @endif
280 331 @endif
281 332  
282   - @if (($is_manager) || ($admin))
283   - <li class="relative px-6 py-3">
284   - <a class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.media') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.media') }}">
  333 + @if ($cont->url_page == "admin/roles")
  334 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  335 + (($cont->is_manager == 1) && ($is_manager == 1)))
  336 + <li class="relative px-6 py-3">
  337 + <a class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.roles') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.roles') }}">
285 338 <svg
286 339 class="w-5 h-5"
287 340 aria-hidden="true"
... ... @@ -296,59 +349,70 @@
296 349 d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"
297 350 ></path>
298 351 </svg>
299   - <span class="ml-4">Медиа</span>
  352 + <span class="ml-4">Роли пользователей</span>
300 353 </a>
301   - </li>
  354 + </li>
  355 + @endif
302 356 @endif
303 357  
304   - @if ($UserId == 1)
305   - <li class="relative px-6 py-3">
306   - <a class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.roles') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.roles') }}">
307   - <svg
308   - class="w-5 h-5"
309   - aria-hidden="true"
310   - fill="none"
311   - stroke-linecap="round"
312   - stroke-linejoin="round"
313   - stroke-width="2"
314   - viewBox="0 0 24 24"
315   - stroke="currentColor"
  358 + @if ($cont->url_page == "admin/basedata")
  359 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  360 + (($cont->is_manager == 1) && ($is_manager == 1)))
  361 + <li class="relative px-6 py-3">
  362 + <a
  363 + class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.basedata') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.basedata') }}"
316 364 >
317   - <path
318   - d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"
319   - ></path>
320   - </svg>
321   - <span class="ml-4">Роли пользователей</span>
322   - </a>
323   - </li>
  365 + <svg
  366 + class="w-5 h-5"
  367 + aria-hidden="true"
  368 + fill="none"
  369 + stroke-linecap="round"
  370 + stroke-linejoin="round"
  371 + stroke-width="2"
  372 + viewBox="0 0 24 24"
  373 + stroke="currentColor"
  374 + >
  375 + <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path>
  376 + </svg>
  377 + <span class="ml-4">Базы данных</span>
  378 + </a>
  379 + </li>
  380 + @endif
324 381 @endif
325 382  
326   - @if (($is_manager) || ($admin))
327   - <li class="relative px-6 py-3">
328   - <a
329   - class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.basedata') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.basedata') }}"
330   - >
331   - <svg
332   - class="w-5 h-5"
333   - aria-hidden="true"
334   - fill="none"
335   - stroke-linecap="round"
336   - stroke-linejoin="round"
337   - stroke-width="2"
338   - viewBox="0 0 24 24"
339   - stroke="currentColor"
340   - >
341   - <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path>
342   - </svg>
343   - <span class="ml-4">Базы данных</span>
344   - </a>
345   - </li>
  383 + @if ($cont->url_page == "admin/education")
  384 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  385 + (($cont->is_manager == 1) && ($is_manager == 1)))
  386 + <li class="relative px-6 py-3">
  387 + <a
  388 + class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.education.index') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.education.index') }}"
  389 + >
  390 + <svg
  391 + class="w-5 h-5"
  392 + aria-hidden="true"
  393 + fill="none"
  394 + stroke-linecap="round"
  395 + stroke-linejoin="round"
  396 + stroke-width="2"
  397 + viewBox="0 0 24 24"
  398 + stroke="currentColor"
  399 + >
  400 + <path
  401 + d="M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"
  402 + ></path>
  403 + </svg>
  404 + <span class="ml-4">Учебн.заведения</span>
  405 + </a>
  406 + </li>
  407 + @endif
346 408 @endif
347 409  
348   - @if ($admin)
349   - <li class="relative px-6 py-3">
  410 + @if ($cont->url_page == "admin/statics")
  411 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  412 + (($cont->is_manager == 1) && ($is_manager == 1)))
  413 + <li class="relative px-6 py-3">
350 414 <a
351   - class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.education.index') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.education.index') }}"
  415 + class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.statics') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.statics') }}"
352 416 >
353 417 <svg
354 418 class="w-5 h-5"
... ... @@ -361,87 +425,70 @@
361 425 stroke="currentColor"
362 426 >
363 427 <path
364   - d="M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"
  428 + d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"
365 429 ></path>
  430 + <path d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"></path>
366 431 </svg>
367   - <span class="ml-4">Учебн.заведения</span>
  432 + <span class="ml-4">Статистика</span>
368 433 </a>
369   - </li>
370   - @endif
371   -
372   - @if ($admin)
373   - <li class="relative px-6 py-3">
374   - <a
375   - class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.statics') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.statics') }}"
376   - >
377   - <svg
378   - class="w-5 h-5"
379   - aria-hidden="true"
380   - fill="none"
381   - stroke-linecap="round"
382   - stroke-linejoin="round"
383   - stroke-width="2"
384   - viewBox="0 0 24 24"
385   - stroke="currentColor"
386   - >
387   - <path
388   - d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"
389   - ></path>
390   - <path d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"></path>
391   - </svg>
392   - <span class="ml-4">Статистика</span>
393   - </a>
394   - </li>
  434 + </li>
  435 + @endif
395 436 @endif
396 437  
397   - @if (($is_manager) || ($admin))
398   - <li class="relative px-6 py-3">
399   - <a
400   - class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.answers') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.answers') }}"
401   - >
402   - <svg
403   - class="w-5 h-5"
404   - aria-hidden="true"
405   - fill="none"
406   - stroke-linecap="round"
407   - stroke-linejoin="round"
408   - stroke-width="2"
409   - viewBox="0 0 24 24"
410   - stroke="currentColor"
  438 + @if ($cont->url_page == "admin/answers")
  439 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  440 + (($cont->is_manager == 1) && ($is_manager == 1)))
  441 + <li class="relative px-6 py-3">
  442 + <a
  443 + class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.answers') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.answers') }}"
411 444 >
412   - <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path>
413   - </svg>
414   - <span class="ml-4">Модерация</span>
415   - </a>
416   - </li>
  445 + <svg
  446 + class="w-5 h-5"
  447 + aria-hidden="true"
  448 + fill="none"
  449 + stroke-linecap="round"
  450 + stroke-linejoin="round"
  451 + stroke-width="2"
  452 + viewBox="0 0 24 24"
  453 + stroke="currentColor"
  454 + >
  455 + <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path>
  456 + </svg>
  457 + <span class="ml-4">Модерация</span>
  458 + </a>
  459 + </li>
  460 + @endif
417 461 @endif
418 462  
419   - @if (($is_manager) || ($admin))
420   - <li class="relative px-6 py-3">
421   - <a
422   - class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.reclames') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.reclames') }}"
423   - >
424   - <svg
425   - class="w-5 h-5"
426   - aria-hidden="true"
427   - fill="none"
428   - stroke-linecap="round"
429   - stroke-linejoin="round"
430   - stroke-width="2"
431   - viewBox="0 0 24 24"
432   - stroke="currentColor"
  463 + @if ($cont->url_page == "admin/reclames")
  464 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  465 + (($cont->is_manager == 1) && ($is_manager == 1)))
  466 + <li class="relative px-6 py-3">
  467 + <a
  468 + class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.reclames') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.reclames') }}"
433 469 >
434   - <path
435   - d="M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"
436   - ></path>
437   - </svg>
438   - <span class="ml-4">Реклама</span>
439   - </a>
440   - </li>
  470 + <svg
  471 + class="w-5 h-5"
  472 + aria-hidden="true"
  473 + fill="none"
  474 + stroke-linecap="round"
  475 + stroke-linejoin="round"
  476 + stroke-width="2"
  477 + viewBox="0 0 24 24"
  478 + stroke="currentColor"
  479 + >
  480 + <path
  481 + d="M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"
  482 + ></path>
  483 + </svg>
  484 + <span class="ml-4">Реклама</span>
  485 + </a>
  486 + </li>
  487 + @endif
441 488 @endif
442   -
  489 + @endforeach
443 490 <!-- Справочники -->
444   - @if ($admin)
  491 +
445 492 <li class="relative px-6 py-3" x-data="{ open1: false }">
446 493 <button
447 494 class="inline-flex items-center justify-between w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200"
... ... @@ -487,26 +534,47 @@
487 534 class="p-2 mt-2 space-y-2 overflow-hidden text-sm font-medium text-gray-500 rounded-md shadow-inner bg-gray-50 dark:text-gray-400 dark:bg-gray-900"
488 535 aria-label="submenu"
489 536 >
490   - <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.job-titles.index') ? 'dark:text-gray-100' : null }}">
491   - <a class="w-full" href="{{ route('admin.job-titles.index') }}">Должности</a>
492   - </li>
493   - <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.categories.index') ? 'dark:text-gray-100' : null }}">
494   - <a class="w-full" href="{{ route('admin.categories.index') }}">Категории вакансий</a>
495   - </li>
496   - <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.category-emp.index') ? 'dark:text-gray-100' : null }}">
497   - <a class="w-full" href="{{ route('admin.category-emp.index') }}">Категории работодателей</a>
498   - </li>
499   - <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.infobloks.index') ? 'dark:text-gray-100' : null }}">
500   - <a class="w-full" href="{{ route('admin.infobloks.index') }}">Блоки-Дипломы</a>
501   - </li>
  537 + @foreach ($contents as $cont)
  538 + @if ($cont->url_page == "admin/job-titles")
  539 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  540 + (($cont->is_manager == 1) && ($is_manager == 1)))
  541 + <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.job-titles.index') ? 'dark:text-gray-100' : null }}">
  542 + <a class="w-full" href="{{ route('admin.job-titles.index') }}">Должности</a>
  543 + </li>
  544 + @endif
  545 + @endif
502 546  
  547 + @if ($cont->url_page == "admin/categories")
  548 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  549 + (($cont->is_manager == 1) && ($is_manager == 1)))
  550 + <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.categories.index') ? 'dark:text-gray-100' : null }}">
  551 + <a class="w-full" href="{{ route('admin.categories.index') }}">Категории вакансий</a>
  552 + </li>
  553 + @endif
  554 + @endif
  555 +
  556 + @if ($cont->url_page == "admin/category-emp")
  557 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  558 + (($cont->is_manager == 1) && ($is_manager == 1)))
  559 + <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.category-emp.index') ? 'dark:text-gray-100' : null }}">
  560 + <a class="w-full" href="{{ route('admin.category-emp.index') }}">Категории работодателей</a>
  561 + </li>
  562 + @endif
  563 + @endif
  564 +
  565 + @if ($cont->url_page == "admin/infobloks")
  566 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  567 + (($cont->is_manager == 1) && ($is_manager == 1)))
  568 + <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.infobloks.index') ? 'dark:text-gray-100' : null }}">
  569 + <a class="w-full" href="{{ route('admin.infobloks.index') }}">Блоки-Дипломы</a>
  570 + </li>
  571 + @endif
  572 + @endif
  573 + @endforeach
503 574 </ul>
504 575 </template>
505 576 </li>
506   - @endif
507   -
508 577  
509   - @if ($admin)
510 578 <!-- Редактор -->
511 579 <li class="relative px-6 py-3">
512 580 <button
... ... @@ -553,31 +621,67 @@
553 621 class="p-2 mt-2 space-y-2 overflow-hidden text-sm font-medium text-gray-500 rounded-md shadow-inner bg-gray-50 dark:text-gray-400 dark:bg-gray-900"
554 622 aria-label="submenu"
555 623 >
556   - <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.editor-site') ? 'dark:text-gray-100' : null }}">
557   - <a class="w-full" href="{{ route('admin.editor-site') }}">Редактор сайта</a>
558   - </li>
559   - <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.edit-blocks') ? 'dark:text-gray-100' : null }}">
560   - <a class="w-full" href="{{ route('admin.edit-blocks') }}">Шапка-футер сайта</a>
561   - </li>
  624 + @foreach ($contents as $cont)
  625 + @if ($cont->url_page == "admin/editor-site")
  626 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  627 + (($cont->is_manager == 1) && ($is_manager == 1)))
  628 + <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.editor-site') ? 'dark:text-gray-100' : null }}">
  629 + <a class="w-full" href="{{ route('admin.editor-site') }}">Редактор сайта</a>
  630 + </li>
  631 + @endif
  632 + @endif
562 633  
563   - <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.editor-seo') ? 'dark:text-gray-100' : null }}">
564   - <a class="w-full" href="{{ route('admin.editor-seo') }}">SEO сайта</a>
565   - </li>
566   - <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.editor-pages') ? 'dark:text-gray-100' : null }}">
567   - <a class="w-full" href="{{ route('admin.editor-pages') }}">Редактор страниц</a>
568   - </li>
569   - <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.job-titles-main') ? 'dark:text-gray-100' : null }}">
570   - <a class="w-full" href="{{ route('admin.job-titles-main') }}">Должности на главной</a>
571   - </li>
572   - <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.employers-main') ? 'dark:text-gray-100' : null }}">
573   - <a class="w-full" href="{{ route('admin.employers-main') }}">Работодатели на главной</a>
574   - </li>
  634 + @if ($cont->url_page == "admin/edit-blocks")
  635 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  636 + (($cont->is_manager == 1) && ($is_manager == 1)))
  637 + <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.edit-blocks') ? 'dark:text-gray-100' : null }}">
  638 + <a class="w-full" href="{{ route('admin.edit-blocks') }}">Шапка-футер сайта</a>
  639 + </li>
  640 + @endif
  641 + @endif
  642 +
  643 + @if ($cont->url_page == "admin/editor-seo")
  644 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  645 + (($cont->is_manager == 1) && ($is_manager == 1)))
  646 + <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.editor-seo') ? 'dark:text-gray-100' : null }}">
  647 + <a class="w-full" href="{{ route('admin.editor-seo') }}">SEO сайта</a>
  648 + </li>
  649 + @endif
  650 + @endif
  651 +
  652 + @if ($cont->url_page == "admin/editor-pages")
  653 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  654 + (($cont->is_manager == 1) && ($is_manager == 1)))
  655 + <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.editor-pages') ? 'dark:text-gray-100' : null }}">
  656 + <a class="w-full" href="{{ route('admin.editor-pages') }}">Редактор страниц</a>
  657 + </li>
  658 + @endif
  659 + @endif
  660 +
  661 + @if ($cont->url_page == "admin/job-titles-main")
  662 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  663 + (($cont->is_manager == 1) && ($is_manager == 1)))
  664 + <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.job-titles-main') ? 'dark:text-gray-100' : null }}">
  665 + <a class="w-full" href="{{ route('admin.job-titles-main') }}">Должности на главной</a>
  666 + </li>
  667 + @endif
  668 + @endif
  669 +
  670 + @if ($cont->url_page == "admin/employers-main")
  671 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  672 + (($cont->is_manager == 1) && ($is_manager == 1)))
  673 + <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.employers-main') ? 'dark:text-gray-100' : null }}">
  674 + <a class="w-full" href="{{ route('admin.employers-main') }}">Работодатели на главной</a>
  675 + </li>
  676 + @endif
  677 + @endif
  678 +
  679 + @endforeach
575 680 </ul>
576 681 </template>
577 682 </li>
578   - @endif
579   -
580 683 </ul>
  684 +
581 685 <!--<div class="px-6 my-6">
582 686 <button
583 687 class="flex items-center justify-between w-full px-4 py-2 text-sm font-medium leading-5 text-white transition-colors duration-150 bg-purple-600 border border-transparent rounded-lg active:bg-purple-600 hover:bg-purple-700 focus:outline-none focus:shadow-outline-purple"
... ... @@ -616,147 +720,17 @@
616 720 <a
617 721 class="ml-6 text-lg font-bold text-gray-800 dark:text-gray-200"
618 722 href="{{ route('admin.index') }}"
619   - >
620   - Админка
621   - </a>
622   - <ul class="mt-6">
623   - <li class="relative px-6 py-3">
624   - <span
625   - class="absolute inset-y-0 left-0 w-1 bg-purple-600 rounded-tr-lg rounded-br-lg"
626   - aria-hidden="true"
627   - ></span>
628   - <a
629   - class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.index') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.index') }}"
630   - >
631   - <svg
632   - class="w-5 h-5"
633   - aria-hidden="true"
634   - fill="none"
635   - stroke-linecap="round"
636   - stroke-linejoin="round"
637   - stroke-width="2"
638   - viewBox="0 0 24 24"
639   - stroke="currentColor"
640   - >
641   - <path
642   - d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"
643   - ></path>
644   - </svg>
645   - <span class="ml-4">Главная страница</span>
646   - </a>
647   - </li>
648   - </ul>
649   - <ul>
650   - @if ($UserId == 1)
651   - <li class="relative px-6 py-3">
652   - <a class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.users') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.users') }}">
653   - <svg
654   - class="w-5 h-5"
655   - aria-hidden="true"
656   - fill="none"
657   - stroke-linecap="round"
658   - stroke-linejoin="round"
659   - stroke-width="2"
660   - viewBox="0 0 24 24"
661   - stroke="currentColor"
662   - >
663   - <path
664   - d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"
665   - ></path>
666   - </svg>
667   - <span class="ml-4">Пользователи</span>
668   - </a>
669   - </li>
670   - @endif
671   - <li class="relative px-6 py-3">
672   - <a
673   - class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.admin-users') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.admin-users') }}"
674   - >
675   - <svg
676   - class="w-5 h-5"
677   - aria-hidden="true"
678   - fill="none"
679   - stroke-linecap="round"
680   - stroke-linejoin="round"
681   - stroke-width="2"
682   - viewBox="0 0 24 24"
683   - stroke="currentColor"
684   - >
685   - <path
686   - d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"
687   - ></path>
688   - </svg>
689   - <span class="ml-4">Администраторы</span>
690   - </a>
691   - </li>
692   -
693   - <li class="relative px-6 py-3">
694   - <a
695   - class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.employers') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.employers') }}"
696   - >
697   - <svg
698   - class="w-5 h-5"
699   - aria-hidden="true"
700   - fill="none"
701   - stroke-linecap="round"
702   - stroke-linejoin="round"
703   - stroke-width="2"
704   - viewBox="0 0 24 24"
705   - stroke="currentColor"
706   - >
707   - <path
708   - d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"
709   - ></path>
710   - </svg>
711   - <span class="ml-4">Работодатели</span>
712   - </a>
713   - </li>
714   - <li class="relative px-6 py-3">
715   - <a
716   - class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.workers') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.workers') }}"
717   - >
718   - <svg
719   - class="w-5 h-5"
720   - aria-hidden="true"
721   - fill="none"
722   - stroke-linecap="round"
723   - stroke-linejoin="round"
724   - stroke-width="2"
725   - viewBox="0 0 24 24"
726   - stroke="currentColor"
727   - >
728   - <path
729   - d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"
730   - ></path>
731   - <path d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"></path>
732   - </svg>
733   - <span class="ml-4">Соискатели</span>
734   - </a>
735   - </li>
736   - <li class="relative px-6 py-3">
737   - <a
738   - class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.ad-employers') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.ad-employers') }}"
739   - >
740   - <svg
741   - class="w-5 h-5"
742   - aria-hidden="true"
743   - fill="none"
744   - stroke-linecap="round"
745   - stroke-linejoin="round"
746   - stroke-width="2"
747   - viewBox="0 0 24 24"
748   - stroke="currentColor"
749   - >
750   - <path
751   - d="M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"
752   - ></path>
753   - </svg>
754   - <span class="ml-4">Вакансии</span>
755   - </a>
756   - </li>
  723 + >
  724 + Админка
  725 + </a>
  726 + <ul class="mt-6">
757 727 <li class="relative px-6 py-3">
  728 + <span
  729 + class="absolute inset-y-0 left-0 w-1 bg-purple-600 rounded-tr-lg rounded-br-lg"
  730 + aria-hidden="true"
  731 + ></span>
758 732 <a
759   - class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.messages') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.messages') }}"
  733 + class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.index') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.index') }}"
760 734 >
761 735 <svg
762 736 class="w-5 h-5"
... ... @@ -768,16 +742,256 @@
768 742 viewBox="0 0 24 24"
769 743 stroke="currentColor"
770 744 >
771   - <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path>
  745 + <path
  746 + d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"
  747 + ></path>
772 748 </svg>
773   - <span class="ml-4">Сообщения все</span>
  749 + <span class="ml-4">Главная страница</span>
774 750 </a>
775 751 </li>
  752 + </ul>
  753 + <ul>
  754 + @foreach ($contents as $cont)
  755 + @if ($cont->url_page == "admin/users")
  756 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  757 + (($cont->is_manager == 1) && ($is_manager == 1)))
  758 + <li class="relative px-6 py-3">
  759 + <a class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.users') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.users') }}">
  760 + <svg
  761 + class="w-5 h-5"
  762 + aria-hidden="true"
  763 + fill="none"
  764 + stroke-linecap="round"
  765 + stroke-linejoin="round"
  766 + stroke-width="2"
  767 + viewBox="0 0 24 24"
  768 + stroke="currentColor"
  769 + >
  770 + <path
  771 + d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"
  772 + ></path>
  773 + </svg>
  774 + <span class="ml-4">Пользователи</span>
  775 + </a>
  776 + </li>
  777 + @endif
  778 + @endif
776 779  
777   - <li class="relative px-6 py-3">
778   - <a
779   - class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.admin-messages') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.admin-messages') }}"
780   - >
  780 + @if ($cont->url_page == "admin/admin-users")
  781 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  782 + (($cont->is_manager == 1) && ($is_manager == 1)))
  783 + <li class="relative px-6 py-3">
  784 + <a
  785 + class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.admin-users') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.admin-users') }}"
  786 + >
  787 + <svg
  788 + class="w-5 h-5"
  789 + aria-hidden="true"
  790 + fill="none"
  791 + stroke-linecap="round"
  792 + stroke-linejoin="round"
  793 + stroke-width="2"
  794 + viewBox="0 0 24 24"
  795 + stroke="currentColor"
  796 + >
  797 + <path
  798 + d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"
  799 + ></path>
  800 + </svg>
  801 + <span class="ml-4">Администраторы</span>
  802 + </a>
  803 + </li>
  804 + @endif
  805 + @endif
  806 +
  807 + @if ($cont->url_page == "admin/employers")
  808 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  809 + (($cont->is_manager == 1) && ($is_manager == 1)))
  810 + <li class="relative px-6 py-3">
  811 + <a
  812 + class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.employers') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.employers') }}"
  813 + >
  814 + <svg
  815 + class="w-5 h-5"
  816 + aria-hidden="true"
  817 + fill="none"
  818 + stroke-linecap="round"
  819 + stroke-linejoin="round"
  820 + stroke-width="2"
  821 + viewBox="0 0 24 24"
  822 + stroke="currentColor"
  823 + >
  824 + <path
  825 + d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"
  826 + ></path>
  827 + </svg>
  828 + <span class="ml-4">Работодатели</span>
  829 + </a>
  830 + </li>
  831 + @endif
  832 + @endif
  833 +
  834 + @if ($cont->url_page == "admin/workers")
  835 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  836 + (($cont->is_manager == 1) && ($is_manager == 1)))
  837 + <li class="relative px-6 py-3">
  838 + <a
  839 + class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.workers') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.workers') }}"
  840 + >
  841 + <svg
  842 + class="w-5 h-5"
  843 + aria-hidden="true"
  844 + fill="none"
  845 + stroke-linecap="round"
  846 + stroke-linejoin="round"
  847 + stroke-width="2"
  848 + viewBox="0 0 24 24"
  849 + stroke="currentColor"
  850 + >
  851 + <path
  852 + d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"
  853 + ></path>
  854 + <path d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"></path>
  855 + </svg>
  856 + <span class="ml-4">Соискатели</span>
  857 + </a>
  858 + </li>
  859 + @endif
  860 + @endif
  861 +
  862 + @if ($cont->url_page == "admin/ad-employers")
  863 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  864 + (($cont->is_manager == 1) && ($is_manager == 1)))
  865 + <li class="relative px-6 py-3">
  866 + <a
  867 + class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.ad-employers') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.ad-employers') }}"
  868 + >
  869 + <svg
  870 + class="w-5 h-5"
  871 + aria-hidden="true"
  872 + fill="none"
  873 + stroke-linecap="round"
  874 + stroke-linejoin="round"
  875 + stroke-width="2"
  876 + viewBox="0 0 24 24"
  877 + stroke="currentColor"
  878 + >
  879 + <path
  880 + d="M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"
  881 + ></path>
  882 + </svg>
  883 + <span class="ml-4">Вакансии</span>
  884 + </a>
  885 + </li>
  886 + @endif
  887 + @endif
  888 +
  889 + @if ($cont->url_page == "admin/messages")
  890 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  891 + (($cont->is_manager == 1) && ($is_manager == 1)))
  892 + <li class="relative px-6 py-3">
  893 + <a
  894 + class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.messages') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.messages') }}"
  895 + >
  896 + <svg
  897 + class="w-5 h-5"
  898 + aria-hidden="true"
  899 + fill="none"
  900 + stroke-linecap="round"
  901 + stroke-linejoin="round"
  902 + stroke-width="2"
  903 + viewBox="0 0 24 24"
  904 + stroke="currentColor"
  905 + >
  906 + <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path>
  907 + </svg>
  908 + <span class="ml-4">Сообщения все</span>
  909 + </a>
  910 + </li>
  911 + @endif
  912 + @endif
  913 +
  914 + @if ($cont->url_page == "admin/admin-messages")
  915 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  916 + (($cont->is_manager == 1) && ($is_manager == 1)))
  917 + <li class="relative px-6 py-3">
  918 + <a
  919 + class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.admin-messages') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.admin-messages') }}"
  920 + >
  921 + <svg
  922 + class="w-5 h-5"
  923 + aria-hidden="true"
  924 + fill="none"
  925 + stroke-linecap="round"
  926 + stroke-linejoin="round"
  927 + stroke-width="2"
  928 + viewBox="0 0 24 24"
  929 + stroke="currentColor"
  930 + >
  931 + <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path>
  932 + </svg>
  933 + <span class="ml-4">Заявки на рассылку</span>
  934 + </a>
  935 + </li>
  936 + @endif
  937 + @endif
  938 +
  939 + @if ($cont->url_page == "admin/groups")
  940 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  941 + (($cont->is_manager == 1) && ($is_manager == 1)))
  942 + <li class="relative px-6 py-3">
  943 + <a class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.groups') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.groups') }}">
  944 + <svg
  945 + class="w-5 h-5"
  946 + aria-hidden="true"
  947 + fill="none"
  948 + stroke-linecap="round"
  949 + stroke-linejoin="round"
  950 + stroke-width="2"
  951 + viewBox="0 0 24 24"
  952 + stroke="currentColor"
  953 + >
  954 + <path
  955 + d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"
  956 + ></path>
  957 + </svg>
  958 + <span class="ml-4">Группы пользователей</span>
  959 + </a>
  960 + </li>
  961 + @endif
  962 + @endif
  963 +
  964 + @if ($cont->url_page == "admin/media")
  965 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  966 + (($cont->is_manager == 1) && ($is_manager == 1)))
  967 + <li class="relative px-6 py-3">
  968 + <a class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.media') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.media') }}">
  969 + <svg
  970 + class="w-5 h-5"
  971 + aria-hidden="true"
  972 + fill="none"
  973 + stroke-linecap="round"
  974 + stroke-linejoin="round"
  975 + stroke-width="2"
  976 + viewBox="0 0 24 24"
  977 + stroke="currentColor"
  978 + >
  979 + <path
  980 + d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"
  981 + ></path>
  982 + </svg>
  983 + <span class="ml-4">Медиа</span>
  984 + </a>
  985 + </li>
  986 + @endif
  987 + @endif
  988 +
  989 + @if ($cont->url_page == "admin/roles")
  990 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  991 + (($cont->is_manager == 1) && ($is_manager == 1)))
  992 +
  993 + <li class="relative px-6 py-3">
  994 + <a class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.roles') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.roles') }}">
781 995 <svg
782 996 class="w-5 h-5"
783 997 aria-hidden="true"
... ... @@ -788,35 +1002,23 @@
788 1002 viewBox="0 0 24 24"
789 1003 stroke="currentColor"
790 1004 >
791   - <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path>
  1005 + <path
  1006 + d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"
  1007 + ></path>
792 1008 </svg>
793   - <span class="ml-4">Заявки на рассылку</span>
  1009 + <span class="ml-4">Роли пользователей</span>
794 1010 </a>
795   - </li>
796   -
  1011 + </li>
  1012 + @endif
  1013 + @endif
797 1014  
  1015 + @if ($cont->url_page == "admin/basedata")
  1016 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  1017 + (($cont->is_manager == 1) && ($is_manager == 1)))
798 1018 <li class="relative px-6 py-3">
799   - <a class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.groups') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.groups') }}">
800   - <svg
801   - class="w-5 h-5"
802   - aria-hidden="true"
803   - fill="none"
804   - stroke-linecap="round"
805   - stroke-linejoin="round"
806   - stroke-width="2"
807   - viewBox="0 0 24 24"
808   - stroke="currentColor"
  1019 + <a
  1020 + class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.basedata') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.basedata') }}"
809 1021 >
810   - <path
811   - d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"
812   - ></path>
813   - </svg>
814   - <span class="ml-4">Группы пользователей</span>
815   - </a>
816   - </li>
817   -
818   - <li class="relative px-6 py-3">
819   - <a class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.media') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.media') }}">
820 1022 <svg
821 1023 class="w-5 h-5"
822 1024 aria-hidden="true"
... ... @@ -827,56 +1029,17 @@
827 1029 viewBox="0 0 24 24"
828 1030 stroke="currentColor"
829 1031 >
830   - <path
831   - d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"
832   - ></path>
  1032 + <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path>
833 1033 </svg>
834   - <span class="ml-4">Медиа</span>
  1034 + <span class="ml-4">Базы данных</span>
835 1035 </a>
836   - </li>
837   -
838   - @if ($UserId == 1)
839   - <li class="relative px-6 py-3">
840   - <a class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.roles') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.roles') }}">
841   - <svg
842   - class="w-5 h-5"
843   - aria-hidden="true"
844   - fill="none"
845   - stroke-linecap="round"
846   - stroke-linejoin="round"
847   - stroke-width="2"
848   - viewBox="0 0 24 24"
849   - stroke="currentColor"
850   - >
851   - <path
852   - d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"
853   - ></path>
854   - </svg>
855   - <span class="ml-4">Роли пользователей</span>
856   - </a>
857   - </li>
  1036 + </li>
858 1037 @endif
  1038 + @endif
859 1039  
860   - <li class="relative px-6 py-3">
861   - <a
862   - class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.basedata') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.basedata') }}"
863   - >
864   - <svg
865   - class="w-5 h-5"
866   - aria-hidden="true"
867   - fill="none"
868   - stroke-linecap="round"
869   - stroke-linejoin="round"
870   - stroke-width="2"
871   - viewBox="0 0 24 24"
872   - stroke="currentColor"
873   - >
874   - <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path>
875   - </svg>
876   - <span class="ml-4">Базы данных</span>
877   - </a>
878   - </li>
879   -
  1040 + @if ($cont->url_page == "admin/education")
  1041 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  1042 + (($cont->is_manager == 1) && ($is_manager == 1)))
880 1043 <li class="relative px-6 py-3">
881 1044 <a
882 1045 class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.education.index') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.education.index') }}"
... ... @@ -898,28 +1061,40 @@
898 1061 <span class="ml-4">Учебн.заведения</span>
899 1062 </a>
900 1063 </li>
901   - <li class="relative px-6 py-3">
902   - <a
903   - class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.statics') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.statics') }}"
904   - >
905   - <svg
906   - class="w-5 h-5"
907   - aria-hidden="true"
908   - fill="none"
909   - stroke-linecap="round"
910   - stroke-linejoin="round"
911   - stroke-width="2"
912   - viewBox="0 0 24 24"
913   - stroke="currentColor"
  1064 + @endif
  1065 + @endif
  1066 +
  1067 + @if ($cont->url_page == "admin/statics")
  1068 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  1069 + (($cont->is_manager == 1) && ($is_manager == 1)))
  1070 + <li class="relative px-6 py-3">
  1071 + <a
  1072 + class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.statics') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.statics') }}"
914 1073 >
915   - <path
916   - d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"
917   - ></path>
918   - <path d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"></path>
919   - </svg>
920   - <span class="ml-4">Статистика</span>
921   - </a>
922   - </li>
  1074 + <svg
  1075 + class="w-5 h-5"
  1076 + aria-hidden="true"
  1077 + fill="none"
  1078 + stroke-linecap="round"
  1079 + stroke-linejoin="round"
  1080 + stroke-width="2"
  1081 + viewBox="0 0 24 24"
  1082 + stroke="currentColor"
  1083 + >
  1084 + <path
  1085 + d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"
  1086 + ></path>
  1087 + <path d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"></path>
  1088 + </svg>
  1089 + <span class="ml-4">Статистика</span>
  1090 + </a>
  1091 + </li>
  1092 + @endif
  1093 + @endif
  1094 +
  1095 + @if ($cont->url_page == "admin/messages")
  1096 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  1097 + (($cont->is_manager == 1) && ($is_manager == 1)))
923 1098 <li class="relative px-6 py-3">
924 1099 <a
925 1100 class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.messages') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.messages') }}"
... ... @@ -939,6 +1114,12 @@
939 1114 <span class="ml-4">Сообщения все</span>
940 1115 </a>
941 1116 </li>
  1117 + @endif
  1118 + @endif
  1119 +
  1120 + @if ($cont->url_page == "admin/reclames")
  1121 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  1122 + (($cont->is_manager == 1) && ($is_manager == 1)))
942 1123 <li class="relative px-6 py-3">
943 1124 <a
944 1125 class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.reclames') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.reclames') }}"
... ... @@ -960,6 +1141,10 @@
960 1141 <span class="ml-4">Реклама</span>
961 1142 </a>
962 1143 </li>
  1144 + @endif
  1145 + @endif
  1146 + @endforeach
  1147 +
963 1148 <!-- Справочники -->
964 1149 <li class="relative px-6 py-3" x-data="{ open2: false }">
965 1150 <button
... ... @@ -1006,19 +1191,43 @@
1006 1191 class="p-2 mt-2 space-y-2 overflow-hidden text-sm font-medium text-gray-500 rounded-md shadow-inner bg-gray-50 dark:text-gray-400 dark:bg-gray-900"
1007 1192 aria-label="submenu"
1008 1193 >
1009   - <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.job-titles.index') ? 'dark:text-gray-100' : null }}">
1010   - <a class="w-full" href="{{ route('admin.job-titles.index') }}">Должности</a>
1011   - </li>
1012   - <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.categories.index') ? 'dark:text-gray-100' : null }}">
1013   - <a class="w-full" href="{{ route('admin.categories.index') }}">Категории вакансий</a>
1014   - </li>
1015   - <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.category-emp.index') ? 'dark:text-gray-100' : null }}">
1016   - <a class="w-full" href="{{ route('admin.category-emp.index') }}">Категории работодателей</a>
1017   - </li>
1018   - <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.infobloks.index') ? 'dark:text-gray-100' : null }}">
1019   - <a class="w-full" href="{{ route('admin.infobloks.index') }}">Блоки-Дипломы</a>
1020   - </li>
  1194 + @foreach ($contents as $cont)
  1195 + @if ($cont->url_page == "admin/job-titles")
  1196 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  1197 + (($cont->is_manager == 1) && ($is_manager == 1)))
  1198 + <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.job-titles.index') ? 'dark:text-gray-100' : null }}">
  1199 + <a class="w-full" href="{{ route('admin.job-titles.index') }}">Должности</a>
  1200 + </li>
  1201 + @endif
  1202 + @endif
  1203 +
  1204 + @if ($cont->url_page == "admin/categories")
  1205 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  1206 + (($cont->is_manager == 1) && ($is_manager == 1)))
  1207 + <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.categories.index') ? 'dark:text-gray-100' : null }}">
  1208 + <a class="w-full" href="{{ route('admin.categories.index') }}">Категории вакансий</a>
  1209 + </li>
  1210 + @endif
  1211 + @endif
1021 1212  
  1213 + @if ($cont->url_page == "admin/category-emp")
  1214 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  1215 + (($cont->is_manager == 1) && ($is_manager == 1)))
  1216 + <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.category-emp.index') ? 'dark:text-gray-100' : null }}">
  1217 + <a class="w-full" href="{{ route('admin.category-emp.index') }}">Категории работодателей</a>
  1218 + </li>
  1219 + @endif
  1220 + @endif
  1221 +
  1222 + @if ($cont->url_page == "admin/infobloks")
  1223 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  1224 + (($cont->is_manager == 1) && ($is_manager == 1)))
  1225 + <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.infobloks.index') ? 'dark:text-gray-100' : null }}">
  1226 + <a class="w-full" href="{{ route('admin.infobloks.index') }}">Блоки-Дипломы</a>
  1227 + </li>
  1228 + @endif
  1229 + @endif
  1230 + @endforeach
1022 1231 </ul>
1023 1232 </template>
1024 1233 </li>
... ... @@ -1071,25 +1280,62 @@
1071 1280 class="p-2 mt-2 space-y-2 overflow-hidden text-sm font-medium text-gray-500 rounded-md shadow-inner bg-gray-50 dark:text-gray-400 dark:bg-gray-900"
1072 1281 aria-label="submenu"
1073 1282 >
1074   - <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.editor-site') ? 'dark:text-gray-100' : null }}">
1075   - <a class="w-full" href="{{ route('admin.editor-site') }}">Редактор сайта</a>
1076   - </li>
1077   - <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.edit-blocks') ? 'dark:text-gray-100' : null }}">
1078   - <a class="w-full" href="{{ route('admin.edit-blocks') }}">Шапка-футер сайта</a>
1079   - </li>
1080   - <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.editor-seo') ? 'dark:text-gray-100' : null }}">
1081   - <a class="w-full" href="{{ route('admin.editor-seo') }}">SEO сайта</a>
1082   - </li>
1083   - <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.editor-pages') ? 'dark:text-gray-100' : null }}">
1084   - <a class="w-full" href="{{ route('admin.editor-pages') }}">Редактор страниц</a>
1085   - </li>
1086   - <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.job-titles-main') ? 'dark:text-gray-100' : null }}">
1087   - <a class="w-full" href="{{ route('admin.job-titles-main') }}">Должности на главной</a>
1088   - </li>
1089   - <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.employers-main') ? 'dark:text-gray-100' : null }}">
1090   - <a class="w-full" href="{{ route('admin.employers-main') }}">Работодатели на главной</a>
1091   - </li>
  1283 + @foreach ($contents as $cont)
  1284 + @if ($cont->url_page == "admin/editor-site")
  1285 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  1286 + (($cont->is_manager == 1) && ($is_manager == 1)))
  1287 + <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.editor-site') ? 'dark:text-gray-100' : null }}">
  1288 + <a class="w-full" href="{{ route('admin.editor-site') }}">Редактор сайта</a>
  1289 + </li>
  1290 + @endif
  1291 + @endif
  1292 +
  1293 + @if ($cont->url_page == "admin/edit-blocks")
  1294 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  1295 + (($cont->is_manager == 1) && ($is_manager == 1)))
  1296 + <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.edit-blocks') ? 'dark:text-gray-100' : null }}">
  1297 + <a class="w-full" href="{{ route('admin.edit-blocks') }}">Шапка-футер сайта</a>
  1298 + </li>
  1299 + @endif
  1300 + @endif
  1301 +
  1302 + @if ($cont->url_page == "admin/editor-seo")
  1303 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  1304 + (($cont->is_manager == 1) && ($is_manager == 1)))
  1305 + <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.editor-seo') ? 'dark:text-gray-100' : null }}">
  1306 + <a class="w-full" href="{{ route('admin.editor-seo') }}">SEO сайта</a>
  1307 + </li>
  1308 + @endif
  1309 + @endif
  1310 +
  1311 + @if ($cont->url_page == "admin/editor-pages")
  1312 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  1313 + (($cont->is_manager == 1) && ($is_manager == 1)))
  1314 + <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.editor-pages') ? 'dark:text-gray-100' : null }}">
  1315 + <a class="w-full" href="{{ route('admin.editor-pages') }}">Редактор страниц</a>
  1316 + </li>
  1317 + @endif
  1318 + @endif
  1319 +
  1320 + @if ($cont->url_page == "admin/job-titles-main")
  1321 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  1322 + (($cont->is_manager == 1) && ($is_manager == 1)))
  1323 + <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.job-titles-main') ? 'dark:text-gray-100' : null }}">
  1324 + <a class="w-full" href="{{ route('admin.job-titles-main') }}">Должности на главной</a>
  1325 + </li>
  1326 + @endif
  1327 + @endif
  1328 +
  1329 + @if ($cont->url_page == "admin/employers-main")
  1330 + @if ((($cont->is_admin == 1) && ($admin == 1)) ||
  1331 + (($cont->is_manager == 1) && ($is_manager == 1)))
  1332 + <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.employers-main') ? 'dark:text-gray-100' : null }}">
  1333 + <a class="w-full" href="{{ route('admin.employers-main') }}">Работодатели на главной</a>
  1334 + </li>
  1335 + @endif
  1336 + @endif
1092 1337  
  1338 + @endforeach
1093 1339 </ul>
1094 1340 </template>
1095 1341 </li>
sql/content_roles.sql
... ... @@ -0,0 +1,68 @@
  1 +-- --------------------------------------------------------
  2 +-- Хост: 127.0.0.1
  3 +-- Версия сервера: 8.0.30 - MySQL Community Server - GPL
  4 +-- Операционная система: Win64
  5 +-- HeidiSQL Версия: 12.1.0.6537
  6 +-- --------------------------------------------------------
  7 +
  8 +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  9 +/*!40101 SET NAMES utf8 */;
  10 +/*!50503 SET NAMES utf8mb4 */;
  11 +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  12 +/*!40103 SET TIME_ZONE='+00:00' */;
  13 +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  14 +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  15 +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  16 +
  17 +
  18 +-- Дамп структуры базы данных laravel_rekamore
  19 +CREATE DATABASE IF NOT EXISTS `laravel_rekamore` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
  20 +USE `laravel_rekamore`;
  21 +
  22 +-- Дамп структуры для таблица laravel_rekamore.content_roles
  23 +CREATE TABLE IF NOT EXISTS `content_roles` (
  24 + `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  25 + `url_page` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  26 + `is_admin` tinyint(1) NOT NULL DEFAULT '1',
  27 + `is_manager` tinyint(1) NOT NULL DEFAULT '0',
  28 + `created_at` timestamp NULL DEFAULT NULL,
  29 + `updated_at` timestamp NULL DEFAULT NULL,
  30 + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  31 + PRIMARY KEY (`id`)
  32 +) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  33 +
  34 +-- Дамп данных таблицы laravel_rekamore.content_roles: ~27 rows (приблизительно)
  35 +INSERT INTO `content_roles` (`id`, `url_page`, `is_admin`, `is_manager`, `created_at`, `updated_at`, `name`) VALUES
  36 + (1, 'admin/cabinet', 1, 0, '2023-11-20 11:04:44', '2023-11-21 06:35:38', 'Главная страница'),
  37 + (2, 'admin/users', 0, 1, '2023-11-20 11:05:35', '2023-11-22 02:58:17', 'Пользователи'),
  38 + (3, 'admin/admin-users', 1, 0, '2023-11-20 11:06:08', '2023-11-22 02:58:23', 'Администраторы'),
  39 + (4, 'admin/employers', 1, 0, '2023-11-20 11:06:47', '2023-11-20 11:06:48', 'Работодатели'),
  40 + (5, 'admin/workers', 1, 1, '2023-11-20 11:07:17', '2023-11-20 11:07:18', 'Соискатели'),
  41 + (6, 'admin/ad-employers', 1, 0, '2023-11-20 11:08:00', '2023-11-20 11:08:01', 'Вакансии'),
  42 + (7, 'admin/messages', 1, 0, '2023-11-20 11:08:34', '2023-11-20 11:08:34', 'Сообщения все'),
  43 + (8, 'admin/admin-messages', 1, 1, '2023-11-20 11:09:14', '2023-11-20 11:09:16', 'Заявки на рассылку'),
  44 + (9, 'admin/groups', 1, 1, '2023-11-20 11:09:49', '2023-11-20 11:09:50', 'Группы пользователей'),
  45 + (10, 'admin/media', 1, 1, '2023-11-20 11:10:21', '2023-11-20 11:10:22', 'Медиа'),
  46 + (11, 'admin/roles', 0, 0, '2023-11-20 11:11:08', '2023-11-20 11:11:08', 'Роли пользователей'),
  47 + (12, 'admin/basedata', 1, 1, '2023-11-20 11:11:38', '2023-11-20 11:11:39', 'Базы данных'),
  48 + (13, 'admin/education', 1, 0, '2023-11-20 11:12:06', '2023-11-20 11:12:06', 'Учебные заведения'),
  49 + (14, 'admin/statics', 1, 0, '2023-11-20 11:12:58', '2023-11-20 11:12:58', 'Статистика'),
  50 + (15, 'admin/answers', 1, 0, '2023-11-20 11:13:43', '2023-11-20 11:13:44', 'Модерация'),
  51 + (16, 'admin/reclames', 1, 0, '2023-11-20 11:14:14', '2023-11-20 11:14:15', 'Реклама'),
  52 + (17, 'admin/job-titles', 1, 0, '2023-11-20 11:14:45', '2023-11-20 11:14:46', 'Должности'),
  53 + (18, 'admin/categories', 1, 0, '2023-11-20 11:15:22', '2023-11-20 11:15:23', 'Категории'),
  54 + (19, 'admin/category-emp', 1, 0, '2023-11-20 11:15:53', '2023-11-20 11:15:53', 'Категории работодателей'),
  55 + (20, 'admin/infobloks', 1, 0, '2023-11-20 11:16:29', '2023-11-20 11:16:30', 'Дипломы'),
  56 + (21, 'admin/editor-site', 1, 0, '2023-11-20 11:19:07', '2023-11-20 11:19:07', 'Редактор сайта'),
  57 + (22, 'admin/edit-blocks', 1, 0, '2023-11-20 11:19:46', '2023-11-20 11:19:46', 'Редактор шапки-футера сайта'),
  58 + (23, 'admin/editor-seo', 1, 0, '2023-11-20 11:20:32', '2023-11-20 11:20:32', 'Страницы SEO'),
  59 + (24, 'admin/editor-pages', 1, 0, '2023-11-20 11:21:19', '2023-11-20 11:21:20', 'Страницы сайта'),
  60 + (25, 'admin/job-titles-main', 1, 0, '2023-11-20 11:22:19', '2023-11-20 11:22:19', 'Должности на главной'),
  61 + (26, 'admin/employers-main', 1, 0, '2023-11-20 11:22:51', '2023-11-20 11:22:52', 'Работодатели на главной'),
  62 + (27, 'admin/admin_roles', 1, 0, '2023-11-20 11:48:20', '2023-11-20 11:48:21', 'Роли администраторов ');
  63 +
  64 +/*!40103 SET TIME_ZONE=IFNULL(@OLD_TIME_ZONE, 'system') */;
  65 +/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
  66 +/*!40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */;
  67 +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  68 +/*!40111 SET SQL_NOTES=IFNULL(@OLD_SQL_NOTES, 1) */;