Commit c8c3ee5c649c4fa270a293c21690ffdaaa7f8aa1
Exists in
master
Merge branch 'master' of http://gitlab.nologostudio.ru/alarionov/rekamore-su
Showing 5 changed files Inline Diff
app/Http/Controllers/Admin/UsersController.php
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | namespace App\Http\Controllers\Admin; | 3 | namespace App\Http\Controllers\Admin; |
4 | 4 | ||
5 | use App\Http\Controllers\Controller; | 5 | use App\Http\Controllers\Controller; |
6 | use App\Http\Requests\BaseUserRequest; | 6 | use App\Http\Requests\BaseUserRequest; |
7 | use App\Models\ContentRoles; | 7 | use App\Models\ContentRoles; |
8 | use App\Models\Job_title; | 8 | use App\Models\Job_title; |
9 | use App\Models\User; | 9 | use App\Models\User; |
10 | use App\Models\Worker; | 10 | use App\Models\Worker; |
11 | use Illuminate\Http\Request; | 11 | use Illuminate\Http\Request; |
12 | use Illuminate\Support\Facades\Auth; | 12 | use Illuminate\Support\Facades\Auth; |
13 | use Illuminate\Support\Facades\Storage; | 13 | use Illuminate\Support\Facades\Storage; |
14 | use PhpOffice\PhpSpreadsheet\Spreadsheet; | 14 | use PhpOffice\PhpSpreadsheet\Spreadsheet; |
15 | use PhpOffice\PhpSpreadsheet\Style\Alignment; | 15 | use PhpOffice\PhpSpreadsheet\Style\Alignment; |
16 | use PhpOffice\PhpSpreadsheet\Style\Border; | 16 | use PhpOffice\PhpSpreadsheet\Style\Border; |
17 | use PhpOffice\PhpSpreadsheet\Style\Font; | 17 | use PhpOffice\PhpSpreadsheet\Style\Font; |
18 | use PhpOffice\PhpSpreadsheet\Writer\Xlsx; | 18 | use PhpOffice\PhpSpreadsheet\Writer\Xlsx; |
19 | 19 | ||
20 | class UsersController extends Controller | 20 | class UsersController extends Controller |
21 | { | 21 | { |
22 | public function index(Request $request) { | 22 | public function index(Request $request) { |
23 | $title = 'Админка - Пользователи системы'; | 23 | $title = 'Админка - Пользователи системы'; |
24 | $id_admin = Auth::user()->id; | 24 | $id_admin = Auth::user()->id; |
25 | if ($request->ajax()) { | 25 | if ($request->ajax()) { |
26 | $user = User::find($request->id); | 26 | $user = User::find($request->id); |
27 | $request->offsetUnset('id'); | 27 | $request->offsetUnset('id'); |
28 | $user->update($request->all()); | 28 | $user->update($request->all()); |
29 | } | 29 | } |
30 | $find_key = ""; | 30 | $find_key = ""; |
31 | $users = User::query(); | 31 | $users = User::query(); |
32 | if (isset($request->find)) { | 32 | if (isset($request->find)) { |
33 | $find_key = $request->find; | 33 | $find_key = $request->find; |
34 | $users = $users->where('name', 'LIKE', "%$find_key%") | 34 | $users = $users->where('name', 'LIKE', "%$find_key%") |
35 | ->orWhere('email', 'LIKE', "%$find_key%"); | 35 | ->orWhere('email', 'LIKE', "%$find_key%"); |
36 | } | 36 | } |
37 | $users = $users->paginate(15); | 37 | $users = $users->paginate(15); |
38 | 38 | ||
39 | if ($request->ajax()) { | 39 | if ($request->ajax()) { |
40 | return view('admin.users.index_ajax', compact('users', 'id_admin')); | 40 | return view('admin.users.index_ajax', compact('users', 'id_admin')); |
41 | } else { | 41 | } else { |
42 | return view('admin.users.index', compact('users', 'title', 'id_admin', 'find_key')); | 42 | return view('admin.users.index', compact('users', 'title', 'id_admin', 'find_key')); |
43 | } | 43 | } |
44 | } | 44 | } |
45 | 45 | ||
46 | public function index_bd(Request $request) { | 46 | public function index_bd(Request $request) { |
47 | $title = 'Админка - Пользователи базы данных'; | 47 | $title = 'Админка - Пользователи базы данных'; |
48 | 48 | ||
49 | $find_key = ""; | 49 | $find_key = ""; |
50 | $users = User::query(); | 50 | $users = User::query(); |
51 | if (isset($request->find)) { | 51 | if (isset($request->find)) { |
52 | $find_key = $request->find; | 52 | $find_key = $request->find; |
53 | $users = $users->where('name', 'LIKE', "%$find_key%") | 53 | $users = $users->where('name', 'LIKE', "%$find_key%") |
54 | ->orWhere('email', 'LIKE', "%$find_key%") | 54 | ->orWhere('email', 'LIKE', "%$find_key%") |
55 | ->orWhere('telephone', 'LIKE', "%$find_key%"); | 55 | ->orWhere('telephone', 'LIKE', "%$find_key%"); |
56 | } | 56 | } |
57 | 57 | ||
58 | $users = $users->Baseuser()->paginate(15); | 58 | $users = $users->Baseuser()->paginate(15); |
59 | 59 | ||
60 | if ($request->ajax()) { | 60 | if ($request->ajax()) { |
61 | return view('admin.users.index_bd_ajax', compact('users')); | 61 | return view('admin.users.index_bd_ajax', compact('users')); |
62 | } else { | 62 | } else { |
63 | return view('admin.users.index_bd', compact('users', 'title', 'find_key')); | 63 | return view('admin.users.index_bd', compact('users', 'title', 'find_key')); |
64 | } | 64 | } |
65 | } | 65 | } |
66 | 66 | ||
67 | public function add_bd() { | 67 | public function add_bd() { |
68 | $list_job_titles = Job_title::query()->active()->orderBy('name', 'asc')->get(); | 68 | $list_job_titles = Job_title::query()->active()->orderBy('name', 'asc')->get(); |
69 | return view('admin.users.add', compact('list_job_titles')); | 69 | return view('admin.users.add', compact('list_job_titles')); |
70 | } | 70 | } |
71 | 71 | ||
72 | public function add_store_bd(BaseUserRequest $request) { | 72 | public function add_store_bd(BaseUserRequest $request) { |
73 | $params = $request->all(); | 73 | $params = $request->all(); |
74 | $position_work = $request->position_work; | 74 | $position_work = $request->position_work; |
75 | 75 | ||
76 | if ($request->has('file')) { | 76 | if ($request->has('file')) { |
77 | $params['file'] = $request->file('file')->store('basedata', 'public'); | 77 | $params['file'] = $request->file('file')->store('basedata', 'public'); |
78 | } | 78 | } |
79 | 79 | ||
80 | if (isset($request->name)) { | 80 | if (isset($request->name)) { |
81 | $params['name'] = $request->surname." ".$request->name_man." ".$request->surname2; | 81 | $params['name'] = $request->surname." ".$request->name_man." ".$request->surname2; |
82 | } | 82 | } |
83 | 83 | ||
84 | $user = User::create($params); | 84 | $user = User::create($params); |
85 | $user_id = $user->id; | 85 | $user_id = $user->id; |
86 | $worker = new Worker(); | 86 | $worker = new Worker(); |
87 | $worker->position_work = $position_work; | 87 | $worker->position_work = $position_work; |
88 | $worker->user_id = $user_id; | 88 | $worker->user_id = $user_id; |
89 | $worker->save(); | 89 | $worker->save(); |
90 | 90 | ||
91 | return redirect()->route('admin.basedata'); | 91 | return redirect()->route('admin.basedata'); |
92 | } | 92 | } |
93 | 93 | ||
94 | public function edit_bd(User $user) { | 94 | public function edit_bd(User $user) { |
95 | $list_job_titles = Job_title::query()->active()->orderBy('name', 'asc')->get(); | 95 | $list_job_titles = Job_title::query()->active()->orderBy('name', 'asc')->get(); |
96 | return view('admin.users.edit', compact('user', 'list_job_titles')); | 96 | return view('admin.users.edit', compact('user', 'list_job_titles')); |
97 | } | 97 | } |
98 | 98 | ||
99 | public function update_bd(BaseUserRequest $request, User $user) { | 99 | public function update_bd(BaseUserRequest $request, User $user) { |
100 | $params = $request->all(); | 100 | $params = $request->all(); |
101 | $position_work = $request->position_work; | 101 | $position_work = $request->position_work; |
102 | 102 | ||
103 | if ($request->has('file')) { | 103 | if ($request->has('file')) { |
104 | if (!empty($user->file)) Storage::delete($user->file); | 104 | if (!empty($user->file)) Storage::delete($user->file); |
105 | $params['file'] = $request->file('file')->store('basedata', 'public'); | 105 | $params['file'] = $request->file('file')->store('basedata', 'public'); |
106 | } else { | 106 | } else { |
107 | if (!empty($user->image)) $params['file'] = $user->file; | 107 | if (!empty($user->image)) $params['file'] = $user->file; |
108 | } | 108 | } |
109 | 109 | ||
110 | if (isset($request->name)) { | 110 | if (isset($request->name)) { |
111 | $params['name'] = $request->surname." ".$request->name_man." ".$request->surname2; | 111 | $params['name'] = $request->surname." ".$request->name_man." ".$request->surname2; |
112 | } | 112 | } |
113 | 113 | ||
114 | $user->update($params); | 114 | $user->update($params); |
115 | if (isset($user->workers[0]->id)) { | 115 | if (isset($user->workers[0]->id)) { |
116 | $worker = Worker::find($user->workers[0]->id); | 116 | $worker = Worker::find($user->workers[0]->id); |
117 | $worker->position_work = $position_work; | 117 | $worker->position_work = $position_work; |
118 | $worker->save(); | 118 | $worker->save(); |
119 | } else { | 119 | } else { |
120 | $worker = new Worker(); | 120 | $worker = new Worker(); |
121 | $worker->user_id = $user->id; | 121 | $worker->user_id = $user->id; |
122 | $worker->position_work = $position_work; | 122 | $worker->position_work = $position_work; |
123 | $worker->save(); | 123 | $worker->save(); |
124 | } | 124 | } |
125 | 125 | ||
126 | return redirect()->route('admin.basedata'); | 126 | return redirect()->route('admin.basedata'); |
127 | } | 127 | } |
128 | 128 | ||
129 | public function destroy_bd(User $user) { | 129 | public function destroy_bd(User $user) { |
130 | $user->delete(); | 130 | $user->delete(); |
131 | return redirect()->route('admin.basedata'); | 131 | return redirect()->route('admin.basedata'); |
132 | } | 132 | } |
133 | 133 | ||
134 | public function roles(Request $request) { | 134 | public function roles(Request $request) { |
135 | if ($request->ajax()) { | 135 | if ($request->ajax()) { |
136 | $user = User::find($request->id); | 136 | $user = User::find($request->id); |
137 | $request->offsetUnset('id'); | 137 | $request->offsetUnset('id'); |
138 | $user->update($request->all()); | 138 | $user->update($request->all()); |
139 | } | 139 | } |
140 | 140 | ||
141 | $users = User::query()->Realuser()->paginate(15); | 141 | $users = User::query()->Realuser()->paginate(15); |
142 | 142 | ||
143 | if ($request->ajax()) { | 143 | if ($request->ajax()) { |
144 | return view('admin.users.roles.index_ajax', compact('users')); | 144 | return view('admin.users.roles.index_ajax', compact('users')); |
145 | } else { | 145 | } else { |
146 | return view('admin.users.roles.index', compact('users')); | 146 | return view('admin.users.roles.index', compact('users')); |
147 | } | 147 | } |
148 | } | 148 | } |
149 | 149 | ||
150 | public function admin_roles(Request $request) { | 150 | public function admin_roles(Request $request) { |
151 | 151 | ||
152 | if ($request->ajax()) { | 152 | if ($request->ajax()) { |
153 | $content_roles = ContentRoles::find($request->id); | 153 | $id = $request->id; |
154 | $request->offsetUnset($request->id); | 154 | $request->offsetUnset('id'); |
155 | $content_roles->update($request->all()); | 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 | if ($request->ajax()) { | 160 | if ($request->ajax()) { |
161 | return view('admin.content.roles_index_ajax', compact('roles')); | 161 | return view('admin.content.roles_index_ajax', compact('roles')); |
162 | } else { | 162 | } else { |
163 | return view('admin.content.roles_index', compact('roles')); | 163 | return view('admin.content.roles_index', compact('roles')); |
164 | } | 164 | } |
165 | } | 165 | } |
166 | 166 | ||
167 | public function doc_bd(User $user) { | 167 | public function doc_bd(User $user) { |
168 | $id = $user->id; | 168 | $id = $user->id; |
169 | $spreadsheet = new Spreadsheet(); | 169 | $spreadsheet = new Spreadsheet(); |
170 | $activeWorksheet = $spreadsheet->getActiveSheet(); | 170 | $activeWorksheet = $spreadsheet->getActiveSheet(); |
171 | $activeWorksheet->setCellValue('A1', 'Отчет по соискателю'); | 171 | $activeWorksheet->setCellValue('A1', 'Отчет по соискателю'); |
172 | $activeWorksheet->getStyle('A1')->applyFromArray([ | 172 | $activeWorksheet->getStyle('A1')->applyFromArray([ |
173 | 'font' => [ | 173 | 'font' => [ |
174 | 'name' => 'Arial', | 174 | 'name' => 'Arial', |
175 | 'bold' => true, | 175 | 'bold' => true, |
176 | 'italic' => false, | 176 | 'italic' => false, |
177 | 'underline' => Font::UNDERLINE_DOUBLE, | 177 | 'underline' => Font::UNDERLINE_DOUBLE, |
178 | 'strikethrough' => false, | 178 | 'strikethrough' => false, |
179 | 'color' => [ | 179 | 'color' => [ |
180 | 'rgb' => '808080' | 180 | 'rgb' => '808080' |
181 | ] | 181 | ] |
182 | ], | 182 | ], |
183 | 'borders' => [ | 183 | 'borders' => [ |
184 | 'allBorders' => [ | 184 | 'allBorders' => [ |
185 | 'borderStyle' => Border::BORDER_THIN, | 185 | 'borderStyle' => Border::BORDER_THIN, |
186 | 'color' => [ | 186 | 'color' => [ |
187 | 'rgb' => '808080' | 187 | 'rgb' => '808080' |
188 | ] | 188 | ] |
189 | ], | 189 | ], |
190 | 'outline' => array( | 190 | 'outline' => array( |
191 | 'style' => Border::BORDER_THIN, | 191 | 'style' => Border::BORDER_THIN, |
192 | 'color' => array('rgb' => '000000') | 192 | 'color' => array('rgb' => '000000') |
193 | ), | 193 | ), |
194 | ], | 194 | ], |
195 | 195 | ||
196 | 'alignment' => [ | 196 | 'alignment' => [ |
197 | 'horizontal' => Alignment::HORIZONTAL_CENTER, | 197 | 'horizontal' => Alignment::HORIZONTAL_CENTER, |
198 | 'vertical' => Alignment::VERTICAL_CENTER, | 198 | 'vertical' => Alignment::VERTICAL_CENTER, |
199 | 'wrapText' => true, | 199 | 'wrapText' => true, |
200 | ] | 200 | ] |
201 | ]); | 201 | ]); |
202 | 202 | ||
203 | $activeWorksheet->setCellValue('A2', "Псевдоним/имя: ".$user->name); | 203 | $activeWorksheet->setCellValue('A2', "Псевдоним/имя: ".$user->name); |
204 | $activeWorksheet->setCellValue('A3', "Фамилия: ".$user->surname); | 204 | $activeWorksheet->setCellValue('A3', "Фамилия: ".$user->surname); |
205 | $activeWorksheet->setCellValue('A4', "Имя: ".$user->name_man); | 205 | $activeWorksheet->setCellValue('A4', "Имя: ".$user->name_man); |
206 | $activeWorksheet->setCellValue('A5', "Отчество: ".$user->surname2); | 206 | $activeWorksheet->setCellValue('A5', "Отчество: ".$user->surname2); |
207 | $activeWorksheet->setCellValue('A6', "Телефон: ".$user->telephone); | 207 | $activeWorksheet->setCellValue('A6', "Телефон: ".$user->telephone); |
208 | $activeWorksheet->setCellValue('A7', "Емайл: ".$user->email); | 208 | $activeWorksheet->setCellValue('A7', "Емайл: ".$user->email); |
209 | 209 | ||
210 | if (isset($user->workers[0]->id)) { | 210 | if (isset($user->workers[0]->id)) { |
211 | $activeWorksheet->setCellValue('A9', "Анкета: "); | 211 | $activeWorksheet->setCellValue('A9', "Анкета: "); |
212 | $activeWorksheet->setCellValue('A10', "Телефон: " . $user->workers[0]->telephone); | 212 | $activeWorksheet->setCellValue('A10', "Телефон: " . $user->workers[0]->telephone); |
213 | $activeWorksheet->setCellValue('A11', "Емайл: " . $user->workers[0]->email); | 213 | $activeWorksheet->setCellValue('A11', "Емайл: " . $user->workers[0]->email); |
214 | } | 214 | } |
215 | 215 | ||
216 | if (isset($user->jobtitles[0]->id)) { | 216 | if (isset($user->jobtitles[0]->id)) { |
217 | $activeWorksheet->setCellValue('A12', "Должность: " . $user->jobtitles[0]->name); | 217 | $activeWorksheet->setCellValue('A12', "Должность: " . $user->jobtitles[0]->name); |
218 | } | 218 | } |
219 | $activeWorksheet->getColumnDimension("A")->setWidth(100); | 219 | $activeWorksheet->getColumnDimension("A")->setWidth(100); |
220 | $writer = new Xlsx($spreadsheet); | 220 | $writer = new Xlsx($spreadsheet); |
221 | 221 | ||
222 | header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); | 222 | header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); |
223 | header('Content-Disposition: attachment; filename="user'.$id.'.xlsx"'); | 223 | header('Content-Disposition: attachment; filename="user'.$id.'.xlsx"'); |
224 | header('Cache-Control: no-cache'); | 224 | header('Cache-Control: no-cache'); |
225 | 225 | ||
226 | $writer->save('php://output'); | 226 | $writer->save('php://output'); |
227 | $writer->save(storage_path("app/public/export/user$id.xlsx")); | 227 | $writer->save(storage_path("app/public/export/user$id.xlsx")); |
228 | 228 | ||
229 | //$spreadsheet->disconnectWorksheets(); | 229 | //$spreadsheet->disconnectWorksheets(); |
230 | return redirect()->route('admin.basedata'); | 230 | return redirect()->route('admin.basedata'); |
231 | 231 | ||
232 | } | 232 | } |
233 | } | 233 | } |
234 | 234 |
resources/views/admin/content/roles_index.blade.php
1 | @extends('layout.admin', ['title' => 'Роли администраторов и менеджеров для каждой страницы']) | 1 | @extends('layout.admin', ['title' => 'Роли администраторов и менеджеров для каждой страницы']) |
2 | 2 | ||
3 | @section('script') | 3 | @section('script') |
4 | <script> | 4 | <script> |
5 | $(document).ready(function() { | 5 | $(document).ready(function() { |
6 | $(document).on('click', '.check_click', function () { | 6 | $(document).on('click', '.check_click', function () { |
7 | var this_ = $(this); | 7 | var this_ = $(this); |
8 | var value = this_.val(); | 8 | var value_id = this_.attr('data-id'); |
9 | var field = this_.attr('data-field'); | 9 | var field = this_.attr('data-field'); |
10 | var ajax_block = $('#ajax_block'); | 10 | var ajax_block = $('#ajax_block'); |
11 | var bool = 0; | 11 | var bool = 0; |
12 | var str_get = ''; | 12 | var str_get = ''; |
13 | 13 | ||
14 | if(this.checked){ | 14 | if(this.checked){ |
15 | bool = 1; | 15 | bool = 1; |
16 | } else { | 16 | } else { |
17 | bool = 0; | 17 | bool = 0; |
18 | } | 18 | } |
19 | |||
19 | console.log(field); | 20 | console.log(field); |
20 | str_get = "id=" + value + "&" + field + "=" + bool; | 21 | str_get = "id=" + value_id + "&" + field + "=" + bool; |
21 | console.log(str_get); | 22 | console.log(str_get); |
22 | 23 | ||
23 | $.ajax({ | 24 | $.ajax({ |
24 | type: "GET", | 25 | type: "GET", |
25 | url: "{{ url()->full()}}", | 26 | url: "{{ url()->full()}}", |
26 | data: str_get, | 27 | data: str_get, |
27 | success: function (data) { | 28 | success: function (data) { |
28 | console.log('Обновление таблицы пользователей '); | 29 | console.log('Обновление таблицы ролей '); |
29 | //data = JSON.parse(data); | 30 | //data = JSON.parse(data); |
30 | //console.log(data); | 31 | //console.log(data); |
31 | ajax_block.html(data); | 32 | ajax_block.html(data); |
32 | }, | 33 | }, |
33 | headers: { | 34 | headers: { |
34 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') | 35 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') |
35 | }, | 36 | }, |
36 | error: function (data) { | 37 | error: function (data) { |
37 | console.log('Error: ' + data); | 38 | console.log('Error: ' + data); |
38 | } | 39 | } |
39 | }); | 40 | }); |
40 | }); | 41 | }); |
41 | }); | 42 | }); |
42 | </script> | 43 | </script> |
43 | @endsection | 44 | @endsection |
44 | 45 | ||
45 | @section('content') | 46 | @section('content') |
46 | <div class="w-full overflow-hidden rounded-lg shadow-xs" id="ajax_block"> | 47 | <div class="w-full overflow-hidden rounded-lg shadow-xs" id="ajax_block"> |
47 | <div class="w-full overflow-x-auto"> | 48 | <div class="w-full overflow-x-auto"> |
48 | <table class="w-full whitespace-no-wrap"> | 49 | <table class="w-full whitespace-no-wrap"> |
49 | <thead> | 50 | <thead> |
50 | <tr | 51 | <tr |
51 | 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" | 52 | 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" |
52 | > | 53 | > |
53 | <th class="px-4 py-3 text-xs">№</th> | 54 | <th class="px-4 py-3 text-xs">№</th> |
54 | <th class="px-4 py-3 text-xs">Раздел</th> | 55 | <th class="px-4 py-3 text-xs">Раздел</th> |
55 | <th class="px-4 py-3 text-xs">URL-страницы</th> | 56 | <th class="px-4 py-3 text-xs">URL-страницы</th> |
56 | <th class="px-4 py-3 text-xs">Админ</th> | 57 | <th class="px-4 py-3 text-xs">Админ</th> |
57 | <th class="px-4 py-3 text-xs">Менеджер</th> | 58 | <th class="px-4 py-3 text-xs">Менеджер</th> |
58 | <th class="px-4 py-3 text-xs">Дата регист.</th> | 59 | <th class="px-4 py-3 text-xs">Дата регист.</th> |
59 | </tr> | 60 | </tr> |
60 | </thead> | 61 | </thead> |
61 | <tbody class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800"> | 62 | <tbody class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800"> |
62 | @foreach($roles as $role) | 63 | @foreach($roles as $role) |
63 | <tr class="text-gray-700 dark:text-gray-400"> | 64 | <tr class="text-gray-700 dark:text-gray-400"> |
64 | <td class="px-4 py-3 text-xs"> | 65 | <td class="px-4 py-3 text-xs"> |
65 | {{$role->id}} | 66 | {{$role->id}} |
66 | </td> | 67 | </td> |
67 | <td class="px-4 py-3 text-xs"> | 68 | <td class="px-4 py-3 text-xs"> |
68 | {{$role->name}} | 69 | {{$role->name}} |
69 | </td> | 70 | </td> |
70 | <td class="px-4 py-3 text-xs"> | 71 | <td class="px-4 py-3 text-xs"> |
71 | {{ $role->url_page }} | 72 | {{ $role->url_page }} |
72 | </td> | 73 | </td> |
73 | <td class="px-4 py-3 text-xs"> | 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 | </td> | 77 | </td> |
76 | <td class="px-4 py-3 text-xs"> | 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 | </td> | 81 | </td> |
79 | 82 | ||
80 | <td class="px-4 py-3 text-xs"> | 83 | <td class="px-4 py-3 text-xs"> |
81 | {{ date('d.m.Y', strtotime($role->created_at)) }} | 84 | {{ date('d.m.Y', strtotime($role->created_at)) }} |
82 | </td> | 85 | </td> |
83 | </tr> | 86 | </tr> |
84 | @endforeach | 87 | @endforeach |
85 | </tbody> | 88 | </tbody> |
86 | </table> | 89 | </table> |
87 | </div> | 90 | </div> |
88 | 91 | ||
89 | <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"> | 92 | <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"> |
90 | <?//=$users->appends($_GET)->links('admin.pagginate'); ?> | 93 | <?//=$users->appends($_GET)->links('admin.pagginate'); ?> |
91 | {{$roles->links('admin.pagginate') }} | 94 | {{$roles->links('admin.pagginate') }} |
92 | </div> | 95 | </div> |
93 | </div> | 96 | </div> |
94 | 97 | ||
95 | @endsection | 98 | @endsection |
96 | 99 |
resources/views/admin/content/roles_index_ajax.blade.php
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> | ||
48 |
resources/views/layout/admin.blade.php
1 | <!DOCTYPE html> | 1 | <!DOCTYPE html> |
2 | <html :class="{ 'theme-dark': dark }" x-data="data()" lang="{{ str_replace('_', '-', app()->getLocale()) }}"> | 2 | <html :class="{ 'theme-dark': dark }" x-data="data()" lang="{{ str_replace('_', '-', app()->getLocale()) }}"> |
3 | <head> | 3 | <head> |
4 | <meta charset="UTF-8" /> | 4 | <meta charset="UTF-8" /> |
5 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
6 | <title>{{$title}}</title> | 6 | <title>{{$title}}</title> |
7 | <link | 7 | <link |
8 | href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" | 8 | href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" |
9 | rel="stylesheet" | 9 | rel="stylesheet" |
10 | /> | 10 | /> |
11 | <link rel="stylesheet" href="{{ asset('./assets/css/tailwind.output_new.css')}}" /> | 11 | <link rel="stylesheet" href="{{ asset('./assets/css/tailwind.output_new.css')}}" /> |
12 | <link rel="stylesheet" href="{{ asset('./assets/css/tabs.css')}}" /> | 12 | <link rel="stylesheet" href="{{ asset('./assets/css/tabs.css')}}" /> |
13 | <script | 13 | <script |
14 | src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js" | 14 | src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js" |
15 | defer | 15 | defer |
16 | ></script> | 16 | ></script> |
17 | <script src="{{ asset('./assets/js/init-alpine.js') }}"></script> | 17 | <script src="{{ asset('./assets/js/init-alpine.js') }}"></script> |
18 | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.css"/> | 18 | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.css"/> |
19 | <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js" defer></script> | 19 | <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js" defer></script> |
20 | <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> | 20 | <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> |
21 | <script src="{{ asset('./assets/js/charts-lines.js') }}" defer></script> | 21 | <script src="{{ asset('./assets/js/charts-lines.js') }}" defer></script> |
22 | <script src="{{ asset('./assets/js/charts-pie.js') }}" defer></script> | 22 | <script src="{{ asset('./assets/js/charts-pie.js') }}" defer></script> |
23 | </head> | 23 | </head> |
24 | <body> | 24 | <body> |
25 | <div class="flex h-screen bg-gray-50 dark:bg-gray-900" :class="{ 'overflow-hidden': isSideMenuOpen }"> | 25 | <div class="flex h-screen bg-gray-50 dark:bg-gray-900" :class="{ 'overflow-hidden': isSideMenuOpen }"> |
26 | <!-- Desktop sidebar --> | 26 | <!-- Desktop sidebar --> |
27 | <aside | 27 | <aside |
28 | class="z-20 hidden w-64 overflow-y-auto bg-white dark:bg-gray-800 md:block flex-shrink-0" | 28 | class="z-20 hidden w-64 overflow-y-auto bg-white dark:bg-gray-800 md:block flex-shrink-0" |
29 | > | 29 | > |
30 | <div class="py-4 text-gray-500 dark:text-gray-400"> | 30 | <div class="py-4 text-gray-500 dark:text-gray-400"> |
31 | <a class="ml-6 text-lg font-bold text-gray-800 dark:text-gray-200" | 31 | <a class="ml-6 text-lg font-bold text-gray-800 dark:text-gray-200" |
32 | href="{{ route('admin.index') }}"> | 32 | href="{{ route('admin.index') }}"> |
33 | Админка | 33 | Админка |
34 | </a> | 34 | </a> |
35 | |||
36 | <ul class="mt-6"> | 35 | <ul class="mt-6"> |
37 | @if (($is_manager == 1) || ($admin == 1)) | ||
38 | <li class="relative px-6 py-3"> | 36 | <li class="relative px-6 py-3"> |
39 | <span | 37 | <span |
40 | class="absolute inset-y-0 left-0 w-1 bg-purple-600 rounded-tr-lg rounded-br-lg" | 38 | class="absolute inset-y-0 left-0 w-1 bg-purple-600 rounded-tr-lg rounded-br-lg" |
41 | aria-hidden="true" | 39 | aria-hidden="true" |
42 | ></span> | 40 | ></span> |
43 | <a | 41 | <a |
44 | 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 }}" | 42 | 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 }}" |
45 | href="{{ route('admin.index') }}" | 43 | href="{{ route('admin.index') }}" |
46 | > | 44 | > |
47 | <svg | 45 | <svg |
48 | class="w-5 h-5" | 46 | class="w-5 h-5" |
49 | aria-hidden="true" | 47 | aria-hidden="true" |
50 | fill="none" | 48 | fill="none" |
51 | stroke-linecap="round" | 49 | stroke-linecap="round" |
52 | stroke-linejoin="round" | 50 | stroke-linejoin="round" |
53 | stroke-width="2" | 51 | stroke-width="2" |
54 | viewBox="0 0 24 24" | 52 | viewBox="0 0 24 24" |
55 | stroke="currentColor" | 53 | stroke="currentColor" |
56 | > | 54 | > |
57 | <path | 55 | <path |
58 | 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" | 56 | 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" |
59 | ></path> | 57 | ></path> |
60 | </svg> | 58 | </svg> |
61 | <span class="ml-4">Главная страница</span> | 59 | <span class="ml-4">Главная страница</span> |
62 | </a> | 60 | </a> |
63 | </li> | 61 | </li> |
64 | @endif | ||
65 | </ul> | 62 | </ul> |
63 | |||
66 | <ul> | 64 | <ul> |
67 | @if (($UserId == 1) || ($admin == 1)) | 65 | @foreach ($contents as $cont) |
68 | <li class="relative px-6 py-3"> | 66 | @if ($cont->url_page == "admin/users") |
69 | <a | 67 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
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 }}" | 68 | (($cont->is_manager == 1) && ($is_manager == 1))) |
71 | href="{{ route('admin.users') }}" | 69 | <li class="relative px-6 py-3"> |
72 | > | 70 | <a |
73 | <svg | 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 }}" |
74 | class="w-5 h-5" | 72 | href="{{ route('admin.users') }}" |
75 | aria-hidden="true" | 73 | > |
76 | fill="none" | 74 | <svg |
77 | stroke-linecap="round" | 75 | class="w-5 h-5" |
78 | stroke-linejoin="round" | 76 | aria-hidden="true" |
79 | stroke-width="2" | 77 | fill="none" |
80 | viewBox="0 0 24 24" | 78 | stroke-linecap="round" |
81 | stroke="currentColor" | 79 | stroke-linejoin="round" |
82 | > | 80 | stroke-width="2" |
83 | <path | 81 | viewBox="0 0 24 24" |
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" | 82 | stroke="currentColor" |
85 | ></path> | 83 | > |
86 | </svg> | 84 | <path |
87 | <span class="ml-4">Пользователи</span> | 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" |
88 | </a> | 86 | ></path> |
89 | </li> | 87 | </svg> |
88 | <span class="ml-4">Пользователи</span> | ||
89 | </a> | ||
90 | </li> | ||
91 | @endif | ||
90 | @endif | 92 | @endif |
91 | 93 | ||
92 | @if ($admin == 1) | 94 | @if ($cont->url_page == "admin/admin_roles") |
93 | <!--<li class="relative px-6 py-3"> | 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 | <a | 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 }}" | 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') }}" |
96 | href="{{ route('admin.admin_roles') }}" | ||
97 | > | 128 | > |
98 | <svg | 129 | <svg |
99 | class="w-5 h-5" | 130 | class="w-5 h-5" |
100 | aria-hidden="true" | 131 | aria-hidden="true" |
101 | fill="none" | 132 | fill="none" |
102 | stroke-linecap="round" | 133 | stroke-linecap="round" |
103 | stroke-linejoin="round" | 134 | stroke-linejoin="round" |
104 | stroke-width="2" | 135 | stroke-width="2" |
105 | viewBox="0 0 24 24" | 136 | viewBox="0 0 24 24" |
106 | stroke="currentColor" | 137 | stroke="currentColor" |
107 | > | 138 | > |
108 | <path | 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 | ></path> | 141 | ></path> |
111 | </svg> | 142 | </svg> |
112 | <span class="ml-4">Роли администраторов</span> | 143 | <span class="ml-4">Администраторы</span> |
113 | </a> | 144 | </a> |
114 | </li>--> | 145 | </li> |
146 | @endif | ||
115 | @endif | 147 | @endif |
116 | 148 | ||
117 | @if ($admin == 1) | 149 | @if ($cont->url_page == "admin/employers") |
118 | <li class="relative px-6 py-3"> | 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 | <a | 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 | <svg | 211 | <svg |
123 | class="w-5 h-5" | 212 | class="w-5 h-5" |
124 | aria-hidden="true" | 213 | aria-hidden="true" |
125 | fill="none" | 214 | fill="none" |
126 | stroke-linecap="round" | 215 | stroke-linecap="round" |
127 | stroke-linejoin="round" | 216 | stroke-linejoin="round" |
128 | stroke-width="2" | 217 | stroke-width="2" |
129 | viewBox="0 0 24 24" | 218 | viewBox="0 0 24 24" |
130 | stroke="currentColor" | 219 | stroke="currentColor" |
131 | > | 220 | > |
132 | <path | 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 | ></path> | 223 | ></path> |
135 | </svg> | 224 | </svg> |
136 | <span class="ml-4">Администраторы</span> | 225 | <span class="ml-4">Вакансии</span> |
137 | </a> | 226 | </a> |
138 | </li> | 227 | </li> |
139 | @endif | 228 | @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> | ||
188 | @endif | 229 | @endif |
189 | 230 | ||
190 | @if (($is_manager) || ($admin)) | 231 | @if ($cont->url_page == "admin/messages") |
191 | <li class="relative px-6 py-3"> | 232 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
192 | <a | 233 | (($cont->is_manager == 1) && ($is_manager == 1))) |
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') }}" | 234 | <li class="relative px-6 py-3"> |
194 | > | 235 | <a |
195 | <svg | 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') }}" |
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" | ||
204 | > | 237 | > |
205 | <path | 238 | <svg |
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" | 239 | class="w-5 h-5" |
207 | ></path> | 240 | aria-hidden="true" |
208 | </svg> | 241 | fill="none" |
209 | <span class="ml-4">Вакансии</span> | 242 | stroke-linecap="round" |
210 | </a> | 243 | stroke-linejoin="round" |
211 | </li> | 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 | @endif | 254 | @endif |
213 | 255 | ||
214 | @if ($admin) | 256 | @if ($cont->url_page == "admin/admin-messages") |
215 | <li class="relative px-6 py-3"> | 257 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
216 | <a | 258 | (($cont->is_manager == 1) && ($is_manager == 1))) |
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') }}" | 259 | <li class="relative px-6 py-3"> |
218 | > | 260 | <a |
219 | <svg | 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') }}" |
220 | class="w-5 h-5" | 262 | > |
221 | aria-hidden="true" | 263 | <svg |
222 | fill="none" | 264 | class="w-5 h-5" |
223 | stroke-linecap="round" | 265 | aria-hidden="true" |
224 | stroke-linejoin="round" | 266 | fill="none" |
225 | stroke-width="2" | 267 | stroke-linecap="round" |
226 | viewBox="0 0 24 24" | 268 | stroke-linejoin="round" |
227 | stroke="currentColor" | 269 | stroke-width="2" |
228 | > | 270 | viewBox="0 0 24 24" |
229 | <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> | 271 | stroke="currentColor" |
230 | </svg> | 272 | > |
231 | <span class="ml-4">Сообщения все</span> | 273 | <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> |
232 | </a> | 274 | </svg> |
233 | </li> | 275 | <span class="ml-4">Заявки на рассылку</span> |
276 | </a> | ||
277 | </li> | ||
278 | @endif | ||
234 | @endif | 279 | @endif |
235 | 280 | ||
236 | @if ($admin) | 281 | @if ($cont->url_page == "admin/groups") |
237 | <li class="relative px-6 py-3"> | 282 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
238 | <a | 283 | (($cont->is_manager == 1) && ($is_manager == 1))) |
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') }}" | 284 | <li class="relative px-6 py-3"> |
240 | > | 285 | <a |
241 | <svg | 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') }}" |
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" | ||
250 | > | 287 | > |
251 | <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> | 288 | <svg |
252 | </svg> | 289 | class="w-5 h-5" |
253 | <span class="ml-4">Заявки на рассылку</span> | 290 | aria-hidden="true" |
254 | </a> | 291 | fill="none" |
255 | </li> | 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 | @endif | 306 | @endif |
257 | 307 | ||
258 | @if (($is_manager) || ($admin)) | 308 | @if ($cont->url_page == "admin/media") |
259 | <li class="relative px-6 py-3"> | 309 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
260 | <a | 310 | (($cont->is_manager == 1) && ($is_manager == 1))) |
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') }}" | 311 | <li class="relative px-6 py-3"> |
262 | > | 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') }}"> |
263 | <svg | 313 | <svg |
264 | class="w-5 h-5" | 314 | class="w-5 h-5" |
265 | aria-hidden="true" | 315 | aria-hidden="true" |
266 | fill="none" | 316 | fill="none" |
267 | stroke-linecap="round" | 317 | stroke-linecap="round" |
268 | stroke-linejoin="round" | 318 | stroke-linejoin="round" |
269 | stroke-width="2" | 319 | stroke-width="2" |
270 | viewBox="0 0 24 24" | 320 | viewBox="0 0 24 24" |
271 | stroke="currentColor" | 321 | stroke="currentColor" |
272 | > | 322 | > |
273 | <path | 323 | <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" | 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" |
275 | ></path> | 325 | ></path> |
276 | </svg> | 326 | </svg> |
277 | <span class="ml-4">Группы пользователей</span> | 327 | <span class="ml-4">Медиа</span> |
278 | </a> | 328 | </a> |
279 | </li> | 329 | </li> |
330 | @endif | ||
280 | @endif | 331 | @endif |
281 | 332 | ||
282 | @if (($is_manager) || ($admin)) | 333 | @if ($cont->url_page == "admin/roles") |
283 | <li class="relative px-6 py-3"> | 334 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
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') }}"> | 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 | <svg | 338 | <svg |
286 | class="w-5 h-5" | 339 | class="w-5 h-5" |
287 | aria-hidden="true" | 340 | aria-hidden="true" |
288 | fill="none" | 341 | fill="none" |
289 | stroke-linecap="round" | 342 | stroke-linecap="round" |
290 | stroke-linejoin="round" | 343 | stroke-linejoin="round" |
291 | stroke-width="2" | 344 | stroke-width="2" |
292 | viewBox="0 0 24 24" | 345 | viewBox="0 0 24 24" |
293 | stroke="currentColor" | 346 | stroke="currentColor" |
294 | > | 347 | > |
295 | <path | 348 | <path |
296 | 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" | 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 | ></path> | 350 | ></path> |
298 | </svg> | 351 | </svg> |
299 | <span class="ml-4">Медиа</span> | 352 | <span class="ml-4">Роли пользователей</span> |
300 | </a> | 353 | </a> |
301 | </li> | 354 | </li> |
355 | @endif | ||
302 | @endif | 356 | @endif |
303 | 357 | ||
304 | @if ($UserId == 1) | 358 | @if ($cont->url_page == "admin/basedata") |
305 | <li class="relative px-6 py-3"> | 359 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
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') }}"> | 360 | (($cont->is_manager == 1) && ($is_manager == 1))) |
307 | <svg | 361 | <li class="relative px-6 py-3"> |
308 | class="w-5 h-5" | 362 | <a |
309 | aria-hidden="true" | 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') }}" |
310 | fill="none" | ||
311 | stroke-linecap="round" | ||
312 | stroke-linejoin="round" | ||
313 | stroke-width="2" | ||
314 | viewBox="0 0 24 24" | ||
315 | stroke="currentColor" | ||
316 | > | 364 | > |
317 | <path | 365 | <svg |
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" | 366 | class="w-5 h-5" |
319 | ></path> | 367 | aria-hidden="true" |
320 | </svg> | 368 | fill="none" |
321 | <span class="ml-4">Роли пользователей</span> | 369 | stroke-linecap="round" |
322 | </a> | 370 | stroke-linejoin="round" |
323 | </li> | 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 | @endif | 381 | @endif |
325 | 382 | ||
326 | @if (($is_manager) || ($admin)) | 383 | @if ($cont->url_page == "admin/education") |
327 | <li class="relative px-6 py-3"> | 384 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
328 | <a | 385 | (($cont->is_manager == 1) && ($is_manager == 1))) |
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') }}" | 386 | <li class="relative px-6 py-3"> |
330 | > | 387 | <a |
331 | <svg | 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') }}" |
332 | class="w-5 h-5" | 389 | > |
333 | aria-hidden="true" | 390 | <svg |
334 | fill="none" | 391 | class="w-5 h-5" |
335 | stroke-linecap="round" | 392 | aria-hidden="true" |
336 | stroke-linejoin="round" | 393 | fill="none" |
337 | stroke-width="2" | 394 | stroke-linecap="round" |
338 | viewBox="0 0 24 24" | 395 | stroke-linejoin="round" |
339 | stroke="currentColor" | 396 | stroke-width="2" |
340 | > | 397 | viewBox="0 0 24 24" |
341 | <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> | 398 | stroke="currentColor" |
342 | </svg> | 399 | > |
343 | <span class="ml-4">Базы данных</span> | 400 | <path |
344 | </a> | 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" |
345 | </li> | 402 | ></path> |
403 | </svg> | ||
404 | <span class="ml-4">Учебн.заведения</span> | ||
405 | </a> | ||
406 | </li> | ||
407 | @endif | ||
346 | @endif | 408 | @endif |
347 | 409 | ||
348 | @if ($admin) | 410 | @if ($cont->url_page == "admin/statics") |
349 | <li class="relative px-6 py-3"> | 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 | <a | 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 | <svg | 417 | <svg |
354 | class="w-5 h-5" | 418 | class="w-5 h-5" |
355 | aria-hidden="true" | 419 | aria-hidden="true" |
356 | fill="none" | 420 | fill="none" |
357 | stroke-linecap="round" | 421 | stroke-linecap="round" |
358 | stroke-linejoin="round" | 422 | stroke-linejoin="round" |
359 | stroke-width="2" | 423 | stroke-width="2" |
360 | viewBox="0 0 24 24" | 424 | viewBox="0 0 24 24" |
361 | stroke="currentColor" | 425 | stroke="currentColor" |
362 | > | 426 | > |
363 | <path | 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 | ></path> | 429 | ></path> |
430 | <path d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"></path> | ||
366 | </svg> | 431 | </svg> |
367 | <span class="ml-4">Учебн.заведения</span> | 432 | <span class="ml-4">Статистика</span> |
368 | </a> | 433 | </a> |
369 | </li> | 434 | </li> |
370 | @endif | 435 | @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> | ||
395 | @endif | 436 | @endif |
396 | 437 | ||
397 | @if (($is_manager) || ($admin)) | 438 | @if ($cont->url_page == "admin/answers") |
398 | <li class="relative px-6 py-3"> | 439 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
399 | <a | 440 | (($cont->is_manager == 1) && ($is_manager == 1))) |
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') }}" | 441 | <li class="relative px-6 py-3"> |
401 | > | 442 | <a |
402 | <svg | 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') }}" |
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" | ||
411 | > | 444 | > |
412 | <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> | 445 | <svg |
413 | </svg> | 446 | class="w-5 h-5" |
414 | <span class="ml-4">Модерация</span> | 447 | aria-hidden="true" |
415 | </a> | 448 | fill="none" |
416 | </li> | 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 | @endif | 461 | @endif |
418 | 462 | ||
419 | @if (($is_manager) || ($admin)) | 463 | @if ($cont->url_page == "admin/reclames") |
420 | <li class="relative px-6 py-3"> | 464 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
421 | <a | 465 | (($cont->is_manager == 1) && ($is_manager == 1))) |
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') }}" | 466 | <li class="relative px-6 py-3"> |
423 | > | 467 | <a |
424 | <svg | 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') }}" |
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" | ||
433 | > | 469 | > |
434 | <path | 470 | <svg |
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" | 471 | class="w-5 h-5" |
436 | ></path> | 472 | aria-hidden="true" |
437 | </svg> | 473 | fill="none" |
438 | <span class="ml-4">Реклама</span> | 474 | stroke-linecap="round" |
439 | </a> | 475 | stroke-linejoin="round" |
440 | </li> | 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 | @endif | 488 | @endif |
442 | 489 | @endforeach | |
443 | <!-- Справочники --> | 490 | <!-- Справочники --> |
444 | @if ($admin) | 491 | |
445 | <li class="relative px-6 py-3" x-data="{ open1: false }"> | 492 | <li class="relative px-6 py-3" x-data="{ open1: false }"> |
446 | <button | 493 | <button |
447 | 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" | 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" |
448 | @click="open1=!open1" | 495 | @click="open1=!open1" |
449 | aria-haspopup="true"> | 496 | aria-haspopup="true"> |
450 | <span class="inline-flex items-center"> | 497 | <span class="inline-flex items-center"> |
451 | <svg | 498 | <svg |
452 | class="w-5 h-5" | 499 | class="w-5 h-5" |
453 | aria-hidden="true" | 500 | aria-hidden="true" |
454 | fill="none" | 501 | fill="none" |
455 | stroke-linecap="round" | 502 | stroke-linecap="round" |
456 | stroke-linejoin="round" | 503 | stroke-linejoin="round" |
457 | stroke-width="2" | 504 | stroke-width="2" |
458 | viewBox="0 0 24 24" | 505 | viewBox="0 0 24 24" |
459 | stroke="currentColor"> | 506 | stroke="currentColor"> |
460 | <path | 507 | <path |
461 | d="M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 13a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H5a1 1 0 01-1-1v-6zM16 13a1 1 0 011-1h2a1 1 0 011 1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-6z" | 508 | d="M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 13a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H5a1 1 0 01-1-1v-6zM16 13a1 1 0 011-1h2a1 1 0 011 1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-6z" |
462 | ></path> | 509 | ></path> |
463 | </svg> | 510 | </svg> |
464 | <span class="ml-4">Справочники</span> | 511 | <span class="ml-4">Справочники</span> |
465 | </span> | 512 | </span> |
466 | <svg | 513 | <svg |
467 | class="w-4 h-4" | 514 | class="w-4 h-4" |
468 | aria-hidden="true" | 515 | aria-hidden="true" |
469 | fill="currentColor" | 516 | fill="currentColor" |
470 | viewBox="0 0 20 20" | 517 | viewBox="0 0 20 20" |
471 | > | 518 | > |
472 | <path | 519 | <path |
473 | fill-rule="evenodd" | 520 | fill-rule="evenodd" |
474 | d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" | 521 | d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" |
475 | clip-rule="evenodd" | 522 | clip-rule="evenodd" |
476 | ></path> | 523 | ></path> |
477 | </svg> | 524 | </svg> |
478 | </button> | 525 | </button> |
479 | <template x-if="open1"> | 526 | <template x-if="open1"> |
480 | <ul | 527 | <ul |
481 | x-transition:enter="transition-all ease-in-out duration-300" | 528 | x-transition:enter="transition-all ease-in-out duration-300" |
482 | x-transition:enter-start="opacity-25 max-h-0" | 529 | x-transition:enter-start="opacity-25 max-h-0" |
483 | x-transition:enter-end="opacity-100 max-h-xl" | 530 | x-transition:enter-end="opacity-100 max-h-xl" |
484 | x-transition:leave="transition-all ease-in-out duration-300" | 531 | x-transition:leave="transition-all ease-in-out duration-300" |
485 | x-transition:leave-start="opacity-100 max-h-xl" | 532 | x-transition:leave-start="opacity-100 max-h-xl" |
486 | x-transition:leave-end="opacity-0 max-h-0" | 533 | x-transition:leave-end="opacity-0 max-h-0" |
487 | 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" | 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 | aria-label="submenu" | 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 }}"> | 537 | @foreach ($contents as $cont) |
491 | <a class="w-full" href="{{ route('admin.job-titles.index') }}">Должности</a> | 538 | @if ($cont->url_page == "admin/job-titles") |
492 | </li> | 539 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
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 }}"> | 540 | (($cont->is_manager == 1) && ($is_manager == 1))) |
494 | <a class="w-full" href="{{ route('admin.categories.index') }}">Категории вакансий</a> | 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 }}"> |
495 | </li> | 542 | <a class="w-full" href="{{ route('admin.job-titles.index') }}">Должности</a> |
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 }}"> | 543 | </li> |
497 | <a class="w-full" href="{{ route('admin.category-emp.index') }}">Категории работодателей</a> | 544 | @endif |
498 | </li> | 545 | @endif |
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> | ||
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 | </ul> | 574 | </ul> |
504 | </template> | 575 | </template> |
505 | </li> | 576 | </li> |
506 | @endif | ||
507 | |||
508 | 577 | ||
509 | @if ($admin) | ||
510 | <!-- Редактор --> | 578 | <!-- Редактор --> |
511 | <li class="relative px-6 py-3"> | 579 | <li class="relative px-6 py-3"> |
512 | <button | 580 | <button |
513 | 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" | 581 | 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" |
514 | @click="togglePagesMenu" | 582 | @click="togglePagesMenu" |
515 | aria-haspopup="true"> | 583 | aria-haspopup="true"> |
516 | <span class="inline-flex items-center"> | 584 | <span class="inline-flex items-center"> |
517 | <svg | 585 | <svg |
518 | class="w-5 h-5" | 586 | class="w-5 h-5" |
519 | aria-hidden="true" | 587 | aria-hidden="true" |
520 | fill="none" | 588 | fill="none" |
521 | stroke-linecap="round" | 589 | stroke-linecap="round" |
522 | stroke-linejoin="round" | 590 | stroke-linejoin="round" |
523 | stroke-width="2" | 591 | stroke-width="2" |
524 | viewBox="0 0 24 24" | 592 | viewBox="0 0 24 24" |
525 | stroke="currentColor"> | 593 | stroke="currentColor"> |
526 | <path | 594 | <path |
527 | d="M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 13a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H5a1 1 0 01-1-1v-6zM16 13a1 1 0 011-1h2a1 1 0 011 1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-6z" | 595 | d="M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 13a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H5a1 1 0 01-1-1v-6zM16 13a1 1 0 011-1h2a1 1 0 011 1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-6z" |
528 | ></path> | 596 | ></path> |
529 | </svg> | 597 | </svg> |
530 | <span class="ml-4">Редактор</span> | 598 | <span class="ml-4">Редактор</span> |
531 | </span> | 599 | </span> |
532 | <svg | 600 | <svg |
533 | class="w-4 h-4" | 601 | class="w-4 h-4" |
534 | aria-hidden="true" | 602 | aria-hidden="true" |
535 | fill="currentColor" | 603 | fill="currentColor" |
536 | viewBox="0 0 20 20" | 604 | viewBox="0 0 20 20" |
537 | > | 605 | > |
538 | <path | 606 | <path |
539 | fill-rule="evenodd" | 607 | fill-rule="evenodd" |
540 | d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" | 608 | d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" |
541 | clip-rule="evenodd" | 609 | clip-rule="evenodd" |
542 | ></path> | 610 | ></path> |
543 | </svg> | 611 | </svg> |
544 | </button> | 612 | </button> |
545 | <template x-if="isPagesMenuOpen"> | 613 | <template x-if="isPagesMenuOpen"> |
546 | <ul | 614 | <ul |
547 | x-transition:enter="transition-all ease-in-out duration-300" | 615 | x-transition:enter="transition-all ease-in-out duration-300" |
548 | x-transition:enter-start="opacity-25 max-h-0" | 616 | x-transition:enter-start="opacity-25 max-h-0" |
549 | x-transition:enter-end="opacity-100 max-h-xl" | 617 | x-transition:enter-end="opacity-100 max-h-xl" |
550 | x-transition:leave="transition-all ease-in-out duration-300" | 618 | x-transition:leave="transition-all ease-in-out duration-300" |
551 | x-transition:leave-start="opacity-100 max-h-xl" | 619 | x-transition:leave-start="opacity-100 max-h-xl" |
552 | x-transition:leave-end="opacity-0 max-h-0" | 620 | x-transition:leave-end="opacity-0 max-h-0" |
553 | 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" | 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 | aria-label="submenu" | 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 }}"> | 624 | @foreach ($contents as $cont) |
557 | <a class="w-full" href="{{ route('admin.editor-site') }}">Редактор сайта</a> | 625 | @if ($cont->url_page == "admin/editor-site") |
558 | </li> | 626 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
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 }}"> | 627 | (($cont->is_manager == 1) && ($is_manager == 1))) |
560 | <a class="w-full" href="{{ route('admin.edit-blocks') }}">Шапка-футер сайта</a> | 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 }}"> |
561 | </li> | 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 }}"> | 634 | @if ($cont->url_page == "admin/edit-blocks") |
564 | <a class="w-full" href="{{ route('admin.editor-seo') }}">SEO сайта</a> | 635 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
565 | </li> | 636 | (($cont->is_manager == 1) && ($is_manager == 1))) |
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 }}"> | 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 }}"> |
567 | <a class="w-full" href="{{ route('admin.editor-pages') }}">Редактор страниц</a> | 638 | <a class="w-full" href="{{ route('admin.edit-blocks') }}">Шапка-футер сайта</a> |
568 | </li> | 639 | </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 }}"> | 640 | @endif |
570 | <a class="w-full" href="{{ route('admin.job-titles-main') }}">Должности на главной</a> | 641 | @endif |
571 | </li> | 642 | |
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 }}"> | 643 | @if ($cont->url_page == "admin/editor-seo") |
573 | <a class="w-full" href="{{ route('admin.employers-main') }}">Работодатели на главной</a> | 644 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
574 | </li> | 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 | </ul> | 680 | </ul> |
576 | </template> | 681 | </template> |
577 | </li> | 682 | </li> |
578 | @endif | ||
579 | |||
580 | </ul> | 683 | </ul> |
684 | |||
581 | <!--<div class="px-6 my-6"> | 685 | <!--<div class="px-6 my-6"> |
582 | <button | 686 | <button |
583 | 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" | 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" |
584 | > | 688 | > |
585 | Create account | 689 | Create account |
586 | <span class="ml-2" aria-hidden="true">+</span> | 690 | <span class="ml-2" aria-hidden="true">+</span> |
587 | </button> | 691 | </button> |
588 | </div>--> | 692 | </div>--> |
589 | </div> | 693 | </div> |
590 | </aside> | 694 | </aside> |
591 | <!-- Mobile sidebar --> | 695 | <!-- Mobile sidebar --> |
592 | <!-- Backdrop --> | 696 | <!-- Backdrop --> |
593 | <div | 697 | <div |
594 | x-show="isSideMenuOpen" | 698 | x-show="isSideMenuOpen" |
595 | x-transition:enter="transition ease-in-out duration-150" | 699 | x-transition:enter="transition ease-in-out duration-150" |
596 | x-transition:enter-start="opacity-0" | 700 | x-transition:enter-start="opacity-0" |
597 | x-transition:enter-end="opacity-100" | 701 | x-transition:enter-end="opacity-100" |
598 | x-transition:leave="transition ease-in-out duration-150" | 702 | x-transition:leave="transition ease-in-out duration-150" |
599 | x-transition:leave-start="opacity-100" | 703 | x-transition:leave-start="opacity-100" |
600 | x-transition:leave-end="opacity-0" | 704 | x-transition:leave-end="opacity-0" |
601 | class="fixed inset-0 z-10 flex items-end bg-black bg-opacity-50 sm:items-center sm:justify-center" | 705 | class="fixed inset-0 z-10 flex items-end bg-black bg-opacity-50 sm:items-center sm:justify-center" |
602 | ></div> | 706 | ></div> |
603 | <aside | 707 | <aside |
604 | class="fixed inset-y-0 z-20 flex-shrink-0 w-64 mt-16 overflow-y-auto bg-white dark:bg-gray-800 md:hidden" | 708 | class="fixed inset-y-0 z-20 flex-shrink-0 w-64 mt-16 overflow-y-auto bg-white dark:bg-gray-800 md:hidden" |
605 | x-show="isSideMenuOpen" | 709 | x-show="isSideMenuOpen" |
606 | x-transition:enter="transition ease-in-out duration-150" | 710 | x-transition:enter="transition ease-in-out duration-150" |
607 | x-transition:enter-start="opacity-0 transform -translate-x-20" | 711 | x-transition:enter-start="opacity-0 transform -translate-x-20" |
608 | x-transition:enter-end="opacity-100" | 712 | x-transition:enter-end="opacity-100" |
609 | x-transition:leave="transition ease-in-out duration-150" | 713 | x-transition:leave="transition ease-in-out duration-150" |
610 | x-transition:leave-start="opacity-100" | 714 | x-transition:leave-start="opacity-100" |
611 | x-transition:leave-end="opacity-0 transform -translate-x-20" | 715 | x-transition:leave-end="opacity-0 transform -translate-x-20" |
612 | @click.away="closeSideMenu" | 716 | @click.away="closeSideMenu" |
613 | @keydown.escape="closeSideMenu" | 717 | @keydown.escape="closeSideMenu" |
614 | > | 718 | > |
615 | <div class="py-4 text-gray-500 dark:text-gray-400"> | 719 | <div class="py-4 text-gray-500 dark:text-gray-400"> |
616 | <a | 720 | <a |
617 | class="ml-6 text-lg font-bold text-gray-800 dark:text-gray-200" | 721 | class="ml-6 text-lg font-bold text-gray-800 dark:text-gray-200" |
618 | href="{{ route('admin.index') }}" | 722 | href="{{ route('admin.index') }}" |
619 | > | 723 | > |
620 | Админка | 724 | Админка |
621 | </a> | 725 | </a> |
622 | <ul class="mt-6"> | 726 | <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> | ||
757 | <li class="relative px-6 py-3"> | 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 | <a | 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 | <svg | 735 | <svg |
762 | class="w-5 h-5" | 736 | class="w-5 h-5" |
763 | aria-hidden="true" | 737 | aria-hidden="true" |
764 | fill="none" | 738 | fill="none" |
765 | stroke-linecap="round" | 739 | stroke-linecap="round" |
766 | stroke-linejoin="round" | 740 | stroke-linejoin="round" |
767 | stroke-width="2" | 741 | stroke-width="2" |
768 | viewBox="0 0 24 24" | 742 | viewBox="0 0 24 24" |
769 | stroke="currentColor" | 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 | </svg> | 748 | </svg> |
773 | <span class="ml-4">Сообщения все</span> | 749 | <span class="ml-4">Главная страница</span> |
774 | </a> | 750 | </a> |
775 | </li> | 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"> | 780 | @if ($cont->url_page == "admin/admin-users") |
778 | <a | 781 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
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') }}" | 782 | (($cont->is_manager == 1) && ($is_manager == 1))) |
780 | > | 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 | <svg | 995 | <svg |
782 | class="w-5 h-5" | 996 | class="w-5 h-5" |
783 | aria-hidden="true" | 997 | aria-hidden="true" |
784 | fill="none" | 998 | fill="none" |
785 | stroke-linecap="round" | 999 | stroke-linecap="round" |
786 | stroke-linejoin="round" | 1000 | stroke-linejoin="round" |
787 | stroke-width="2" | 1001 | stroke-width="2" |
788 | viewBox="0 0 24 24" | 1002 | viewBox="0 0 24 24" |
789 | stroke="currentColor" | 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 | </svg> | 1008 | </svg> |
793 | <span class="ml-4">Заявки на рассылку</span> | 1009 | <span class="ml-4">Роли пользователей</span> |
794 | </a> | 1010 | </a> |
795 | </li> | 1011 | </li> |
796 | 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 | <li class="relative px-6 py-3"> | 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') }}"> | 1019 | <a |
800 | <svg | 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') }}" |
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" | ||
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 | <svg | 1022 | <svg |
821 | class="w-5 h-5" | 1023 | class="w-5 h-5" |
822 | aria-hidden="true" | 1024 | aria-hidden="true" |
823 | fill="none" | 1025 | fill="none" |
824 | stroke-linecap="round" | 1026 | stroke-linecap="round" |
825 | stroke-linejoin="round" | 1027 | stroke-linejoin="round" |
826 | stroke-width="2" | 1028 | stroke-width="2" |
827 | viewBox="0 0 24 24" | 1029 | viewBox="0 0 24 24" |
828 | stroke="currentColor" | 1030 | stroke="currentColor" |
829 | > | 1031 | > |
830 | <path | 1032 | <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></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> | ||
833 | </svg> | 1033 | </svg> |
834 | <span class="ml-4">Медиа</span> | 1034 | <span class="ml-4">Базы данных</span> |
835 | </a> | 1035 | </a> |
836 | </li> | 1036 | </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> | ||
858 | @endif | 1037 | @endif |
1038 | @endif | ||
859 | 1039 | ||
860 | <li class="relative px-6 py-3"> | 1040 | @if ($cont->url_page == "admin/education") |
861 | <a | 1041 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
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') }}" | 1042 | (($cont->is_manager == 1) && ($is_manager == 1))) |
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 | |||
880 | <li class="relative px-6 py-3"> | 1043 | <li class="relative px-6 py-3"> |
881 | <a | 1044 | <a |
882 | 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') }}" | 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') }}" |
883 | > | 1046 | > |
884 | <svg | 1047 | <svg |
885 | class="w-5 h-5" | 1048 | class="w-5 h-5" |
886 | aria-hidden="true" | 1049 | aria-hidden="true" |
887 | fill="none" | 1050 | fill="none" |
888 | stroke-linecap="round" | 1051 | stroke-linecap="round" |
889 | stroke-linejoin="round" | 1052 | stroke-linejoin="round" |
890 | stroke-width="2" | 1053 | stroke-width="2" |
891 | viewBox="0 0 24 24" | 1054 | viewBox="0 0 24 24" |
892 | stroke="currentColor" | 1055 | stroke="currentColor" |
893 | > | 1056 | > |
894 | <path | 1057 | <path |
895 | 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" | 1058 | 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" |
896 | ></path> | 1059 | ></path> |
897 | </svg> | 1060 | </svg> |
898 | <span class="ml-4">Учебн.заведения</span> | 1061 | <span class="ml-4">Учебн.заведения</span> |
899 | </a> | 1062 | </a> |
900 | </li> | 1063 | </li> |
901 | <li class="relative px-6 py-3"> | 1064 | @endif |
902 | <a | 1065 | @endif |
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') }}" | 1066 | |
904 | > | 1067 | @if ($cont->url_page == "admin/statics") |
905 | <svg | 1068 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
906 | class="w-5 h-5" | 1069 | (($cont->is_manager == 1) && ($is_manager == 1))) |
907 | aria-hidden="true" | 1070 | <li class="relative px-6 py-3"> |
908 | fill="none" | 1071 | <a |
909 | stroke-linecap="round" | 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') }}" |
910 | stroke-linejoin="round" | ||
911 | stroke-width="2" | ||
912 | viewBox="0 0 24 24" | ||
913 | stroke="currentColor" | ||
914 | > | 1073 | > |
915 | <path | 1074 | <svg |
916 | d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z" | 1075 | class="w-5 h-5" |
917 | ></path> | 1076 | aria-hidden="true" |
918 | <path d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"></path> | 1077 | fill="none" |
919 | </svg> | 1078 | stroke-linecap="round" |
920 | <span class="ml-4">Статистика</span> | 1079 | stroke-linejoin="round" |
921 | </a> | 1080 | stroke-width="2" |
922 | </li> | 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 | <li class="relative px-6 py-3"> | 1098 | <li class="relative px-6 py-3"> |
924 | <a | 1099 | <a |
925 | 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') }}" | 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') }}" |
926 | > | 1101 | > |
927 | <svg | 1102 | <svg |
928 | class="w-5 h-5" | 1103 | class="w-5 h-5" |
929 | aria-hidden="true" | 1104 | aria-hidden="true" |
930 | fill="none" | 1105 | fill="none" |
931 | stroke-linecap="round" | 1106 | stroke-linecap="round" |
932 | stroke-linejoin="round" | 1107 | stroke-linejoin="round" |
933 | stroke-width="2" | 1108 | stroke-width="2" |
934 | viewBox="0 0 24 24" | 1109 | viewBox="0 0 24 24" |
935 | stroke="currentColor" | 1110 | stroke="currentColor" |
936 | > | 1111 | > |
937 | <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> | 1112 | <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> |
938 | </svg> | 1113 | </svg> |
939 | <span class="ml-4">Сообщения все</span> | 1114 | <span class="ml-4">Сообщения все</span> |
940 | </a> | 1115 | </a> |
941 | </li> | 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 | <li class="relative px-6 py-3"> | 1123 | <li class="relative px-6 py-3"> |
943 | <a | 1124 | <a |
944 | 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') }}" | 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') }}" |
945 | > | 1126 | > |
946 | <svg | 1127 | <svg |
947 | class="w-5 h-5" | 1128 | class="w-5 h-5" |
948 | aria-hidden="true" | 1129 | aria-hidden="true" |
949 | fill="none" | 1130 | fill="none" |
950 | stroke-linecap="round" | 1131 | stroke-linecap="round" |
951 | stroke-linejoin="round" | 1132 | stroke-linejoin="round" |
952 | stroke-width="2" | 1133 | stroke-width="2" |
953 | viewBox="0 0 24 24" | 1134 | viewBox="0 0 24 24" |
954 | stroke="currentColor" | 1135 | stroke="currentColor" |
955 | > | 1136 | > |
956 | <path | 1137 | <path |
957 | 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" | 1138 | 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" |
958 | ></path> | 1139 | ></path> |
959 | </svg> | 1140 | </svg> |
960 | <span class="ml-4">Реклама</span> | 1141 | <span class="ml-4">Реклама</span> |
961 | </a> | 1142 | </a> |
962 | </li> | 1143 | </li> |
1144 | @endif | ||
1145 | @endif | ||
1146 | @endforeach | ||
1147 | |||
963 | <!-- Справочники --> | 1148 | <!-- Справочники --> |
964 | <li class="relative px-6 py-3" x-data="{ open2: false }"> | 1149 | <li class="relative px-6 py-3" x-data="{ open2: false }"> |
965 | <button | 1150 | <button |
966 | 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" | 1151 | 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" |
967 | @click="open2=!open2" | 1152 | @click="open2=!open2" |
968 | aria-haspopup="true"> | 1153 | aria-haspopup="true"> |
969 | <span class="inline-flex items-center"> | 1154 | <span class="inline-flex items-center"> |
970 | <svg | 1155 | <svg |
971 | class="w-5 h-5" | 1156 | class="w-5 h-5" |
972 | aria-hidden="true" | 1157 | aria-hidden="true" |
973 | fill="none" | 1158 | fill="none" |
974 | stroke-linecap="round" | 1159 | stroke-linecap="round" |
975 | stroke-linejoin="round" | 1160 | stroke-linejoin="round" |
976 | stroke-width="2" | 1161 | stroke-width="2" |
977 | viewBox="0 0 24 24" | 1162 | viewBox="0 0 24 24" |
978 | stroke="currentColor"> | 1163 | stroke="currentColor"> |
979 | <path | 1164 | <path |
980 | d="M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 13a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H5a1 1 0 01-1-1v-6zM16 13a1 1 0 011-1h2a1 1 0 011 1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-6z" | 1165 | d="M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 13a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H5a1 1 0 01-1-1v-6zM16 13a1 1 0 011-1h2a1 1 0 011 1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-6z" |
981 | ></path> | 1166 | ></path> |
982 | </svg> | 1167 | </svg> |
983 | <span class="ml-4">Справочники</span> | 1168 | <span class="ml-4">Справочники</span> |
984 | </span> | 1169 | </span> |
985 | <svg | 1170 | <svg |
986 | class="w-4 h-4" | 1171 | class="w-4 h-4" |
987 | aria-hidden="true" | 1172 | aria-hidden="true" |
988 | fill="currentColor" | 1173 | fill="currentColor" |
989 | viewBox="0 0 20 20" | 1174 | viewBox="0 0 20 20" |
990 | > | 1175 | > |
991 | <path | 1176 | <path |
992 | fill-rule="evenodd" | 1177 | fill-rule="evenodd" |
993 | d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" | 1178 | d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" |
994 | clip-rule="evenodd" | 1179 | clip-rule="evenodd" |
995 | ></path> | 1180 | ></path> |
996 | </svg> | 1181 | </svg> |
997 | </button> | 1182 | </button> |
998 | <template x-if="open2"> | 1183 | <template x-if="open2"> |
999 | <ul | 1184 | <ul |
1000 | x-transition:enter="transition-all ease-in-out duration-300" | 1185 | x-transition:enter="transition-all ease-in-out duration-300" |
1001 | x-transition:enter-start="opacity-25 max-h-0" | 1186 | x-transition:enter-start="opacity-25 max-h-0" |
1002 | x-transition:enter-end="opacity-100 max-h-xl" | 1187 | x-transition:enter-end="opacity-100 max-h-xl" |
1003 | x-transition:leave="transition-all ease-in-out duration-300" | 1188 | x-transition:leave="transition-all ease-in-out duration-300" |
1004 | x-transition:leave-start="opacity-100 max-h-xl" | 1189 | x-transition:leave-start="opacity-100 max-h-xl" |
1005 | x-transition:leave-end="opacity-0 max-h-0" | 1190 | x-transition:leave-end="opacity-0 max-h-0" |
1006 | 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" | 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 | aria-label="submenu" | 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 }}"> | 1194 | @foreach ($contents as $cont) |
1010 | <a class="w-full" href="{{ route('admin.job-titles.index') }}">Должности</a> | 1195 | @if ($cont->url_page == "admin/job-titles") |
1011 | </li> | 1196 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
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 }}"> | 1197 | (($cont->is_manager == 1) && ($is_manager == 1))) |
1013 | <a class="w-full" href="{{ route('admin.categories.index') }}">Категории вакансий</a> | 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 }}"> |
1014 | </li> | 1199 | <a class="w-full" href="{{ route('admin.job-titles.index') }}">Должности</a> |
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 }}"> | 1200 | </li> |
1016 | <a class="w-full" href="{{ route('admin.category-emp.index') }}">Категории работодателей</a> | 1201 | @endif |
1017 | </li> | 1202 | @endif |
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 }}"> | 1203 | |
1019 | <a class="w-full" href="{{ route('admin.infobloks.index') }}">Блоки-Дипломы</a> | 1204 | @if ($cont->url_page == "admin/categories") |
1020 | </li> | 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 | </ul> | 1231 | </ul> |
1023 | </template> | 1232 | </template> |
1024 | </li> | 1233 | </li> |
1025 | 1234 | ||
1026 | <!-- Редактор --> | 1235 | <!-- Редактор --> |
1027 | <li class="relative px-6 py-3"> | 1236 | <li class="relative px-6 py-3"> |
1028 | <button | 1237 | <button |
1029 | 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" | 1238 | 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" |
1030 | @click="togglePagesMenu" | 1239 | @click="togglePagesMenu" |
1031 | aria-haspopup="true" | 1240 | aria-haspopup="true" |
1032 | > | 1241 | > |
1033 | <span class="inline-flex items-center"> | 1242 | <span class="inline-flex items-center"> |
1034 | <svg | 1243 | <svg |
1035 | class="w-5 h-5" | 1244 | class="w-5 h-5" |
1036 | aria-hidden="true" | 1245 | aria-hidden="true" |
1037 | fill="none" | 1246 | fill="none" |
1038 | stroke-linecap="round" | 1247 | stroke-linecap="round" |
1039 | stroke-linejoin="round" | 1248 | stroke-linejoin="round" |
1040 | stroke-width="2" | 1249 | stroke-width="2" |
1041 | viewBox="0 0 24 24" | 1250 | viewBox="0 0 24 24" |
1042 | stroke="currentColor" | 1251 | stroke="currentColor" |
1043 | > | 1252 | > |
1044 | <path | 1253 | <path |
1045 | d="M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 13a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H5a1 1 0 01-1-1v-6zM16 13a1 1 0 011-1h2a1 1 0 011 1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-6z" | 1254 | d="M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 13a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H5a1 1 0 01-1-1v-6zM16 13a1 1 0 011-1h2a1 1 0 011 1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-6z" |
1046 | ></path> | 1255 | ></path> |
1047 | </svg> | 1256 | </svg> |
1048 | <span class="ml-4">Редактор</span> | 1257 | <span class="ml-4">Редактор</span> |
1049 | </span> | 1258 | </span> |
1050 | <svg | 1259 | <svg |
1051 | class="w-4 h-4" | 1260 | class="w-4 h-4" |
1052 | aria-hidden="true" | 1261 | aria-hidden="true" |
1053 | fill="currentColor" | 1262 | fill="currentColor" |
1054 | viewBox="0 0 20 20" | 1263 | viewBox="0 0 20 20" |
1055 | > | 1264 | > |
1056 | <path | 1265 | <path |
1057 | fill-rule="evenodd" | 1266 | fill-rule="evenodd" |
1058 | d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" | 1267 | d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" |
1059 | clip-rule="evenodd" | 1268 | clip-rule="evenodd" |
1060 | ></path> | 1269 | ></path> |
1061 | </svg> | 1270 | </svg> |
1062 | </button> | 1271 | </button> |
1063 | <template x-if="isPagesMenuOpen"> | 1272 | <template x-if="isPagesMenuOpen"> |
1064 | <ul | 1273 | <ul |
1065 | x-transition:enter="transition-all ease-in-out duration-300" | 1274 | x-transition:enter="transition-all ease-in-out duration-300" |
1066 | x-transition:enter-start="opacity-25 max-h-0" | 1275 | x-transition:enter-start="opacity-25 max-h-0" |
1067 | x-transition:enter-end="opacity-100 max-h-xl" | 1276 | x-transition:enter-end="opacity-100 max-h-xl" |
1068 | x-transition:leave="transition-all ease-in-out duration-300" | 1277 | x-transition:leave="transition-all ease-in-out duration-300" |
1069 | x-transition:leave-start="opacity-100 max-h-xl" | 1278 | x-transition:leave-start="opacity-100 max-h-xl" |
1070 | x-transition:leave-end="opacity-0 max-h-0" | 1279 | x-transition:leave-end="opacity-0 max-h-0" |
1071 | 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" | 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 | aria-label="submenu" | 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 }}"> | 1283 | @foreach ($contents as $cont) |
1075 | <a class="w-full" href="{{ route('admin.editor-site') }}">Редактор сайта</a> | 1284 | @if ($cont->url_page == "admin/editor-site") |
1076 | </li> | 1285 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
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 }}"> | 1286 | (($cont->is_manager == 1) && ($is_manager == 1))) |
1078 | <a class="w-full" href="{{ route('admin.edit-blocks') }}">Шапка-футер сайта</a> | 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 }}"> |
1079 | </li> | 1288 | <a class="w-full" href="{{ route('admin.editor-site') }}">Редактор сайта</a> |
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 }}"> | 1289 | </li> |
1081 | <a class="w-full" href="{{ route('admin.editor-seo') }}">SEO сайта</a> | 1290 | @endif |
1082 | </li> | 1291 | @endif |
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 }}"> | 1292 | |
1084 | <a class="w-full" href="{{ route('admin.editor-pages') }}">Редактор страниц</a> | 1293 | @if ($cont->url_page == "admin/edit-blocks") |
1085 | </li> | 1294 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
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 }}"> | 1295 | (($cont->is_manager == 1) && ($is_manager == 1))) |
1087 | <a class="w-full" href="{{ route('admin.job-titles-main') }}">Должности на главной</a> | 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 }}"> |
1088 | </li> | 1297 | <a class="w-full" href="{{ route('admin.edit-blocks') }}">Шапка-футер сайта</a> |
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 }}"> | 1298 | </li> |
1090 | <a class="w-full" href="{{ route('admin.employers-main') }}">Работодатели на главной</a> | 1299 | @endif |
1091 | </li> | 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 | </ul> | 1339 | </ul> |
1094 | </template> | 1340 | </template> |
1095 | </li> | 1341 | </li> |
1096 | </ul> | 1342 | </ul> |
1097 | <!--<div class="px-6 my-6"> | 1343 | <!--<div class="px-6 my-6"> |
1098 | <button class="flex items-center justify-between 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"> | 1344 | <button class="flex items-center justify-between 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"> |
1099 | Create account | 1345 | Create account |
1100 | <span class="ml-2" aria-hidden="true">+</span> | 1346 | <span class="ml-2" aria-hidden="true">+</span> |
1101 | </button> | 1347 | </button> |
1102 | </div>--> | 1348 | </div>--> |
1103 | </div> | 1349 | </div> |
1104 | </aside> | 1350 | </aside> |
1105 | <div class="flex flex-col flex-1 w-full"> | 1351 | <div class="flex flex-col flex-1 w-full"> |
1106 | <header class="z-10 py-4 bg-white shadow-md dark:bg-gray-800"> | 1352 | <header class="z-10 py-4 bg-white shadow-md dark:bg-gray-800"> |
1107 | <div | 1353 | <div |
1108 | class="container flex items-center justify-between h-full px-6 mx-auto text-purple-600 dark:text-purple-300" | 1354 | class="container flex items-center justify-between h-full px-6 mx-auto text-purple-600 dark:text-purple-300" |
1109 | > | 1355 | > |
1110 | <!-- Mobile hamburger --> | 1356 | <!-- Mobile hamburger --> |
1111 | <button | 1357 | <button |
1112 | class="p-1 mr-5 -ml-1 rounded-md md:hidden focus:outline-none focus:shadow-outline-purple" | 1358 | class="p-1 mr-5 -ml-1 rounded-md md:hidden focus:outline-none focus:shadow-outline-purple" |
1113 | @click="toggleSideMenu" | 1359 | @click="toggleSideMenu" |
1114 | aria-label="Menu" | 1360 | aria-label="Menu" |
1115 | > | 1361 | > |
1116 | <svg | 1362 | <svg |
1117 | class="w-6 h-6" | 1363 | class="w-6 h-6" |
1118 | aria-hidden="true" | 1364 | aria-hidden="true" |
1119 | fill="currentColor" | 1365 | fill="currentColor" |
1120 | viewBox="0 0 20 20" | 1366 | viewBox="0 0 20 20" |
1121 | > | 1367 | > |
1122 | <path | 1368 | <path |
1123 | fill-rule="evenodd" | 1369 | fill-rule="evenodd" |
1124 | d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z" | 1370 | d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z" |
1125 | clip-rule="evenodd" | 1371 | clip-rule="evenodd" |
1126 | ></path> | 1372 | ></path> |
1127 | </svg> | 1373 | </svg> |
1128 | </button> | 1374 | </button> |
1129 | <!-- Search input --> | 1375 | <!-- Search input --> |
1130 | <div class="flex justify-center flex-1 lg:mr-32"> | 1376 | <div class="flex justify-center flex-1 lg:mr-32"> |
1131 | <div | 1377 | <div |
1132 | class="relative w-full max-w-xl mr-6 focus-within:text-purple-500" | 1378 | class="relative w-full max-w-xl mr-6 focus-within:text-purple-500" |
1133 | > | 1379 | > |
1134 | 1380 | ||
1135 | @yield('search') | 1381 | @yield('search') |
1136 | </div> | 1382 | </div> |
1137 | </div> | 1383 | </div> |
1138 | <ul class="flex items-center flex-shrink-0 space-x-6"> | 1384 | <ul class="flex items-center flex-shrink-0 space-x-6"> |
1139 | <!-- Theme toggler --> | 1385 | <!-- Theme toggler --> |
1140 | <li class="flex"> | 1386 | <li class="flex"> |
1141 | <button | 1387 | <button |
1142 | class="rounded-md focus:outline-none focus:shadow-outline-purple" | 1388 | class="rounded-md focus:outline-none focus:shadow-outline-purple" |
1143 | @click="toggleTheme" | 1389 | @click="toggleTheme" |
1144 | aria-label="Toggle color mode" | 1390 | aria-label="Toggle color mode" |
1145 | > | 1391 | > |
1146 | <template x-if="!dark"> | 1392 | <template x-if="!dark"> |
1147 | <svg | 1393 | <svg |
1148 | class="w-5 h-5" | 1394 | class="w-5 h-5" |
1149 | aria-hidden="true" | 1395 | aria-hidden="true" |
1150 | fill="currentColor" | 1396 | fill="currentColor" |
1151 | viewBox="0 0 20 20" | 1397 | viewBox="0 0 20 20" |
1152 | > | 1398 | > |
1153 | <path | 1399 | <path |
1154 | d="M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z" | 1400 | d="M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z" |
1155 | ></path> | 1401 | ></path> |
1156 | </svg> | 1402 | </svg> |
1157 | </template> | 1403 | </template> |
1158 | <template x-if="dark"> | 1404 | <template x-if="dark"> |
1159 | <svg | 1405 | <svg |
1160 | class="w-5 h-5" | 1406 | class="w-5 h-5" |
1161 | aria-hidden="true" | 1407 | aria-hidden="true" |
1162 | fill="currentColor" | 1408 | fill="currentColor" |
1163 | viewBox="0 0 20 20" | 1409 | viewBox="0 0 20 20" |
1164 | > | 1410 | > |
1165 | <path | 1411 | <path |
1166 | fill-rule="evenodd" | 1412 | fill-rule="evenodd" |
1167 | d="M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z" | 1413 | d="M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z" |
1168 | clip-rule="evenodd" | 1414 | clip-rule="evenodd" |
1169 | ></path> | 1415 | ></path> |
1170 | </svg> | 1416 | </svg> |
1171 | </template> | 1417 | </template> |
1172 | </button> | 1418 | </button> |
1173 | </li> | 1419 | </li> |
1174 | <!-- Notifications menu --> | 1420 | <!-- Notifications menu --> |
1175 | <li class="relative"> | 1421 | <li class="relative"> |
1176 | <button | 1422 | <button |
1177 | class="relative align-middle rounded-md focus:outline-none focus:shadow-outline-purple" | 1423 | class="relative align-middle rounded-md focus:outline-none focus:shadow-outline-purple" |
1178 | @click="toggleNotificationsMenu" | 1424 | @click="toggleNotificationsMenu" |
1179 | @keydown.escape="closeNotificationsMenu" | 1425 | @keydown.escape="closeNotificationsMenu" |
1180 | aria-label="Notifications" | 1426 | aria-label="Notifications" |
1181 | aria-haspopup="true" | 1427 | aria-haspopup="true" |
1182 | > | 1428 | > |
1183 | <svg | 1429 | <svg |
1184 | class="w-5 h-5" | 1430 | class="w-5 h-5" |
1185 | aria-hidden="true" | 1431 | aria-hidden="true" |
1186 | fill="currentColor" | 1432 | fill="currentColor" |
1187 | viewBox="0 0 20 20" | 1433 | viewBox="0 0 20 20" |
1188 | > | 1434 | > |
1189 | <path | 1435 | <path |
1190 | d="M10 2a6 6 0 00-6 6v3.586l-.707.707A1 1 0 004 14h12a1 1 0 00.707-1.707L16 11.586V8a6 6 0 00-6-6zM10 18a3 3 0 01-3-3h6a3 3 0 01-3 3z" | 1436 | d="M10 2a6 6 0 00-6 6v3.586l-.707.707A1 1 0 004 14h12a1 1 0 00.707-1.707L16 11.586V8a6 6 0 00-6-6zM10 18a3 3 0 01-3-3h6a3 3 0 01-3 3z" |
1191 | ></path> | 1437 | ></path> |
1192 | </svg> | 1438 | </svg> |
1193 | <!-- Notification badge --> | 1439 | <!-- Notification badge --> |
1194 | <span | 1440 | <span |
1195 | aria-hidden="true" | 1441 | aria-hidden="true" |
1196 | class="absolute top-0 right-0 inline-block w-3 h-3 transform translate-x-1 -translate-y-1 bg-red-600 border-2 border-white rounded-full dark:border-gray-800" | 1442 | class="absolute top-0 right-0 inline-block w-3 h-3 transform translate-x-1 -translate-y-1 bg-red-600 border-2 border-white rounded-full dark:border-gray-800" |
1197 | ></span> | 1443 | ></span> |
1198 | </button> | 1444 | </button> |
1199 | <template x-if="isNotificationsMenuOpen"> | 1445 | <template x-if="isNotificationsMenuOpen"> |
1200 | <ul | 1446 | <ul |
1201 | x-transition:leave="transition ease-in duration-150" | 1447 | x-transition:leave="transition ease-in duration-150" |
1202 | x-transition:leave-start="opacity-100" | 1448 | x-transition:leave-start="opacity-100" |
1203 | x-transition:leave-end="opacity-0" | 1449 | x-transition:leave-end="opacity-0" |
1204 | @click.away="closeNotificationsMenu" | 1450 | @click.away="closeNotificationsMenu" |
1205 | @keydown.escape="closeNotificationsMenu" | 1451 | @keydown.escape="closeNotificationsMenu" |
1206 | class="absolute right-0 w-56 p-2 mt-2 space-y-2 text-gray-600 bg-white border border-gray-100 rounded-md shadow-md dark:text-gray-300 dark:border-gray-700 dark:bg-gray-700" | 1452 | class="absolute right-0 w-56 p-2 mt-2 space-y-2 text-gray-600 bg-white border border-gray-100 rounded-md shadow-md dark:text-gray-300 dark:border-gray-700 dark:bg-gray-700" |
1207 | > | 1453 | > |
1208 | <li class="flex"> | 1454 | <li class="flex"> |
1209 | <a | 1455 | <a |
1210 | class="inline-flex items-center justify-between w-full px-2 py-1 text-sm font-semibold transition-colors duration-150 rounded-md hover:bg-gray-100 hover:text-gray-800 dark:hover:bg-gray-800 dark:hover:text-gray-200" | 1456 | class="inline-flex items-center justify-between w-full px-2 py-1 text-sm font-semibold transition-colors duration-150 rounded-md hover:bg-gray-100 hover:text-gray-800 dark:hover:bg-gray-800 dark:hover:text-gray-200" |
1211 | href="{{ route('admin.admin-messages') }}" | 1457 | href="{{ route('admin.admin-messages') }}" |
1212 | > | 1458 | > |
1213 | <span>Сообщения</span> | 1459 | <span>Сообщения</span> |
1214 | @if($MsgCount > 0) | 1460 | @if($MsgCount > 0) |
1215 | <span | 1461 | <span |
1216 | class="inline-flex items-center justify-center px-2 py-1 text-xs font-bold leading-none text-red-600 bg-red-100 rounded-full dark:text-red-100 dark:bg-red-600" | 1462 | class="inline-flex items-center justify-center px-2 py-1 text-xs font-bold leading-none text-red-600 bg-red-100 rounded-full dark:text-red-100 dark:bg-red-600" |
1217 | > | 1463 | > |
1218 | 1464 | ||
1219 | {{ $MsgCount }} | 1465 | {{ $MsgCount }} |
1220 | </span> | 1466 | </span> |
1221 | @endif | 1467 | @endif |
1222 | </a> | 1468 | </a> |
1223 | </li> | 1469 | </li> |
1224 | <!--<li class="flex"> | 1470 | <!--<li class="flex"> |
1225 | <a | 1471 | <a |
1226 | class="inline-flex items-center justify-between w-full px-2 py-1 text-sm font-semibold transition-colors duration-150 rounded-md hover:bg-gray-100 hover:text-gray-800 dark:hover:bg-gray-800 dark:hover:text-gray-200" | 1472 | class="inline-flex items-center justify-between w-full px-2 py-1 text-sm font-semibold transition-colors duration-150 rounded-md hover:bg-gray-100 hover:text-gray-800 dark:hover:bg-gray-800 dark:hover:text-gray-200" |
1227 | href="#" | 1473 | href="#" |
1228 | > | 1474 | > |
1229 | <span>Логи</span> | 1475 | <span>Логи</span> |
1230 | </a> | 1476 | </a> |
1231 | </li>--> | 1477 | </li>--> |
1232 | </ul> | 1478 | </ul> |
1233 | </template> | 1479 | </template> |
1234 | </li> | 1480 | </li> |
1235 | <!-- Profile menu --> | 1481 | <!-- Profile menu --> |
1236 | <li class="relative"> | 1482 | <li class="relative"> |
1237 | <button | 1483 | <button |
1238 | class="align-middle rounded-full focus:shadow-outline-purple focus:outline-none" | 1484 | class="align-middle rounded-full focus:shadow-outline-purple focus:outline-none" |
1239 | @click="toggleProfileMenu" | 1485 | @click="toggleProfileMenu" |
1240 | @keydown.escape="closeProfileMenu" | 1486 | @keydown.escape="closeProfileMenu" |
1241 | aria-label="Account" | 1487 | aria-label="Account" |
1242 | aria-haspopup="true" | 1488 | aria-haspopup="true" |
1243 | > | 1489 | > |
1244 | <img | 1490 | <img |
1245 | class="object-cover w-8 h-8 rounded-full" | 1491 | class="object-cover w-8 h-8 rounded-full" |
1246 | src="{{ asset('assets/img/profile.jpg') }}" | 1492 | src="{{ asset('assets/img/profile.jpg') }}" |
1247 | alt="" | 1493 | alt="" |
1248 | aria-hidden="true" | 1494 | aria-hidden="true" |
1249 | /> | 1495 | /> |
1250 | </button> | 1496 | </button> |
1251 | <template x-if="isProfileMenuOpen"> | 1497 | <template x-if="isProfileMenuOpen"> |
1252 | <ul | 1498 | <ul |
1253 | x-transition:leave="transition ease-in duration-150" | 1499 | x-transition:leave="transition ease-in duration-150" |
1254 | x-transition:leave-start="opacity-100" | 1500 | x-transition:leave-start="opacity-100" |
1255 | x-transition:leave-end="opacity-0" | 1501 | x-transition:leave-end="opacity-0" |
1256 | @click.away="closeProfileMenu" | 1502 | @click.away="closeProfileMenu" |
1257 | @keydown.escape="closeProfileMenu" | 1503 | @keydown.escape="closeProfileMenu" |
1258 | class="absolute right-0 w-56 p-2 mt-2 space-y-2 text-gray-600 bg-white border border-gray-100 rounded-md shadow-md dark:border-gray-700 dark:text-gray-300 dark:bg-gray-700" | 1504 | class="absolute right-0 w-56 p-2 mt-2 space-y-2 text-gray-600 bg-white border border-gray-100 rounded-md shadow-md dark:border-gray-700 dark:text-gray-300 dark:bg-gray-700" |
1259 | aria-label="submenu" | 1505 | aria-label="submenu" |
1260 | > | 1506 | > |
1261 | <li class="flex"> | 1507 | <li class="flex"> |
1262 | <a | 1508 | <a |
1263 | class="inline-flex items-center w-full px-2 py-1 text-sm font-semibold transition-colors duration-150 rounded-md hover:bg-gray-100 hover:text-gray-800 dark:hover:bg-gray-800 dark:hover:text-gray-200" | 1509 | class="inline-flex items-center w-full px-2 py-1 text-sm font-semibold transition-colors duration-150 rounded-md hover:bg-gray-100 hover:text-gray-800 dark:hover:bg-gray-800 dark:hover:text-gray-200" |
1264 | href="{{ route('admin.profile') }}" | 1510 | href="{{ route('admin.profile') }}" |
1265 | > | 1511 | > |
1266 | <svg | 1512 | <svg |
1267 | class="w-4 h-4 mr-3" | 1513 | class="w-4 h-4 mr-3" |
1268 | aria-hidden="true" | 1514 | aria-hidden="true" |
1269 | fill="none" | 1515 | fill="none" |
1270 | stroke-linecap="round" | 1516 | stroke-linecap="round" |
1271 | stroke-linejoin="round" | 1517 | stroke-linejoin="round" |
1272 | stroke-width="2" | 1518 | stroke-width="2" |
1273 | viewBox="0 0 24 24" | 1519 | viewBox="0 0 24 24" |
1274 | stroke="currentColor" | 1520 | stroke="currentColor" |
1275 | > | 1521 | > |
1276 | <path | 1522 | <path |
1277 | d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" | 1523 | d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" |
1278 | ></path> | 1524 | ></path> |
1279 | </svg> | 1525 | </svg> |
1280 | <span>Профиль</span> | 1526 | <span>Профиль</span> |
1281 | </a> | 1527 | </a> |
1282 | </li> | 1528 | </li> |
1283 | <li class="flex"> | 1529 | <li class="flex"> |
1284 | <a | 1530 | <a |
1285 | class="inline-flex items-center w-full px-2 py-1 text-sm font-semibold transition-colors duration-150 rounded-md hover:bg-gray-100 hover:text-gray-800 dark:hover:bg-gray-800 dark:hover:text-gray-200" | 1531 | class="inline-flex items-center w-full px-2 py-1 text-sm font-semibold transition-colors duration-150 rounded-md hover:bg-gray-100 hover:text-gray-800 dark:hover:bg-gray-800 dark:hover:text-gray-200" |
1286 | href="{{ route('admin.config') }}" | 1532 | href="{{ route('admin.config') }}" |
1287 | > | 1533 | > |
1288 | <svg | 1534 | <svg |
1289 | class="w-4 h-4 mr-3" | 1535 | class="w-4 h-4 mr-3" |
1290 | aria-hidden="true" | 1536 | aria-hidden="true" |
1291 | fill="none" | 1537 | fill="none" |
1292 | stroke-linecap="round" | 1538 | stroke-linecap="round" |
1293 | stroke-linejoin="round" | 1539 | stroke-linejoin="round" |
1294 | stroke-width="2" | 1540 | stroke-width="2" |
1295 | viewBox="0 0 24 24" | 1541 | viewBox="0 0 24 24" |
1296 | stroke="currentColor" | 1542 | stroke="currentColor" |
1297 | > | 1543 | > |
1298 | <path | 1544 | <path |
1299 | d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" | 1545 | d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" |
1300 | ></path> | 1546 | ></path> |
1301 | <path d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path> | 1547 | <path d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path> |
1302 | </svg> | 1548 | </svg> |
1303 | <span>Настройки</span> | 1549 | <span>Настройки</span> |
1304 | </a> | 1550 | </a> |
1305 | </li> | 1551 | </li> |
1306 | <li class="flex"> | 1552 | <li class="flex"> |
1307 | <a | 1553 | <a |
1308 | class="inline-flex items-center w-full px-2 py-1 text-sm font-semibold transition-colors duration-150 rounded-md hover:bg-gray-100 hover:text-gray-800 dark:hover:bg-gray-800 dark:hover:text-gray-200" | 1554 | class="inline-flex items-center w-full px-2 py-1 text-sm font-semibold transition-colors duration-150 rounded-md hover:bg-gray-100 hover:text-gray-800 dark:hover:bg-gray-800 dark:hover:text-gray-200" |
1309 | href="{{ route('admin.logout') }}" | 1555 | href="{{ route('admin.logout') }}" |
1310 | > | 1556 | > |
1311 | <svg | 1557 | <svg |
1312 | class="w-4 h-4 mr-3" | 1558 | class="w-4 h-4 mr-3" |
1313 | aria-hidden="true" | 1559 | aria-hidden="true" |
1314 | fill="none" | 1560 | fill="none" |
1315 | stroke-linecap="round" | 1561 | stroke-linecap="round" |
1316 | stroke-linejoin="round" | 1562 | stroke-linejoin="round" |
1317 | stroke-width="2" | 1563 | stroke-width="2" |
1318 | viewBox="0 0 24 24" | 1564 | viewBox="0 0 24 24" |
1319 | stroke="currentColor" | 1565 | stroke="currentColor" |
1320 | > | 1566 | > |
1321 | <path | 1567 | <path |
1322 | d="M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1" | 1568 | d="M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1" |
1323 | ></path> | 1569 | ></path> |
1324 | </svg> | 1570 | </svg> |
1325 | <span>Выход</span> | 1571 | <span>Выход</span> |
1326 | </a> | 1572 | </a> |
1327 | </li> | 1573 | </li> |
1328 | </ul> | 1574 | </ul> |
1329 | </template> | 1575 | </template> |
1330 | </li> | 1576 | </li> |
1331 | </ul> | 1577 | </ul> |
1332 | </div> | 1578 | </div> |
1333 | </header> | 1579 | </header> |
1334 | <main class="h-full overflow-y-auto"> | 1580 | <main class="h-full overflow-y-auto"> |
1335 | <div class="container px-6 mx-auto grid"> | 1581 | <div class="container px-6 mx-auto grid"> |
1336 | <h2 | 1582 | <h2 |
1337 | class="my-6 text-2xl font-semibold text-gray-700 dark:text-gray-200" | 1583 | class="my-6 text-2xl font-semibold text-gray-700 dark:text-gray-200" |
1338 | > | 1584 | > |
1339 | {{$title}} | 1585 | {{$title}} |
1340 | </h2> | 1586 | </h2> |
1341 | <!-- CTA --> | 1587 | <!-- CTA --> |
1342 | <a | 1588 | <a |
1343 | class="flex items-center justify-between p-4 mb-8 text-sm font-semibold text-purple-100 bg-purple-600 rounded-lg shadow-md focus:outline-none focus:shadow-outline-purple" | 1589 | class="flex items-center justify-between p-4 mb-8 text-sm font-semibold text-purple-100 bg-purple-600 rounded-lg shadow-md focus:outline-none focus:shadow-outline-purple" |
1344 | href="{{ route('admin.admin-users') }}" | 1590 | href="{{ route('admin.admin-users') }}" |
1345 | > | 1591 | > |
1346 | <div class="flex items-center"> | 1592 | <div class="flex items-center"> |
1347 | <svg | 1593 | <svg |
1348 | class="w-5 h-5 mr-2" | 1594 | class="w-5 h-5 mr-2" |
1349 | fill="currentColor" | 1595 | fill="currentColor" |
1350 | viewBox="0 0 20 20" | 1596 | viewBox="0 0 20 20" |
1351 | > | 1597 | > |
1352 | <path | 1598 | <path |
1353 | d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" | 1599 | d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" |
1354 | ></path> | 1600 | ></path> |
1355 | </svg> | 1601 | </svg> |
1356 | <span>Контент для админов</span> | 1602 | <span>Контент для админов</span> |
1357 | </div> | 1603 | </div> |
1358 | <span>Список админов →</span> | 1604 | <span>Список админов →</span> |
1359 | </a> | 1605 | </a> |
1360 | 1606 | ||
1361 | @if ($message = Session::get('success')) | 1607 | @if ($message = Session::get('success')) |
1362 | <section> | 1608 | <section> |
1363 | <div class="alert alert-success alert-dismissible mt-0" role="alert"> | 1609 | <div class="alert alert-success alert-dismissible mt-0" role="alert"> |
1364 | <button type="button" class="close" data-dismiss="alert" aria-label="Закрыть"> | 1610 | <button type="button" class="close" data-dismiss="alert" aria-label="Закрыть"> |
1365 | <span aria-hidden="true">×</span> | 1611 | <span aria-hidden="true">×</span> |
1366 | </button> | 1612 | </button> |
1367 | {{ $message }} | 1613 | {{ $message }} |
1368 | </div> | 1614 | </div> |
1369 | </section> | 1615 | </section> |
1370 | @endif | 1616 | @endif |
1371 | 1617 | ||
1372 | @if ($errors->any()) | 1618 | @if ($errors->any()) |
1373 | <section> | 1619 | <section> |
1374 | <div class="alert alert-danger alert-dismissible mt-4" role="alert"> | 1620 | <div class="alert alert-danger alert-dismissible mt-4" role="alert"> |
1375 | <button type="button" class="close" data-dismiss="alert" aria-label="Закрыть"> | 1621 | <button type="button" class="close" data-dismiss="alert" aria-label="Закрыть"> |
1376 | <span aria-hidden="true">×</span> | 1622 | <span aria-hidden="true">×</span> |
1377 | </button> | 1623 | </button> |
1378 | <ul class="mb-0"> | 1624 | <ul class="mb-0"> |
1379 | @foreach ($errors->all() as $error) | 1625 | @foreach ($errors->all() as $error) |
1380 | <li>{{ $error }}</li> | 1626 | <li>{{ $error }}</li> |
1381 | @endforeach | 1627 | @endforeach |
1382 | </ul> | 1628 | </ul> |
1383 | </div> | 1629 | </div> |
1384 | </section> | 1630 | </section> |
1385 | @endif | 1631 | @endif |
1386 | 1632 | ||
1387 | @yield('content') | 1633 | @yield('content') |
1388 | 1634 | ||
1389 | <!-- Cards | 1635 | <!-- Cards |
1390 | <div class="grid gap-6 mb-8 md:grid-cols-2 xl:grid-cols-4"> | 1636 | <div class="grid gap-6 mb-8 md:grid-cols-2 xl:grid-cols-4"> |
1391 | 1637 | ||
1392 | <div | 1638 | <div |
1393 | class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800" | 1639 | class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800" |
1394 | > | 1640 | > |
1395 | <div | 1641 | <div |
1396 | class="p-3 mr-4 text-orange-500 bg-orange-100 rounded-full dark:text-orange-100 dark:bg-orange-500" | 1642 | class="p-3 mr-4 text-orange-500 bg-orange-100 rounded-full dark:text-orange-100 dark:bg-orange-500" |
1397 | > | 1643 | > |
1398 | <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> | 1644 | <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> |
1399 | <path | 1645 | <path |
1400 | d="M13 6a3 3 0 11-6 0 3 3 0 016 0zM18 8a2 2 0 11-4 0 2 2 0 014 0zM14 15a4 4 0 00-8 0v3h8v-3zM6 8a2 2 0 11-4 0 2 2 0 014 0zM16 18v-3a5.972 5.972 0 00-.75-2.906A3.005 3.005 0 0119 15v3h-3zM4.75 12.094A5.973 5.973 0 004 15v3H1v-3a3 3 0 013.75-2.906z" | 1646 | d="M13 6a3 3 0 11-6 0 3 3 0 016 0zM18 8a2 2 0 11-4 0 2 2 0 014 0zM14 15a4 4 0 00-8 0v3h8v-3zM6 8a2 2 0 11-4 0 2 2 0 014 0zM16 18v-3a5.972 5.972 0 00-.75-2.906A3.005 3.005 0 0119 15v3h-3zM4.75 12.094A5.973 5.973 0 004 15v3H1v-3a3 3 0 013.75-2.906z" |
1401 | ></path> | 1647 | ></path> |
1402 | </svg> | 1648 | </svg> |
1403 | </div> | 1649 | </div> |
1404 | <div> | 1650 | <div> |
1405 | <p | 1651 | <p |
1406 | class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400" | 1652 | class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400" |
1407 | > | 1653 | > |
1408 | Total clients | 1654 | Total clients |
1409 | </p> | 1655 | </p> |
1410 | <p | 1656 | <p |
1411 | class="text-lg font-semibold text-gray-700 dark:text-gray-200" | 1657 | class="text-lg font-semibold text-gray-700 dark:text-gray-200" |
1412 | > | 1658 | > |
1413 | 6389 | 1659 | 6389 |
1414 | </p> | 1660 | </p> |
1415 | </div> | 1661 | </div> |
1416 | </div> | 1662 | </div> |
1417 | 1663 | ||
1418 | <div | 1664 | <div |
1419 | class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800" | 1665 | class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800" |
1420 | > | 1666 | > |
1421 | <div | 1667 | <div |
1422 | class="p-3 mr-4 text-green-500 bg-green-100 rounded-full dark:text-green-100 dark:bg-green-500" | 1668 | class="p-3 mr-4 text-green-500 bg-green-100 rounded-full dark:text-green-100 dark:bg-green-500" |
1423 | > | 1669 | > |
1424 | <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> | 1670 | <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> |
1425 | <path | 1671 | <path |
1426 | fill-rule="evenodd" | 1672 | fill-rule="evenodd" |
1427 | d="M4 4a2 2 0 00-2 2v4a2 2 0 002 2V6h10a2 2 0 00-2-2H4zm2 6a2 2 0 012-2h8a2 2 0 012 2v4a2 2 0 01-2 2H8a2 2 0 01-2-2v-4zm6 4a2 2 0 100-4 2 2 0 000 4z" | 1673 | d="M4 4a2 2 0 00-2 2v4a2 2 0 002 2V6h10a2 2 0 00-2-2H4zm2 6a2 2 0 012-2h8a2 2 0 012 2v4a2 2 0 01-2 2H8a2 2 0 01-2-2v-4zm6 4a2 2 0 100-4 2 2 0 000 4z" |
1428 | clip-rule="evenodd" | 1674 | clip-rule="evenodd" |
1429 | ></path> | 1675 | ></path> |
1430 | </svg> | 1676 | </svg> |
1431 | </div> | 1677 | </div> |
1432 | <div> | 1678 | <div> |
1433 | <p | 1679 | <p |
1434 | class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400" | 1680 | class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400" |
1435 | > | 1681 | > |
1436 | Account balance | 1682 | Account balance |
1437 | </p> | 1683 | </p> |
1438 | <p | 1684 | <p |
1439 | class="text-lg font-semibold text-gray-700 dark:text-gray-200" | 1685 | class="text-lg font-semibold text-gray-700 dark:text-gray-200" |
1440 | > | 1686 | > |
1441 | $ 46,760.89 | 1687 | $ 46,760.89 |
1442 | </p> | 1688 | </p> |
1443 | </div> | 1689 | </div> |
1444 | </div> | 1690 | </div> |
1445 | 1691 | ||
1446 | <div | 1692 | <div |
1447 | class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800" | 1693 | class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800" |
1448 | > | 1694 | > |
1449 | <div | 1695 | <div |
1450 | class="p-3 mr-4 text-blue-500 bg-blue-100 rounded-full dark:text-blue-100 dark:bg-blue-500" | 1696 | class="p-3 mr-4 text-blue-500 bg-blue-100 rounded-full dark:text-blue-100 dark:bg-blue-500" |
1451 | > | 1697 | > |
1452 | <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> | 1698 | <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> |
1453 | <path | 1699 | <path |
1454 | d="M3 1a1 1 0 000 2h1.22l.305 1.222a.997.997 0 00.01.042l1.358 5.43-.893.892C3.74 11.846 4.632 14 6.414 14H15a1 1 0 000-2H6.414l1-1H14a1 1 0 00.894-.553l3-6A1 1 0 0017 3H6.28l-.31-1.243A1 1 0 005 1H3zM16 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM6.5 18a1.5 1.5 0 100-3 1.5 1.5 0 000 3z" | 1700 | d="M3 1a1 1 0 000 2h1.22l.305 1.222a.997.997 0 00.01.042l1.358 5.43-.893.892C3.74 11.846 4.632 14 6.414 14H15a1 1 0 000-2H6.414l1-1H14a1 1 0 00.894-.553l3-6A1 1 0 0017 3H6.28l-.31-1.243A1 1 0 005 1H3zM16 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM6.5 18a1.5 1.5 0 100-3 1.5 1.5 0 000 3z" |
1455 | ></path> | 1701 | ></path> |
1456 | </svg> | 1702 | </svg> |
1457 | </div> | 1703 | </div> |
1458 | <div> | 1704 | <div> |
1459 | <p | 1705 | <p |
1460 | class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400" | 1706 | class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400" |
1461 | > | 1707 | > |
1462 | New sales | 1708 | New sales |
1463 | </p> | 1709 | </p> |
1464 | <p | 1710 | <p |
1465 | class="text-lg font-semibold text-gray-700 dark:text-gray-200" | 1711 | class="text-lg font-semibold text-gray-700 dark:text-gray-200" |
1466 | > | 1712 | > |
1467 | 376 | 1713 | 376 |
1468 | </p> | 1714 | </p> |
1469 | </div> | 1715 | </div> |
1470 | </div> | 1716 | </div> |
1471 | 1717 | ||
1472 | <div | 1718 | <div |
1473 | class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800" | 1719 | class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800" |
1474 | > | 1720 | > |
1475 | <div | 1721 | <div |
1476 | class="p-3 mr-4 text-teal-500 bg-teal-100 rounded-full dark:text-teal-100 dark:bg-teal-500" | 1722 | class="p-3 mr-4 text-teal-500 bg-teal-100 rounded-full dark:text-teal-100 dark:bg-teal-500" |
1477 | > | 1723 | > |
1478 | <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> | 1724 | <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> |
1479 | <path | 1725 | <path |
1480 | fill-rule="evenodd" | 1726 | fill-rule="evenodd" |
1481 | d="M18 5v8a2 2 0 01-2 2h-5l-5 4v-4H4a2 2 0 01-2-2V5a2 2 0 012-2h12a2 2 0 012 2zM7 8H5v2h2V8zm2 0h2v2H9V8zm6 0h-2v2h2V8z" | 1727 | d="M18 5v8a2 2 0 01-2 2h-5l-5 4v-4H4a2 2 0 01-2-2V5a2 2 0 012-2h12a2 2 0 012 2zM7 8H5v2h2V8zm2 0h2v2H9V8zm6 0h-2v2h2V8z" |
1482 | clip-rule="evenodd" | 1728 | clip-rule="evenodd" |
1483 | ></path> | 1729 | ></path> |
1484 | </svg> | 1730 | </svg> |
1485 | </div> | 1731 | </div> |
1486 | <div> | 1732 | <div> |
1487 | <p | 1733 | <p |
1488 | class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400" | 1734 | class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400" |
1489 | > | 1735 | > |
1490 | Pending contacts | 1736 | Pending contacts |
1491 | </p> | 1737 | </p> |
1492 | <p | 1738 | <p |
1493 | class="text-lg font-semibold text-gray-700 dark:text-gray-200" | 1739 | class="text-lg font-semibold text-gray-700 dark:text-gray-200" |
1494 | > | 1740 | > |
1495 | 35 | 1741 | 35 |
1496 | </p> | 1742 | </p> |
1497 | </div> | 1743 | </div> |
1498 | </div> | 1744 | </div> |
1499 | </div> | 1745 | </div> |
1500 | --> | 1746 | --> |
1501 | <!-- New Table | 1747 | <!-- New Table |
1502 | <div class="w-full overflow-hidden rounded-lg shadow-xs"> | 1748 | <div class="w-full overflow-hidden rounded-lg shadow-xs"> |
1503 | <div class="w-full overflow-x-auto"> | 1749 | <div class="w-full overflow-x-auto"> |
1504 | <table class="w-full whitespace-no-wrap"> | 1750 | <table class="w-full whitespace-no-wrap"> |
1505 | <thead> | 1751 | <thead> |
1506 | <tr | 1752 | <tr |
1507 | 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" | 1753 | 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" |
1508 | > | 1754 | > |
1509 | <th class="px-4 py-3">Client</th> | 1755 | <th class="px-4 py-3">Client</th> |
1510 | <th class="px-4 py-3">Amount</th> | 1756 | <th class="px-4 py-3">Amount</th> |
1511 | <th class="px-4 py-3">Status</th> | 1757 | <th class="px-4 py-3">Status</th> |
1512 | <th class="px-4 py-3">Date</th> | 1758 | <th class="px-4 py-3">Date</th> |
1513 | </tr> | 1759 | </tr> |
1514 | </thead> | 1760 | </thead> |
1515 | <tbody | 1761 | <tbody |
1516 | class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800" | 1762 | class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800" |
1517 | > | 1763 | > |
1518 | <tr class="text-gray-700 dark:text-gray-400"> | 1764 | <tr class="text-gray-700 dark:text-gray-400"> |
1519 | <td class="px-4 py-3"> | 1765 | <td class="px-4 py-3"> |
1520 | <div class="flex items-center text-sm"> | 1766 | <div class="flex items-center text-sm"> |
1521 | 1767 | ||
1522 | <div | 1768 | <div |
1523 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" | 1769 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" |
1524 | > | 1770 | > |
1525 | <img | 1771 | <img |
1526 | class="object-cover w-full h-full rounded-full" | 1772 | class="object-cover w-full h-full rounded-full" |
1527 | src="https://images.unsplash.com/flagged/photo-1570612861542-284f4c12e75f?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&ixid=eyJhcHBfaWQiOjE3Nzg0fQ" | 1773 | src="https://images.unsplash.com/flagged/photo-1570612861542-284f4c12e75f?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&ixid=eyJhcHBfaWQiOjE3Nzg0fQ" |
1528 | alt="" | 1774 | alt="" |
1529 | loading="lazy" | 1775 | loading="lazy" |
1530 | /> | 1776 | /> |
1531 | <div | 1777 | <div |
1532 | class="absolute inset-0 rounded-full shadow-inner" | 1778 | class="absolute inset-0 rounded-full shadow-inner" |
1533 | aria-hidden="true" | 1779 | aria-hidden="true" |
1534 | ></div> | 1780 | ></div> |
1535 | </div> | 1781 | </div> |
1536 | <div> | 1782 | <div> |
1537 | <p class="font-semibold">Hans Burger</p> | 1783 | <p class="font-semibold">Hans Burger</p> |
1538 | <p class="text-xs text-gray-600 dark:text-gray-400"> | 1784 | <p class="text-xs text-gray-600 dark:text-gray-400"> |
1539 | 10x Developer | 1785 | 10x Developer |
1540 | </p> | 1786 | </p> |
1541 | </div> | 1787 | </div> |
1542 | </div> | 1788 | </div> |
1543 | </td> | 1789 | </td> |
1544 | <td class="px-4 py-3 text-sm"> | 1790 | <td class="px-4 py-3 text-sm"> |
1545 | $ 863.45 | 1791 | $ 863.45 |
1546 | </td> | 1792 | </td> |
1547 | <td class="px-4 py-3 text-xs"> | 1793 | <td class="px-4 py-3 text-xs"> |
1548 | <span | 1794 | <span |
1549 | class="px-2 py-1 font-semibold leading-tight text-green-700 bg-green-100 rounded-full dark:bg-green-700 dark:text-green-100" | 1795 | class="px-2 py-1 font-semibold leading-tight text-green-700 bg-green-100 rounded-full dark:bg-green-700 dark:text-green-100" |
1550 | > | 1796 | > |
1551 | Approved | 1797 | Approved |
1552 | </span> | 1798 | </span> |
1553 | </td> | 1799 | </td> |
1554 | <td class="px-4 py-3 text-sm"> | 1800 | <td class="px-4 py-3 text-sm"> |
1555 | 6/10/2020 | 1801 | 6/10/2020 |
1556 | </td> | 1802 | </td> |
1557 | </tr> | 1803 | </tr> |
1558 | 1804 | ||
1559 | <tr class="text-gray-700 dark:text-gray-400"> | 1805 | <tr class="text-gray-700 dark:text-gray-400"> |
1560 | <td class="px-4 py-3"> | 1806 | <td class="px-4 py-3"> |
1561 | <div class="flex items-center text-sm"> | 1807 | <div class="flex items-center text-sm"> |
1562 | 1808 | ||
1563 | <div | 1809 | <div |
1564 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" | 1810 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" |
1565 | > | 1811 | > |
1566 | <img | 1812 | <img |
1567 | class="object-cover w-full h-full rounded-full" | 1813 | class="object-cover w-full h-full rounded-full" |
1568 | src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&facepad=3&fit=facearea&s=707b9c33066bf8808c934c8ab394dff6" | 1814 | src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&facepad=3&fit=facearea&s=707b9c33066bf8808c934c8ab394dff6" |
1569 | alt="" | 1815 | alt="" |
1570 | loading="lazy" | 1816 | loading="lazy" |
1571 | /> | 1817 | /> |
1572 | <div | 1818 | <div |
1573 | class="absolute inset-0 rounded-full shadow-inner" | 1819 | class="absolute inset-0 rounded-full shadow-inner" |
1574 | aria-hidden="true" | 1820 | aria-hidden="true" |
1575 | ></div> | 1821 | ></div> |
1576 | </div> | 1822 | </div> |
1577 | <div> | 1823 | <div> |
1578 | <p class="font-semibold">Jolina Angelie</p> | 1824 | <p class="font-semibold">Jolina Angelie</p> |
1579 | <p class="text-xs text-gray-600 dark:text-gray-400"> | 1825 | <p class="text-xs text-gray-600 dark:text-gray-400"> |
1580 | Unemployed | 1826 | Unemployed |
1581 | </p> | 1827 | </p> |
1582 | </div> | 1828 | </div> |
1583 | </div> | 1829 | </div> |
1584 | </td> | 1830 | </td> |
1585 | <td class="px-4 py-3 text-sm"> | 1831 | <td class="px-4 py-3 text-sm"> |
1586 | $ 369.95 | 1832 | $ 369.95 |
1587 | </td> | 1833 | </td> |
1588 | <td class="px-4 py-3 text-xs"> | 1834 | <td class="px-4 py-3 text-xs"> |
1589 | <span | 1835 | <span |
1590 | class="px-2 py-1 font-semibold leading-tight text-orange-700 bg-orange-100 rounded-full dark:text-white dark:bg-orange-600" | 1836 | class="px-2 py-1 font-semibold leading-tight text-orange-700 bg-orange-100 rounded-full dark:text-white dark:bg-orange-600" |
1591 | > | 1837 | > |
1592 | Pending | 1838 | Pending |
1593 | </span> | 1839 | </span> |
1594 | </td> | 1840 | </td> |
1595 | <td class="px-4 py-3 text-sm"> | 1841 | <td class="px-4 py-3 text-sm"> |
1596 | 6/10/2020 | 1842 | 6/10/2020 |
1597 | </td> | 1843 | </td> |
1598 | </tr> | 1844 | </tr> |
1599 | 1845 | ||
1600 | <tr class="text-gray-700 dark:text-gray-400"> | 1846 | <tr class="text-gray-700 dark:text-gray-400"> |
1601 | <td class="px-4 py-3"> | 1847 | <td class="px-4 py-3"> |
1602 | <div class="flex items-center text-sm"> | 1848 | <div class="flex items-center text-sm"> |
1603 | 1849 | ||
1604 | <div | 1850 | <div |
1605 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" | 1851 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" |
1606 | > | 1852 | > |
1607 | <img | 1853 | <img |
1608 | class="object-cover w-full h-full rounded-full" | 1854 | class="object-cover w-full h-full rounded-full" |
1609 | src="https://images.unsplash.com/photo-1551069613-1904dbdcda11?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&ixid=eyJhcHBfaWQiOjE3Nzg0fQ" | 1855 | src="https://images.unsplash.com/photo-1551069613-1904dbdcda11?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&ixid=eyJhcHBfaWQiOjE3Nzg0fQ" |
1610 | alt="" | 1856 | alt="" |
1611 | loading="lazy" | 1857 | loading="lazy" |
1612 | /> | 1858 | /> |
1613 | <div | 1859 | <div |
1614 | class="absolute inset-0 rounded-full shadow-inner" | 1860 | class="absolute inset-0 rounded-full shadow-inner" |
1615 | aria-hidden="true" | 1861 | aria-hidden="true" |
1616 | ></div> | 1862 | ></div> |
1617 | </div> | 1863 | </div> |
1618 | <div> | 1864 | <div> |
1619 | <p class="font-semibold">Sarah Curry</p> | 1865 | <p class="font-semibold">Sarah Curry</p> |
1620 | <p class="text-xs text-gray-600 dark:text-gray-400"> | 1866 | <p class="text-xs text-gray-600 dark:text-gray-400"> |
1621 | Designer | 1867 | Designer |
1622 | </p> | 1868 | </p> |
1623 | </div> | 1869 | </div> |
1624 | </div> | 1870 | </div> |
1625 | </td> | 1871 | </td> |
1626 | <td class="px-4 py-3 text-sm"> | 1872 | <td class="px-4 py-3 text-sm"> |
1627 | $ 86.00 | 1873 | $ 86.00 |
1628 | </td> | 1874 | </td> |
1629 | <td class="px-4 py-3 text-xs"> | 1875 | <td class="px-4 py-3 text-xs"> |
1630 | <span | 1876 | <span |
1631 | class="px-2 py-1 font-semibold leading-tight text-red-700 bg-red-100 rounded-full dark:text-red-100 dark:bg-red-700" | 1877 | class="px-2 py-1 font-semibold leading-tight text-red-700 bg-red-100 rounded-full dark:text-red-100 dark:bg-red-700" |
1632 | > | 1878 | > |
1633 | Denied | 1879 | Denied |
1634 | </span> | 1880 | </span> |
1635 | </td> | 1881 | </td> |
1636 | <td class="px-4 py-3 text-sm"> | 1882 | <td class="px-4 py-3 text-sm"> |
1637 | 6/10/2020 | 1883 | 6/10/2020 |
1638 | </td> | 1884 | </td> |
1639 | </tr> | 1885 | </tr> |
1640 | 1886 | ||
1641 | <tr class="text-gray-700 dark:text-gray-400"> | 1887 | <tr class="text-gray-700 dark:text-gray-400"> |
1642 | <td class="px-4 py-3"> | 1888 | <td class="px-4 py-3"> |
1643 | <div class="flex items-center text-sm"> | 1889 | <div class="flex items-center text-sm"> |
1644 | 1890 | ||
1645 | <div | 1891 | <div |
1646 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" | 1892 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" |
1647 | > | 1893 | > |
1648 | <img | 1894 | <img |
1649 | class="object-cover w-full h-full rounded-full" | 1895 | class="object-cover w-full h-full rounded-full" |
1650 | src="https://images.unsplash.com/photo-1551006917-3b4c078c47c9?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&ixid=eyJhcHBfaWQiOjE3Nzg0fQ" | 1896 | src="https://images.unsplash.com/photo-1551006917-3b4c078c47c9?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&ixid=eyJhcHBfaWQiOjE3Nzg0fQ" |
1651 | alt="" | 1897 | alt="" |
1652 | loading="lazy" | 1898 | loading="lazy" |
1653 | /> | 1899 | /> |
1654 | <div | 1900 | <div |
1655 | class="absolute inset-0 rounded-full shadow-inner" | 1901 | class="absolute inset-0 rounded-full shadow-inner" |
1656 | aria-hidden="true" | 1902 | aria-hidden="true" |
1657 | ></div> | 1903 | ></div> |
1658 | </div> | 1904 | </div> |
1659 | <div> | 1905 | <div> |
1660 | <p class="font-semibold">Rulia Joberts</p> | 1906 | <p class="font-semibold">Rulia Joberts</p> |
1661 | <p class="text-xs text-gray-600 dark:text-gray-400"> | 1907 | <p class="text-xs text-gray-600 dark:text-gray-400"> |
1662 | Actress | 1908 | Actress |
1663 | </p> | 1909 | </p> |
1664 | </div> | 1910 | </div> |
1665 | </div> | 1911 | </div> |
1666 | </td> | 1912 | </td> |
1667 | <td class="px-4 py-3 text-sm"> | 1913 | <td class="px-4 py-3 text-sm"> |
1668 | $ 1276.45 | 1914 | $ 1276.45 |
1669 | </td> | 1915 | </td> |
1670 | <td class="px-4 py-3 text-xs"> | 1916 | <td class="px-4 py-3 text-xs"> |
1671 | <span | 1917 | <span |
1672 | class="px-2 py-1 font-semibold leading-tight text-green-700 bg-green-100 rounded-full dark:bg-green-700 dark:text-green-100" | 1918 | class="px-2 py-1 font-semibold leading-tight text-green-700 bg-green-100 rounded-full dark:bg-green-700 dark:text-green-100" |
1673 | > | 1919 | > |
1674 | Approved | 1920 | Approved |
1675 | </span> | 1921 | </span> |
1676 | </td> | 1922 | </td> |
1677 | <td class="px-4 py-3 text-sm"> | 1923 | <td class="px-4 py-3 text-sm"> |
1678 | 6/10/2020 | 1924 | 6/10/2020 |
1679 | </td> | 1925 | </td> |
1680 | </tr> | 1926 | </tr> |
1681 | 1927 | ||
1682 | <tr class="text-gray-700 dark:text-gray-400"> | 1928 | <tr class="text-gray-700 dark:text-gray-400"> |
1683 | <td class="px-4 py-3"> | 1929 | <td class="px-4 py-3"> |
1684 | <div class="flex items-center text-sm"> | 1930 | <div class="flex items-center text-sm"> |
1685 | 1931 | ||
1686 | <div | 1932 | <div |
1687 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" | 1933 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" |
1688 | > | 1934 | > |
1689 | <img | 1935 | <img |
1690 | class="object-cover w-full h-full rounded-full" | 1936 | class="object-cover w-full h-full rounded-full" |
1691 | src="https://images.unsplash.com/photo-1546456073-6712f79251bb?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&ixid=eyJhcHBfaWQiOjE3Nzg0fQ" | 1937 | src="https://images.unsplash.com/photo-1546456073-6712f79251bb?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&ixid=eyJhcHBfaWQiOjE3Nzg0fQ" |
1692 | alt="" | 1938 | alt="" |
1693 | loading="lazy" | 1939 | loading="lazy" |
1694 | /> | 1940 | /> |
1695 | <div | 1941 | <div |
1696 | class="absolute inset-0 rounded-full shadow-inner" | 1942 | class="absolute inset-0 rounded-full shadow-inner" |
1697 | aria-hidden="true" | 1943 | aria-hidden="true" |
1698 | ></div> | 1944 | ></div> |
1699 | </div> | 1945 | </div> |
1700 | <div> | 1946 | <div> |
1701 | <p class="font-semibold">Wenzel Dashington</p> | 1947 | <p class="font-semibold">Wenzel Dashington</p> |
1702 | <p class="text-xs text-gray-600 dark:text-gray-400"> | 1948 | <p class="text-xs text-gray-600 dark:text-gray-400"> |
1703 | Actor | 1949 | Actor |
1704 | </p> | 1950 | </p> |
1705 | </div> | 1951 | </div> |
1706 | </div> | 1952 | </div> |
1707 | </td> | 1953 | </td> |
1708 | <td class="px-4 py-3 text-sm"> | 1954 | <td class="px-4 py-3 text-sm"> |
1709 | $ 863.45 | 1955 | $ 863.45 |
1710 | </td> | 1956 | </td> |
1711 | <td class="px-4 py-3 text-xs"> | 1957 | <td class="px-4 py-3 text-xs"> |
1712 | <span | 1958 | <span |
1713 | class="px-2 py-1 font-semibold leading-tight text-gray-700 bg-gray-100 rounded-full dark:text-gray-100 dark:bg-gray-700" | 1959 | class="px-2 py-1 font-semibold leading-tight text-gray-700 bg-gray-100 rounded-full dark:text-gray-100 dark:bg-gray-700" |
1714 | > | 1960 | > |
1715 | Expired | 1961 | Expired |
1716 | </span> | 1962 | </span> |
1717 | </td> | 1963 | </td> |
1718 | <td class="px-4 py-3 text-sm"> | 1964 | <td class="px-4 py-3 text-sm"> |
1719 | 6/10/2020 | 1965 | 6/10/2020 |
1720 | </td> | 1966 | </td> |
1721 | </tr> | 1967 | </tr> |
1722 | 1968 | ||
1723 | <tr class="text-gray-700 dark:text-gray-400"> | 1969 | <tr class="text-gray-700 dark:text-gray-400"> |
1724 | <td class="px-4 py-3"> | 1970 | <td class="px-4 py-3"> |
1725 | <div class="flex items-center text-sm"> | 1971 | <div class="flex items-center text-sm"> |
1726 | 1972 | ||
1727 | <div | 1973 | <div |
1728 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" | 1974 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" |
1729 | > | 1975 | > |
1730 | <img | 1976 | <img |
1731 | class="object-cover w-full h-full rounded-full" | 1977 | class="object-cover w-full h-full rounded-full" |
1732 | src="https://images.unsplash.com/photo-1502720705749-871143f0e671?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&s=b8377ca9f985d80264279f277f3a67f5" | 1978 | src="https://images.unsplash.com/photo-1502720705749-871143f0e671?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&s=b8377ca9f985d80264279f277f3a67f5" |
1733 | alt="" | 1979 | alt="" |
1734 | loading="lazy" | 1980 | loading="lazy" |
1735 | /> | 1981 | /> |
1736 | <div | 1982 | <div |
1737 | class="absolute inset-0 rounded-full shadow-inner" | 1983 | class="absolute inset-0 rounded-full shadow-inner" |
1738 | aria-hidden="true" | 1984 | aria-hidden="true" |
1739 | ></div> | 1985 | ></div> |
1740 | </div> | 1986 | </div> |
1741 | <div> | 1987 | <div> |
sql/content_roles.sql
File was created | 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) */; | ||
69 |