Commit 6a2a004b16385052d61c3f00de8654b1647c1860

Authored by Андрей Ларионов
1 parent 077a30c8a5

Роли просмотра страниц

Showing 4 changed files with 893 additions and 598 deletions 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
92 @endif
93
94 @if ($cont->url_page == "admin/admin_roles")
95 @if ((($cont->is_admin == 1) && ($admin == 1)) ||
96 (($cont->is_manager == 1) && ($is_manager == 1)))
97 <li class="relative px-6 py-3">
98 <a
99 class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.users') ? 'dark:text-gray-100' : null }}"
100 href="{{ route('admin.admin_roles') }}"
101 >
102 <svg
103 class="w-5 h-5"
104 aria-hidden="true"
105 fill="none"
106 stroke-linecap="round"
107 stroke-linejoin="round"
108 stroke-width="2"
109 viewBox="0 0 24 24"
110 stroke="currentColor"
111 >
112 <path
113 d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"
114 ></path>
115 </svg>
116 <span class="ml-4">Роли администраторов</span>
117 </a>
118 </li>
119 @endif
90 @endif 120 @endif
91 121
92 @if ($admin == 1) 122 @if ($cont->url_page == "admin/admin-users")
93 <!--<li class="relative px-6 py-3"> 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 }}"> 546
500 <a class="w-full" href="{{ route('admin.infobloks.index') }}">Блоки-Дипломы</a> 547 @if ($cont->url_page == "admin/categories")
501 </li> 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
502 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 577
508
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 <li class="relative px-6 py-3">
993 <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 994 <svg
782 class="w-5 h-5" 995 class="w-5 h-5"
783 aria-hidden="true" 996 aria-hidden="true"
784 fill="none" 997 fill="none"
785 stroke-linecap="round" 998 stroke-linecap="round"
786 stroke-linejoin="round" 999 stroke-linejoin="round"
787 stroke-width="2" 1000 stroke-width="2"
788 viewBox="0 0 24 24" 1001 viewBox="0 0 24 24"
789 stroke="currentColor" 1002 stroke="currentColor"
790 > 1003 >
791 <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> 1004 <path
1005 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"
1006 ></path>
792 </svg> 1007 </svg>
793 <span class="ml-4">Заявки на рассылку</span> 1008 <span class="ml-4">Роли пользователей</span>
794 </a> 1009 </a>
795 </li> 1010 </li>
796 1011 @endif
1012 @endif
797 1013
1014 @if ($cont->url_page == "admin/basedata")
1015 @if ((($cont->is_admin == 1) && ($admin == 1)) ||
1016 (($cont->is_manager == 1) && ($is_manager == 1)))
798 <li class="relative px-6 py-3"> 1017 <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') }}"> 1018 <a
800 <svg 1019 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 > 1020 >
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 1021 <svg
821 class="w-5 h-5" 1022 class="w-5 h-5"
822 aria-hidden="true" 1023 aria-hidden="true"
823 fill="none" 1024 fill="none"
824 stroke-linecap="round" 1025 stroke-linecap="round"
825 stroke-linejoin="round" 1026 stroke-linejoin="round"
826 stroke-width="2" 1027 stroke-width="2"
827 viewBox="0 0 24 24" 1028 viewBox="0 0 24 24"
828 stroke="currentColor" 1029 stroke="currentColor"
829 > 1030 >
830 <path 1031 <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> 1032 </svg>
834 <span class="ml-4">Медиа</span> 1033 <span class="ml-4">Базы данных</span>
835 </a> 1034 </a>
836 </li> 1035 </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 1036 @endif
1037 @endif
859 1038
860 <li class="relative px-6 py-3"> 1039 @if ($cont->url_page == "admin/education")
861 <a 1040 @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') }}" 1041 (($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"> 1042 <li class="relative px-6 py-3">
881 <a 1043 <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') }}" 1044 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 > 1045 >
884 <svg 1046 <svg
885 class="w-5 h-5" 1047 class="w-5 h-5"
886 aria-hidden="true" 1048 aria-hidden="true"
887 fill="none" 1049 fill="none"
888 stroke-linecap="round" 1050 stroke-linecap="round"
889 stroke-linejoin="round" 1051 stroke-linejoin="round"
890 stroke-width="2" 1052 stroke-width="2"
891 viewBox="0 0 24 24" 1053 viewBox="0 0 24 24"
892 stroke="currentColor" 1054 stroke="currentColor"
893 > 1055 >
894 <path 1056 <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" 1057 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> 1058 ></path>
897 </svg> 1059 </svg>
898 <span class="ml-4">Учебн.заведения</span> 1060 <span class="ml-4">Учебн.заведения</span>
899 </a> 1061 </a>
900 </li> 1062 </li>
901 <li class="relative px-6 py-3"> 1063 @endif
902 <a 1064 @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') }}" 1065
904 > 1066 @if ($cont->url_page == "admin/statics")
905 <svg 1067 @if ((($cont->is_admin == 1) && ($admin == 1)) ||
906 class="w-5 h-5" 1068 (($cont->is_manager == 1) && ($is_manager == 1)))
907 aria-hidden="true" 1069 <li class="relative px-6 py-3">
908 fill="none" 1070 <a
909 stroke-linecap="round" 1071 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 > 1072 >
915 <path 1073 <svg
916 d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z" 1074 class="w-5 h-5"
917 ></path> 1075 aria-hidden="true"
918 <path d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"></path> 1076 fill="none"
919 </svg> 1077 stroke-linecap="round"
920 <span class="ml-4">Статистика</span> 1078 stroke-linejoin="round"
921 </a> 1079 stroke-width="2"
922 </li> 1080 viewBox="0 0 24 24"
1081 stroke="currentColor"
1082 >
1083 <path
1084 d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"
1085 ></path>
1086 <path d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"></path>
1087 </svg>
1088 <span class="ml-4">Статистика</span>
1089 </a>
1090 </li>
1091 @endif
1092 @endif
1093
1094 @if ($cont->url_page == "admin/messages")
1095 @if ((($cont->is_admin == 1) && ($admin == 1)) ||
1096 (($cont->is_manager == 1) && ($is_manager == 1)))
923 <li class="relative px-6 py-3"> 1097 <li class="relative px-6 py-3">
924 <a 1098 <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') }}" 1099 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 > 1100 >
927 <svg 1101 <svg
928 class="w-5 h-5" 1102 class="w-5 h-5"
929 aria-hidden="true" 1103 aria-hidden="true"
930 fill="none" 1104 fill="none"
931 stroke-linecap="round" 1105 stroke-linecap="round"
932 stroke-linejoin="round" 1106 stroke-linejoin="round"
933 stroke-width="2" 1107 stroke-width="2"
934 viewBox="0 0 24 24" 1108 viewBox="0 0 24 24"
935 stroke="currentColor" 1109 stroke="currentColor"
936 > 1110 >
937 <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> 1111 <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path>
938 </svg> 1112 </svg>
939 <span class="ml-4">Сообщения все</span> 1113 <span class="ml-4">Сообщения все</span>
940 </a> 1114 </a>
941 </li> 1115 </li>
1116 @endif
1117 @endif
1118
1119 @if ($cont->url_page == "admin/reclames")
1120 @if ((($cont->is_admin == 1) && ($admin == 1)) ||
1121 (($cont->is_manager == 1) && ($is_manager == 1)))
942 <li class="relative px-6 py-3"> 1122 <li class="relative px-6 py-3">
943 <a 1123 <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') }}" 1124 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 > 1125 >
946 <svg 1126 <svg
947 class="w-5 h-5" 1127 class="w-5 h-5"
948 aria-hidden="true" 1128 aria-hidden="true"
949 fill="none" 1129 fill="none"
950 stroke-linecap="round" 1130 stroke-linecap="round"
951 stroke-linejoin="round" 1131 stroke-linejoin="round"
952 stroke-width="2" 1132 stroke-width="2"
953 viewBox="0 0 24 24" 1133 viewBox="0 0 24 24"
954 stroke="currentColor" 1134 stroke="currentColor"
955 > 1135 >
956 <path 1136 <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" 1137 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> 1138 ></path>
959 </svg> 1139 </svg>
960 <span class="ml-4">Реклама</span> 1140 <span class="ml-4">Реклама</span>
961 </a> 1141 </a>
962 </li> 1142 </li>
1143 @endif
1144 @endif
1145 @endforeach
1146
963 <!-- Справочники --> 1147 <!-- Справочники -->
964 <li class="relative px-6 py-3" x-data="{ open2: false }"> 1148 <li class="relative px-6 py-3" x-data="{ open2: false }">
965 <button 1149 <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" 1150 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" 1151 @click="open2=!open2"
968 aria-haspopup="true"> 1152 aria-haspopup="true">
969 <span class="inline-flex items-center"> 1153 <span class="inline-flex items-center">
970 <svg 1154 <svg
971 class="w-5 h-5" 1155 class="w-5 h-5"
972 aria-hidden="true" 1156 aria-hidden="true"
973 fill="none" 1157 fill="none"
974 stroke-linecap="round" 1158 stroke-linecap="round"
975 stroke-linejoin="round" 1159 stroke-linejoin="round"
976 stroke-width="2" 1160 stroke-width="2"
977 viewBox="0 0 24 24" 1161 viewBox="0 0 24 24"
978 stroke="currentColor"> 1162 stroke="currentColor">
979 <path 1163 <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" 1164 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> 1165 ></path>
982 </svg> 1166 </svg>
983 <span class="ml-4">Справочники</span> 1167 <span class="ml-4">Справочники</span>
984 </span> 1168 </span>
985 <svg 1169 <svg
986 class="w-4 h-4" 1170 class="w-4 h-4"
987 aria-hidden="true" 1171 aria-hidden="true"
988 fill="currentColor" 1172 fill="currentColor"
989 viewBox="0 0 20 20" 1173 viewBox="0 0 20 20"
990 > 1174 >
991 <path 1175 <path
992 fill-rule="evenodd" 1176 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" 1177 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" 1178 clip-rule="evenodd"
995 ></path> 1179 ></path>
996 </svg> 1180 </svg>
997 </button> 1181 </button>
998 <template x-if="open2"> 1182 <template x-if="open2">
999 <ul 1183 <ul
1000 x-transition:enter="transition-all ease-in-out duration-300" 1184 x-transition:enter="transition-all ease-in-out duration-300"
1001 x-transition:enter-start="opacity-25 max-h-0" 1185 x-transition:enter-start="opacity-25 max-h-0"
1002 x-transition:enter-end="opacity-100 max-h-xl" 1186 x-transition:enter-end="opacity-100 max-h-xl"
1003 x-transition:leave="transition-all ease-in-out duration-300" 1187 x-transition:leave="transition-all ease-in-out duration-300"
1004 x-transition:leave-start="opacity-100 max-h-xl" 1188 x-transition:leave-start="opacity-100 max-h-xl"
1005 x-transition:leave-end="opacity-0 max-h-0" 1189 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" 1190 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" 1191 aria-label="submenu"
1008 > 1192 >
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 }}"> 1193 @foreach ($contents as $cont)
1010 <a class="w-full" href="{{ route('admin.job-titles.index') }}">Должности</a> 1194 @if ($cont->url_page == "admin/job-titles")
1011 </li> 1195 @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 }}"> 1196 (($cont->is_manager == 1) && ($is_manager == 1)))
1013 <a class="w-full" href="{{ route('admin.categories.index') }}">Категории вакансий</a> 1197 <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> 1198 <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 }}"> 1199 </li>
1016 <a class="w-full" href="{{ route('admin.category-emp.index') }}">Категории работодателей</a> 1200 @endif
1017 </li> 1201 @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 }}"> 1202
1019 <a class="w-full" href="{{ route('admin.infobloks.index') }}">Блоки-Дипломы</a> 1203 @if ($cont->url_page == "admin/categories")
1020 </li> 1204 @if ((($cont->is_admin == 1) && ($admin == 1)) ||
1205 (($cont->is_manager == 1) && ($is_manager == 1)))
1206 <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 }}">
1207 <a class="w-full" href="{{ route('admin.categories.index') }}">Категории вакансий</a>
1208 </li>
1209 @endif
1210 @endif
1021 1211
1212 @if ($cont->url_page == "admin/category-emp")
1213 @if ((($cont->is_admin == 1) && ($admin == 1)) ||
1214 (($cont->is_manager == 1) && ($is_manager == 1)))
1215 <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 }}">
1216 <a class="w-full" href="{{ route('admin.category-emp.index') }}">Категории работодателей</a>
1217 </li>
1218 @endif
1219 @endif
1220
1221 @if ($cont->url_page == "admin/infobloks")
1222 @if ((($cont->is_admin == 1) && ($admin == 1)) ||
1223 (($cont->is_manager == 1) && ($is_manager == 1)))
1224 <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 }}">
1225 <a class="w-full" href="{{ route('admin.infobloks.index') }}">Блоки-Дипломы</a>
1226 </li>
1227 @endif
1228 @endif
1229 @endforeach
1022 </ul> 1230 </ul>
1023 </template> 1231 </template>
1024 </li> 1232 </li>
1025 1233
1026 <!-- Редактор --> 1234 <!-- Редактор -->
1027 <li class="relative px-6 py-3"> 1235 <li class="relative px-6 py-3">
1028 <button 1236 <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" 1237 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" 1238 @click="togglePagesMenu"
1031 aria-haspopup="true" 1239 aria-haspopup="true"
1032 > 1240 >
1033 <span class="inline-flex items-center"> 1241 <span class="inline-flex items-center">
1034 <svg 1242 <svg
1035 class="w-5 h-5" 1243 class="w-5 h-5"
1036 aria-hidden="true" 1244 aria-hidden="true"
1037 fill="none" 1245 fill="none"
1038 stroke-linecap="round" 1246 stroke-linecap="round"
1039 stroke-linejoin="round" 1247 stroke-linejoin="round"
1040 stroke-width="2" 1248 stroke-width="2"
1041 viewBox="0 0 24 24" 1249 viewBox="0 0 24 24"
1042 stroke="currentColor" 1250 stroke="currentColor"
1043 > 1251 >
1044 <path 1252 <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" 1253 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> 1254 ></path>
1047 </svg> 1255 </svg>
1048 <span class="ml-4">Редактор</span> 1256 <span class="ml-4">Редактор</span>
1049 </span> 1257 </span>
1050 <svg 1258 <svg
1051 class="w-4 h-4" 1259 class="w-4 h-4"
1052 aria-hidden="true" 1260 aria-hidden="true"
1053 fill="currentColor" 1261 fill="currentColor"
1054 viewBox="0 0 20 20" 1262 viewBox="0 0 20 20"
1055 > 1263 >
1056 <path 1264 <path
1057 fill-rule="evenodd" 1265 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" 1266 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" 1267 clip-rule="evenodd"
1060 ></path> 1268 ></path>
1061 </svg> 1269 </svg>
1062 </button> 1270 </button>
1063 <template x-if="isPagesMenuOpen"> 1271 <template x-if="isPagesMenuOpen">
1064 <ul 1272 <ul
1065 x-transition:enter="transition-all ease-in-out duration-300" 1273 x-transition:enter="transition-all ease-in-out duration-300"
1066 x-transition:enter-start="opacity-25 max-h-0" 1274 x-transition:enter-start="opacity-25 max-h-0"
1067 x-transition:enter-end="opacity-100 max-h-xl" 1275 x-transition:enter-end="opacity-100 max-h-xl"
1068 x-transition:leave="transition-all ease-in-out duration-300" 1276 x-transition:leave="transition-all ease-in-out duration-300"
1069 x-transition:leave-start="opacity-100 max-h-xl" 1277 x-transition:leave-start="opacity-100 max-h-xl"
1070 x-transition:leave-end="opacity-0 max-h-0" 1278 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" 1279 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" 1280 aria-label="submenu"
1073 > 1281 >
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 }}"> 1282 @foreach ($contents as $cont)
1075 <a class="w-full" href="{{ route('admin.editor-site') }}">Редактор сайта</a> 1283 @if ($cont->url_page == "admin/editor-site")
1076 </li> 1284 @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 }}"> 1285 (($cont->is_manager == 1) && ($is_manager == 1)))
1078 <a class="w-full" href="{{ route('admin.edit-blocks') }}">Шапка-футер сайта</a> 1286 <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> 1287 <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 }}"> 1288 </li>
1081 <a class="w-full" href="{{ route('admin.editor-seo') }}">SEO сайта</a> 1289 @endif
1082 </li> 1290 @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 }}"> 1291
1084 <a class="w-full" href="{{ route('admin.editor-pages') }}">Редактор страниц</a> 1292 @if ($cont->url_page == "admin/edit-blocks")
1085 </li> 1293 @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 }}"> 1294 (($cont->is_manager == 1) && ($is_manager == 1)))
1087 <a class="w-full" href="{{ route('admin.job-titles-main') }}">Должности на главной</a> 1295 <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> 1296 <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 }}"> 1297 </li>
1090 <a class="w-full" href="{{ route('admin.employers-main') }}">Работодатели на главной</a> 1298 @endif
1091 </li> 1299 @endif
1300
1301 @if ($cont->url_page == "admin/editor-seo")
1302 @if ((($cont->is_admin == 1) && ($admin == 1)) ||
1303 (($cont->is_manager == 1) && ($is_manager == 1)))
1304 <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 }}">
1305 <a class="w-full" href="{{ route('admin.editor-seo') }}">SEO сайта</a>
1306 </li>
1307 @endif
1308 @endif
1309
1310 @if ($cont->url_page == "admin/editor-pages")
1311 @if ((($cont->is_admin == 1) && ($admin == 1)) ||
1312 (($cont->is_manager == 1) && ($is_manager == 1)))
1313 <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 }}">
1314 <a class="w-full" href="{{ route('admin.editor-pages') }}">Редактор страниц</a>
1315 </li>
1316 @endif
1317 @endif
1318
1319 @if ($cont->url_page == "admin/job-titles-main")
1320 @if ((($cont->is_admin == 1) && ($admin == 1)) ||
1321 (($cont->is_manager == 1) && ($is_manager == 1)))
1322 <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 }}">
1323 <a class="w-full" href="{{ route('admin.job-titles-main') }}">Должности на главной</a>
1324 </li>
1325 @endif
1326 @endif
1327
1328 @if ($cont->url_page == "admin/employers-main")
1329 @if ((($cont->is_admin == 1) && ($admin == 1)) ||
1330 (($cont->is_manager == 1) && ($is_manager == 1)))
1331 <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 }}">
1332 <a class="w-full" href="{{ route('admin.employers-main') }}">Работодатели на главной</a>
1333 </li>
1334 @endif
1335 @endif
1092 1336
1337 @endforeach
1093 </ul> 1338 </ul>
1094 </template> 1339 </template>
1095 </li> 1340 </li>
1096 </ul> 1341 </ul>
1097 <!--<div class="px-6 my-6"> 1342 <!--<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"> 1343 <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 1344 Create account
1100 <span class="ml-2" aria-hidden="true">+</span> 1345 <span class="ml-2" aria-hidden="true">+</span>
1101 </button> 1346 </button>
1102 </div>--> 1347 </div>-->
1103 </div> 1348 </div>
1104 </aside> 1349 </aside>
1105 <div class="flex flex-col flex-1 w-full"> 1350 <div class="flex flex-col flex-1 w-full">
1106 <header class="z-10 py-4 bg-white shadow-md dark:bg-gray-800"> 1351 <header class="z-10 py-4 bg-white shadow-md dark:bg-gray-800">
1107 <div 1352 <div
1108 class="container flex items-center justify-between h-full px-6 mx-auto text-purple-600 dark:text-purple-300" 1353 class="container flex items-center justify-between h-full px-6 mx-auto text-purple-600 dark:text-purple-300"
1109 > 1354 >
1110 <!-- Mobile hamburger --> 1355 <!-- Mobile hamburger -->
1111 <button 1356 <button
1112 class="p-1 mr-5 -ml-1 rounded-md md:hidden focus:outline-none focus:shadow-outline-purple" 1357 class="p-1 mr-5 -ml-1 rounded-md md:hidden focus:outline-none focus:shadow-outline-purple"
1113 @click="toggleSideMenu" 1358 @click="toggleSideMenu"
1114 aria-label="Menu" 1359 aria-label="Menu"
1115 > 1360 >
1116 <svg 1361 <svg
1117 class="w-6 h-6" 1362 class="w-6 h-6"
1118 aria-hidden="true" 1363 aria-hidden="true"
1119 fill="currentColor" 1364 fill="currentColor"
1120 viewBox="0 0 20 20" 1365 viewBox="0 0 20 20"
1121 > 1366 >
1122 <path 1367 <path
1123 fill-rule="evenodd" 1368 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" 1369 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" 1370 clip-rule="evenodd"
1126 ></path> 1371 ></path>
1127 </svg> 1372 </svg>
1128 </button> 1373 </button>
1129 <!-- Search input --> 1374 <!-- Search input -->
1130 <div class="flex justify-center flex-1 lg:mr-32"> 1375 <div class="flex justify-center flex-1 lg:mr-32">
1131 <div 1376 <div
1132 class="relative w-full max-w-xl mr-6 focus-within:text-purple-500" 1377 class="relative w-full max-w-xl mr-6 focus-within:text-purple-500"
1133 > 1378 >
1134 1379
1135 @yield('search') 1380 @yield('search')
1136 </div> 1381 </div>
1137 </div> 1382 </div>
1138 <ul class="flex items-center flex-shrink-0 space-x-6"> 1383 <ul class="flex items-center flex-shrink-0 space-x-6">
1139 <!-- Theme toggler --> 1384 <!-- Theme toggler -->
1140 <li class="flex"> 1385 <li class="flex">
1141 <button 1386 <button
1142 class="rounded-md focus:outline-none focus:shadow-outline-purple" 1387 class="rounded-md focus:outline-none focus:shadow-outline-purple"
1143 @click="toggleTheme" 1388 @click="toggleTheme"
1144 aria-label="Toggle color mode" 1389 aria-label="Toggle color mode"
1145 > 1390 >
1146 <template x-if="!dark"> 1391 <template x-if="!dark">
1147 <svg 1392 <svg
1148 class="w-5 h-5" 1393 class="w-5 h-5"
1149 aria-hidden="true" 1394 aria-hidden="true"
1150 fill="currentColor" 1395 fill="currentColor"
1151 viewBox="0 0 20 20" 1396 viewBox="0 0 20 20"
1152 > 1397 >
1153 <path 1398 <path
1154 d="M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z" 1399 d="M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"
1155 ></path> 1400 ></path>
1156 </svg> 1401 </svg>
1157 </template> 1402 </template>
1158 <template x-if="dark"> 1403 <template x-if="dark">
1159 <svg 1404 <svg
1160 class="w-5 h-5" 1405 class="w-5 h-5"
1161 aria-hidden="true" 1406 aria-hidden="true"
1162 fill="currentColor" 1407 fill="currentColor"
1163 viewBox="0 0 20 20" 1408 viewBox="0 0 20 20"
1164 > 1409 >
1165 <path 1410 <path
1166 fill-rule="evenodd" 1411 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" 1412 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" 1413 clip-rule="evenodd"
1169 ></path> 1414 ></path>
1170 </svg> 1415 </svg>
1171 </template> 1416 </template>
1172 </button> 1417 </button>
1173 </li> 1418 </li>
1174 <!-- Notifications menu --> 1419 <!-- Notifications menu -->
1175 <li class="relative"> 1420 <li class="relative">
1176 <button 1421 <button
1177 class="relative align-middle rounded-md focus:outline-none focus:shadow-outline-purple" 1422 class="relative align-middle rounded-md focus:outline-none focus:shadow-outline-purple"
1178 @click="toggleNotificationsMenu" 1423 @click="toggleNotificationsMenu"
1179 @keydown.escape="closeNotificationsMenu" 1424 @keydown.escape="closeNotificationsMenu"
1180 aria-label="Notifications" 1425 aria-label="Notifications"
1181 aria-haspopup="true" 1426 aria-haspopup="true"
1182 > 1427 >
1183 <svg 1428 <svg
1184 class="w-5 h-5" 1429 class="w-5 h-5"
1185 aria-hidden="true" 1430 aria-hidden="true"
1186 fill="currentColor" 1431 fill="currentColor"
1187 viewBox="0 0 20 20" 1432 viewBox="0 0 20 20"
1188 > 1433 >
1189 <path 1434 <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" 1435 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> 1436 ></path>
1192 </svg> 1437 </svg>
1193 <!-- Notification badge --> 1438 <!-- Notification badge -->
1194 <span 1439 <span
1195 aria-hidden="true" 1440 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" 1441 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> 1442 ></span>
1198 </button> 1443 </button>
1199 <template x-if="isNotificationsMenuOpen"> 1444 <template x-if="isNotificationsMenuOpen">
1200 <ul 1445 <ul
1201 x-transition:leave="transition ease-in duration-150" 1446 x-transition:leave="transition ease-in duration-150"
1202 x-transition:leave-start="opacity-100" 1447 x-transition:leave-start="opacity-100"
1203 x-transition:leave-end="opacity-0" 1448 x-transition:leave-end="opacity-0"
1204 @click.away="closeNotificationsMenu" 1449 @click.away="closeNotificationsMenu"
1205 @keydown.escape="closeNotificationsMenu" 1450 @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" 1451 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 > 1452 >
1208 <li class="flex"> 1453 <li class="flex">
1209 <a 1454 <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" 1455 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') }}" 1456 href="{{ route('admin.admin-messages') }}"
1212 > 1457 >
1213 <span>Сообщения</span> 1458 <span>Сообщения</span>
1214 @if($MsgCount > 0) 1459 @if($MsgCount > 0)
1215 <span 1460 <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" 1461 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 > 1462 >
1218 1463
1219 {{ $MsgCount }} 1464 {{ $MsgCount }}
1220 </span> 1465 </span>
1221 @endif 1466 @endif
1222 </a> 1467 </a>
1223 </li> 1468 </li>
1224 <!--<li class="flex"> 1469 <!--<li class="flex">
1225 <a 1470 <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" 1471 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="#" 1472 href="#"
1228 > 1473 >
1229 <span>Логи</span> 1474 <span>Логи</span>
1230 </a> 1475 </a>
1231 </li>--> 1476 </li>-->
1232 </ul> 1477 </ul>
1233 </template> 1478 </template>
1234 </li> 1479 </li>
1235 <!-- Profile menu --> 1480 <!-- Profile menu -->
1236 <li class="relative"> 1481 <li class="relative">
1237 <button 1482 <button
1238 class="align-middle rounded-full focus:shadow-outline-purple focus:outline-none" 1483 class="align-middle rounded-full focus:shadow-outline-purple focus:outline-none"
1239 @click="toggleProfileMenu" 1484 @click="toggleProfileMenu"
1240 @keydown.escape="closeProfileMenu" 1485 @keydown.escape="closeProfileMenu"
1241 aria-label="Account" 1486 aria-label="Account"
1242 aria-haspopup="true" 1487 aria-haspopup="true"
1243 > 1488 >
1244 <img 1489 <img
1245 class="object-cover w-8 h-8 rounded-full" 1490 class="object-cover w-8 h-8 rounded-full"
1246 src="{{ asset('assets/img/profile.jpg') }}" 1491 src="{{ asset('assets/img/profile.jpg') }}"
1247 alt="" 1492 alt=""
1248 aria-hidden="true" 1493 aria-hidden="true"
1249 /> 1494 />
1250 </button> 1495 </button>
1251 <template x-if="isProfileMenuOpen"> 1496 <template x-if="isProfileMenuOpen">
1252 <ul 1497 <ul
1253 x-transition:leave="transition ease-in duration-150" 1498 x-transition:leave="transition ease-in duration-150"
1254 x-transition:leave-start="opacity-100" 1499 x-transition:leave-start="opacity-100"
1255 x-transition:leave-end="opacity-0" 1500 x-transition:leave-end="opacity-0"
1256 @click.away="closeProfileMenu" 1501 @click.away="closeProfileMenu"
1257 @keydown.escape="closeProfileMenu" 1502 @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" 1503 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" 1504 aria-label="submenu"
1260 > 1505 >
1261 <li class="flex"> 1506 <li class="flex">
1262 <a 1507 <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" 1508 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') }}" 1509 href="{{ route('admin.profile') }}"
1265 > 1510 >
1266 <svg 1511 <svg
1267 class="w-4 h-4 mr-3" 1512 class="w-4 h-4 mr-3"
1268 aria-hidden="true" 1513 aria-hidden="true"
1269 fill="none" 1514 fill="none"
1270 stroke-linecap="round" 1515 stroke-linecap="round"
1271 stroke-linejoin="round" 1516 stroke-linejoin="round"
1272 stroke-width="2" 1517 stroke-width="2"
1273 viewBox="0 0 24 24" 1518 viewBox="0 0 24 24"
1274 stroke="currentColor" 1519 stroke="currentColor"
1275 > 1520 >
1276 <path 1521 <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" 1522 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> 1523 ></path>
1279 </svg> 1524 </svg>
1280 <span>Профиль</span> 1525 <span>Профиль</span>
1281 </a> 1526 </a>
1282 </li> 1527 </li>
1283 <li class="flex"> 1528 <li class="flex">
1284 <a 1529 <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" 1530 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') }}" 1531 href="{{ route('admin.config') }}"
1287 > 1532 >
1288 <svg 1533 <svg
1289 class="w-4 h-4 mr-3" 1534 class="w-4 h-4 mr-3"
1290 aria-hidden="true" 1535 aria-hidden="true"
1291 fill="none" 1536 fill="none"
1292 stroke-linecap="round" 1537 stroke-linecap="round"
1293 stroke-linejoin="round" 1538 stroke-linejoin="round"
1294 stroke-width="2" 1539 stroke-width="2"
1295 viewBox="0 0 24 24" 1540 viewBox="0 0 24 24"
1296 stroke="currentColor" 1541 stroke="currentColor"
1297 > 1542 >
1298 <path 1543 <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" 1544 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> 1545 ></path>
1301 <path d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path> 1546 <path d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
1302 </svg> 1547 </svg>
1303 <span>Настройки</span> 1548 <span>Настройки</span>
1304 </a> 1549 </a>
1305 </li> 1550 </li>
1306 <li class="flex"> 1551 <li class="flex">
1307 <a 1552 <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" 1553 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') }}" 1554 href="{{ route('admin.logout') }}"
1310 > 1555 >
1311 <svg 1556 <svg
1312 class="w-4 h-4 mr-3" 1557 class="w-4 h-4 mr-3"
1313 aria-hidden="true" 1558 aria-hidden="true"
1314 fill="none" 1559 fill="none"
1315 stroke-linecap="round" 1560 stroke-linecap="round"
1316 stroke-linejoin="round" 1561 stroke-linejoin="round"
1317 stroke-width="2" 1562 stroke-width="2"
1318 viewBox="0 0 24 24" 1563 viewBox="0 0 24 24"
1319 stroke="currentColor" 1564 stroke="currentColor"
1320 > 1565 >
1321 <path 1566 <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" 1567 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> 1568 ></path>
1324 </svg> 1569 </svg>
1325 <span>Выход</span> 1570 <span>Выход</span>
1326 </a> 1571 </a>
1327 </li> 1572 </li>
1328 </ul> 1573 </ul>
1329 </template> 1574 </template>
1330 </li> 1575 </li>
1331 </ul> 1576 </ul>
1332 </div> 1577 </div>
1333 </header> 1578 </header>
1334 <main class="h-full overflow-y-auto"> 1579 <main class="h-full overflow-y-auto">
1335 <div class="container px-6 mx-auto grid"> 1580 <div class="container px-6 mx-auto grid">
1336 <h2 1581 <h2
1337 class="my-6 text-2xl font-semibold text-gray-700 dark:text-gray-200" 1582 class="my-6 text-2xl font-semibold text-gray-700 dark:text-gray-200"
1338 > 1583 >
1339 {{$title}} 1584 {{$title}}
1340 </h2> 1585 </h2>
1341 <!-- CTA --> 1586 <!-- CTA -->
1342 <a 1587 <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" 1588 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') }}" 1589 href="{{ route('admin.admin-users') }}"
1345 > 1590 >
1346 <div class="flex items-center"> 1591 <div class="flex items-center">
1347 <svg 1592 <svg
1348 class="w-5 h-5 mr-2" 1593 class="w-5 h-5 mr-2"
1349 fill="currentColor" 1594 fill="currentColor"
1350 viewBox="0 0 20 20" 1595 viewBox="0 0 20 20"
1351 > 1596 >
1352 <path 1597 <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" 1598 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> 1599 ></path>
1355 </svg> 1600 </svg>
1356 <span>Контент для админов</span> 1601 <span>Контент для админов</span>
1357 </div> 1602 </div>
1358 <span>Список админов &RightArrow;</span> 1603 <span>Список админов &RightArrow;</span>
1359 </a> 1604 </a>
1360 1605
1361 @if ($message = Session::get('success')) 1606 @if ($message = Session::get('success'))
1362 <section> 1607 <section>
1363 <div class="alert alert-success alert-dismissible mt-0" role="alert"> 1608 <div class="alert alert-success alert-dismissible mt-0" role="alert">
1364 <button type="button" class="close" data-dismiss="alert" aria-label="Закрыть"> 1609 <button type="button" class="close" data-dismiss="alert" aria-label="Закрыть">
1365 <span aria-hidden="true">&times;</span> 1610 <span aria-hidden="true">&times;</span>
1366 </button> 1611 </button>
1367 {{ $message }} 1612 {{ $message }}
1368 </div> 1613 </div>
1369 </section> 1614 </section>
1370 @endif 1615 @endif
1371 1616
1372 @if ($errors->any()) 1617 @if ($errors->any())
1373 <section> 1618 <section>
1374 <div class="alert alert-danger alert-dismissible mt-4" role="alert"> 1619 <div class="alert alert-danger alert-dismissible mt-4" role="alert">
1375 <button type="button" class="close" data-dismiss="alert" aria-label="Закрыть"> 1620 <button type="button" class="close" data-dismiss="alert" aria-label="Закрыть">
1376 <span aria-hidden="true">&times;</span> 1621 <span aria-hidden="true">&times;</span>
1377 </button> 1622 </button>
1378 <ul class="mb-0"> 1623 <ul class="mb-0">
1379 @foreach ($errors->all() as $error) 1624 @foreach ($errors->all() as $error)
1380 <li>{{ $error }}</li> 1625 <li>{{ $error }}</li>
1381 @endforeach 1626 @endforeach
1382 </ul> 1627 </ul>
1383 </div> 1628 </div>
1384 </section> 1629 </section>
1385 @endif 1630 @endif
1386 1631
1387 @yield('content') 1632 @yield('content')
1388 1633
1389 <!-- Cards 1634 <!-- Cards
1390 <div class="grid gap-6 mb-8 md:grid-cols-2 xl:grid-cols-4"> 1635 <div class="grid gap-6 mb-8 md:grid-cols-2 xl:grid-cols-4">
1391 1636
1392 <div 1637 <div
1393 class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800" 1638 class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800"
1394 > 1639 >
1395 <div 1640 <div
1396 class="p-3 mr-4 text-orange-500 bg-orange-100 rounded-full dark:text-orange-100 dark:bg-orange-500" 1641 class="p-3 mr-4 text-orange-500 bg-orange-100 rounded-full dark:text-orange-100 dark:bg-orange-500"
1397 > 1642 >
1398 <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> 1643 <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
1399 <path 1644 <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" 1645 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> 1646 ></path>
1402 </svg> 1647 </svg>
1403 </div> 1648 </div>
1404 <div> 1649 <div>
1405 <p 1650 <p
1406 class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400" 1651 class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400"
1407 > 1652 >
1408 Total clients 1653 Total clients
1409 </p> 1654 </p>
1410 <p 1655 <p
1411 class="text-lg font-semibold text-gray-700 dark:text-gray-200" 1656 class="text-lg font-semibold text-gray-700 dark:text-gray-200"
1412 > 1657 >
1413 6389 1658 6389
1414 </p> 1659 </p>
1415 </div> 1660 </div>
1416 </div> 1661 </div>
1417 1662
1418 <div 1663 <div
1419 class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800" 1664 class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800"
1420 > 1665 >
1421 <div 1666 <div
1422 class="p-3 mr-4 text-green-500 bg-green-100 rounded-full dark:text-green-100 dark:bg-green-500" 1667 class="p-3 mr-4 text-green-500 bg-green-100 rounded-full dark:text-green-100 dark:bg-green-500"
1423 > 1668 >
1424 <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> 1669 <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
1425 <path 1670 <path
1426 fill-rule="evenodd" 1671 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" 1672 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" 1673 clip-rule="evenodd"
1429 ></path> 1674 ></path>
1430 </svg> 1675 </svg>
1431 </div> 1676 </div>
1432 <div> 1677 <div>
1433 <p 1678 <p
1434 class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400" 1679 class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400"
1435 > 1680 >
1436 Account balance 1681 Account balance
1437 </p> 1682 </p>
1438 <p 1683 <p
1439 class="text-lg font-semibold text-gray-700 dark:text-gray-200" 1684 class="text-lg font-semibold text-gray-700 dark:text-gray-200"
1440 > 1685 >
1441 $ 46,760.89 1686 $ 46,760.89
1442 </p> 1687 </p>
1443 </div> 1688 </div>
1444 </div> 1689 </div>
1445 1690
1446 <div 1691 <div
1447 class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800" 1692 class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800"
1448 > 1693 >
1449 <div 1694 <div
1450 class="p-3 mr-4 text-blue-500 bg-blue-100 rounded-full dark:text-blue-100 dark:bg-blue-500" 1695 class="p-3 mr-4 text-blue-500 bg-blue-100 rounded-full dark:text-blue-100 dark:bg-blue-500"
1451 > 1696 >
1452 <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> 1697 <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
1453 <path 1698 <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" 1699 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> 1700 ></path>
1456 </svg> 1701 </svg>
1457 </div> 1702 </div>
1458 <div> 1703 <div>
1459 <p 1704 <p
1460 class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400" 1705 class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400"
1461 > 1706 >
1462 New sales 1707 New sales
1463 </p> 1708 </p>
1464 <p 1709 <p
1465 class="text-lg font-semibold text-gray-700 dark:text-gray-200" 1710 class="text-lg font-semibold text-gray-700 dark:text-gray-200"
1466 > 1711 >
1467 376 1712 376
1468 </p> 1713 </p>
1469 </div> 1714 </div>
1470 </div> 1715 </div>
1471 1716
1472 <div 1717 <div
1473 class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800" 1718 class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800"
1474 > 1719 >
1475 <div 1720 <div
1476 class="p-3 mr-4 text-teal-500 bg-teal-100 rounded-full dark:text-teal-100 dark:bg-teal-500" 1721 class="p-3 mr-4 text-teal-500 bg-teal-100 rounded-full dark:text-teal-100 dark:bg-teal-500"
1477 > 1722 >
1478 <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> 1723 <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
1479 <path 1724 <path
1480 fill-rule="evenodd" 1725 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" 1726 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" 1727 clip-rule="evenodd"
1483 ></path> 1728 ></path>
1484 </svg> 1729 </svg>
1485 </div> 1730 </div>
1486 <div> 1731 <div>
1487 <p 1732 <p
1488 class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400" 1733 class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400"
1489 > 1734 >
1490 Pending contacts 1735 Pending contacts
1491 </p> 1736 </p>
1492 <p 1737 <p
1493 class="text-lg font-semibold text-gray-700 dark:text-gray-200" 1738 class="text-lg font-semibold text-gray-700 dark:text-gray-200"
1494 > 1739 >
1495 35 1740 35
1496 </p> 1741 </p>
1497 </div> 1742 </div>
1498 </div> 1743 </div>
1499 </div> 1744 </div>
1500 --> 1745 -->
1501 <!-- New Table 1746 <!-- New Table
1502 <div class="w-full overflow-hidden rounded-lg shadow-xs"> 1747 <div class="w-full overflow-hidden rounded-lg shadow-xs">
1503 <div class="w-full overflow-x-auto"> 1748 <div class="w-full overflow-x-auto">
1504 <table class="w-full whitespace-no-wrap"> 1749 <table class="w-full whitespace-no-wrap">
1505 <thead> 1750 <thead>
1506 <tr 1751 <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" 1752 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 > 1753 >
1509 <th class="px-4 py-3">Client</th> 1754 <th class="px-4 py-3">Client</th>
1510 <th class="px-4 py-3">Amount</th> 1755 <th class="px-4 py-3">Amount</th>
1511 <th class="px-4 py-3">Status</th> 1756 <th class="px-4 py-3">Status</th>
1512 <th class="px-4 py-3">Date</th> 1757 <th class="px-4 py-3">Date</th>
1513 </tr> 1758 </tr>
1514 </thead> 1759 </thead>
1515 <tbody 1760 <tbody
1516 class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800" 1761 class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800"
1517 > 1762 >
1518 <tr class="text-gray-700 dark:text-gray-400"> 1763 <tr class="text-gray-700 dark:text-gray-400">
1519 <td class="px-4 py-3"> 1764 <td class="px-4 py-3">
1520 <div class="flex items-center text-sm"> 1765 <div class="flex items-center text-sm">
1521 1766
1522 <div 1767 <div
1523 class="relative hidden w-8 h-8 mr-3 rounded-full md:block" 1768 class="relative hidden w-8 h-8 mr-3 rounded-full md:block"
1524 > 1769 >
1525 <img 1770 <img
1526 class="object-cover w-full h-full rounded-full" 1771 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" 1772 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="" 1773 alt=""
1529 loading="lazy" 1774 loading="lazy"
1530 /> 1775 />
1531 <div 1776 <div
1532 class="absolute inset-0 rounded-full shadow-inner" 1777 class="absolute inset-0 rounded-full shadow-inner"
1533 aria-hidden="true" 1778 aria-hidden="true"
1534 ></div> 1779 ></div>
1535 </div> 1780 </div>
1536 <div> 1781 <div>
1537 <p class="font-semibold">Hans Burger</p> 1782 <p class="font-semibold">Hans Burger</p>
1538 <p class="text-xs text-gray-600 dark:text-gray-400"> 1783 <p class="text-xs text-gray-600 dark:text-gray-400">
1539 10x Developer 1784 10x Developer
1540 </p> 1785 </p>
1541 </div> 1786 </div>
1542 </div> 1787 </div>
1543 </td> 1788 </td>
1544 <td class="px-4 py-3 text-sm"> 1789 <td class="px-4 py-3 text-sm">
1545 $ 863.45 1790 $ 863.45
1546 </td> 1791 </td>
1547 <td class="px-4 py-3 text-xs"> 1792 <td class="px-4 py-3 text-xs">
1548 <span 1793 <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" 1794 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 > 1795 >
1551 Approved 1796 Approved
1552 </span> 1797 </span>
1553 </td> 1798 </td>
1554 <td class="px-4 py-3 text-sm"> 1799 <td class="px-4 py-3 text-sm">
1555 6/10/2020 1800 6/10/2020
1556 </td> 1801 </td>
1557 </tr> 1802 </tr>
1558 1803
1559 <tr class="text-gray-700 dark:text-gray-400"> 1804 <tr class="text-gray-700 dark:text-gray-400">
1560 <td class="px-4 py-3"> 1805 <td class="px-4 py-3">
1561 <div class="flex items-center text-sm"> 1806 <div class="flex items-center text-sm">
1562 1807
1563 <div 1808 <div
1564 class="relative hidden w-8 h-8 mr-3 rounded-full md:block" 1809 class="relative hidden w-8 h-8 mr-3 rounded-full md:block"
1565 > 1810 >
1566 <img 1811 <img
1567 class="object-cover w-full h-full rounded-full" 1812 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" 1813 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="" 1814 alt=""
1570 loading="lazy" 1815 loading="lazy"
1571 /> 1816 />
1572 <div 1817 <div
1573 class="absolute inset-0 rounded-full shadow-inner" 1818 class="absolute inset-0 rounded-full shadow-inner"
1574 aria-hidden="true" 1819 aria-hidden="true"
1575 ></div> 1820 ></div>
1576 </div> 1821 </div>
1577 <div> 1822 <div>
1578 <p class="font-semibold">Jolina Angelie</p> 1823 <p class="font-semibold">Jolina Angelie</p>
1579 <p class="text-xs text-gray-600 dark:text-gray-400"> 1824 <p class="text-xs text-gray-600 dark:text-gray-400">
1580 Unemployed 1825 Unemployed
1581 </p> 1826 </p>
1582 </div> 1827 </div>
1583 </div> 1828 </div>
1584 </td> 1829 </td>
1585 <td class="px-4 py-3 text-sm"> 1830 <td class="px-4 py-3 text-sm">
1586 $ 369.95 1831 $ 369.95
1587 </td> 1832 </td>
1588 <td class="px-4 py-3 text-xs"> 1833 <td class="px-4 py-3 text-xs">
1589 <span 1834 <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" 1835 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 > 1836 >
1592 Pending 1837 Pending
1593 </span> 1838 </span>
1594 </td> 1839 </td>
1595 <td class="px-4 py-3 text-sm"> 1840 <td class="px-4 py-3 text-sm">
1596 6/10/2020 1841 6/10/2020
1597 </td> 1842 </td>
1598 </tr> 1843 </tr>
1599 1844
1600 <tr class="text-gray-700 dark:text-gray-400"> 1845 <tr class="text-gray-700 dark:text-gray-400">
1601 <td class="px-4 py-3"> 1846 <td class="px-4 py-3">
1602 <div class="flex items-center text-sm"> 1847 <div class="flex items-center text-sm">
1603 1848
1604 <div 1849 <div
1605 class="relative hidden w-8 h-8 mr-3 rounded-full md:block" 1850 class="relative hidden w-8 h-8 mr-3 rounded-full md:block"
1606 > 1851 >
1607 <img 1852 <img
1608 class="object-cover w-full h-full rounded-full" 1853 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" 1854 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="" 1855 alt=""
1611 loading="lazy" 1856 loading="lazy"
1612 /> 1857 />
1613 <div 1858 <div
1614 class="absolute inset-0 rounded-full shadow-inner" 1859 class="absolute inset-0 rounded-full shadow-inner"
1615 aria-hidden="true" 1860 aria-hidden="true"
1616 ></div> 1861 ></div>
1617 </div> 1862 </div>
1618 <div> 1863 <div>
1619 <p class="font-semibold">Sarah Curry</p> 1864 <p class="font-semibold">Sarah Curry</p>
1620 <p class="text-xs text-gray-600 dark:text-gray-400"> 1865 <p class="text-xs text-gray-600 dark:text-gray-400">
1621 Designer 1866 Designer
1622 </p> 1867 </p>
1623 </div> 1868 </div>
1624 </div> 1869 </div>
1625 </td> 1870 </td>
1626 <td class="px-4 py-3 text-sm"> 1871 <td class="px-4 py-3 text-sm">
1627 $ 86.00 1872 $ 86.00
1628 </td> 1873 </td>
1629 <td class="px-4 py-3 text-xs"> 1874 <td class="px-4 py-3 text-xs">
1630 <span 1875 <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" 1876 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 > 1877 >
1633 Denied 1878 Denied
1634 </span> 1879 </span>
1635 </td> 1880 </td>
1636 <td class="px-4 py-3 text-sm"> 1881 <td class="px-4 py-3 text-sm">
1637 6/10/2020 1882 6/10/2020
1638 </td> 1883 </td>
1639 </tr> 1884 </tr>
1640 1885
1641 <tr class="text-gray-700 dark:text-gray-400"> 1886 <tr class="text-gray-700 dark:text-gray-400">
1642 <td class="px-4 py-3"> 1887 <td class="px-4 py-3">
1643 <div class="flex items-center text-sm"> 1888 <div class="flex items-center text-sm">
1644 1889
1645 <div 1890 <div
1646 class="relative hidden w-8 h-8 mr-3 rounded-full md:block" 1891 class="relative hidden w-8 h-8 mr-3 rounded-full md:block"
1647 > 1892 >
1648 <img 1893 <img
1649 class="object-cover w-full h-full rounded-full" 1894 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" 1895 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="" 1896 alt=""
1652 loading="lazy" 1897 loading="lazy"
1653 /> 1898 />
1654 <div 1899 <div
1655 class="absolute inset-0 rounded-full shadow-inner" 1900 class="absolute inset-0 rounded-full shadow-inner"
1656 aria-hidden="true" 1901 aria-hidden="true"
1657 ></div> 1902 ></div>
1658 </div> 1903 </div>
1659 <div> 1904 <div>
1660 <p class="font-semibold">Rulia Joberts</p> 1905 <p class="font-semibold">Rulia Joberts</p>
1661 <p class="text-xs text-gray-600 dark:text-gray-400"> 1906 <p class="text-xs text-gray-600 dark:text-gray-400">
1662 Actress 1907 Actress
1663 </p> 1908 </p>
1664 </div> 1909 </div>
1665 </div> 1910 </div>
1666 </td> 1911 </td>
1667 <td class="px-4 py-3 text-sm"> 1912 <td class="px-4 py-3 text-sm">
1668 $ 1276.45 1913 $ 1276.45
1669 </td> 1914 </td>
1670 <td class="px-4 py-3 text-xs"> 1915 <td class="px-4 py-3 text-xs">
1671 <span 1916 <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" 1917 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 > 1918 >
1674 Approved 1919 Approved
1675 </span> 1920 </span>
1676 </td> 1921 </td>
1677 <td class="px-4 py-3 text-sm"> 1922 <td class="px-4 py-3 text-sm">
1678 6/10/2020 1923 6/10/2020
1679 </td> 1924 </td>
1680 </tr> 1925 </tr>
1681 1926
1682 <tr class="text-gray-700 dark:text-gray-400"> 1927 <tr class="text-gray-700 dark:text-gray-400">
1683 <td class="px-4 py-3"> 1928 <td class="px-4 py-3">
1684 <div class="flex items-center text-sm"> 1929 <div class="flex items-center text-sm">
1685 1930
1686 <div 1931 <div
1687 class="relative hidden w-8 h-8 mr-3 rounded-full md:block" 1932 class="relative hidden w-8 h-8 mr-3 rounded-full md:block"
1688 > 1933 >
1689 <img 1934 <img
1690 class="object-cover w-full h-full rounded-full" 1935 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" 1936 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="" 1937 alt=""
1693 loading="lazy" 1938 loading="lazy"
1694 /> 1939 />
1695 <div 1940 <div
1696 class="absolute inset-0 rounded-full shadow-inner" 1941 class="absolute inset-0 rounded-full shadow-inner"
1697 aria-hidden="true" 1942 aria-hidden="true"
1698 ></div> 1943 ></div>
1699 </div> 1944 </div>
1700 <div> 1945 <div>
1701 <p class="font-semibold">Wenzel Dashington</p> 1946 <p class="font-semibold">Wenzel Dashington</p>
1702 <p class="text-xs text-gray-600 dark:text-gray-400"> 1947 <p class="text-xs text-gray-600 dark:text-gray-400">
1703 Actor 1948 Actor
1704 </p> 1949 </p>
1705 </div> 1950 </div>
1706 </div> 1951 </div>
1707 </td> 1952 </td>
1708 <td class="px-4 py-3 text-sm"> 1953 <td class="px-4 py-3 text-sm">
1709 $ 863.45 1954 $ 863.45
1710 </td> 1955 </td>
1711 <td class="px-4 py-3 text-xs"> 1956 <td class="px-4 py-3 text-xs">
1712 <span 1957 <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" 1958 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 > 1959 >
1715 Expired 1960 Expired
1716 </span> 1961 </span>
1717 </td> 1962 </td>
1718 <td class="px-4 py-3 text-sm"> 1963 <td class="px-4 py-3 text-sm">
1719 6/10/2020 1964 6/10/2020
1720 </td> 1965 </td>
1721 </tr> 1966 </tr>
1722 1967
1723 <tr class="text-gray-700 dark:text-gray-400"> 1968 <tr class="text-gray-700 dark:text-gray-400">
1724 <td class="px-4 py-3"> 1969 <td class="px-4 py-3">
1725 <div class="flex items-center text-sm"> 1970 <div class="flex items-center text-sm">
1726 1971
1727 <div 1972 <div
1728 class="relative hidden w-8 h-8 mr-3 rounded-full md:block" 1973 class="relative hidden w-8 h-8 mr-3 rounded-full md:block"
1729 > 1974 >
1730 <img 1975 <img
1731 class="object-cover w-full h-full rounded-full" 1976 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" 1977 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="" 1978 alt=""
1734 loading="lazy" 1979 loading="lazy"
1735 /> 1980 />
1736 <div 1981 <div
1737 class="absolute inset-0 rounded-full shadow-inner" 1982 class="absolute inset-0 rounded-full shadow-inner"
1738 aria-hidden="true" 1983 aria-hidden="true"
1739 ></div> 1984 ></div>
1740 </div> 1985 </div>
1741 <div> 1986 <div>
1742 <p class="font-semibold">Dave Li</p> 1987 <p class="font-semibold">Dave Li</p>
1743 <p class="text-xs text-gray-600 dark:text-gray-400"> 1988 <p class="text-xs text-gray-600 dark:text-gray-400">
1744 Influencer 1989 Influencer