Commit 77ece55780c19fb29b9520dc4693c282910a763c
1 parent
31e0a8793e
Exists in
master
task-132687 FAQ page now editable
Showing 13 changed files with 371 additions and 340 deletions Inline Diff
- app/Enums/FaqTarget.php
- app/Http/Controllers/EmployerController.php
- app/Http/Controllers/FaqController.php
- app/Http/Requests/FaqActionRequest.php
- app/Models/Faq.php
- database/migrations/2024_09_02_072828_create_faqs_table.php
- resources/views/admin/faq/create.blade.php
- resources/views/admin/faq/form.blade.php
- resources/views/admin/faq/list.blade.php
- resources/views/admin/faq/update.blade.php
- resources/views/employers/faq.blade.php
- resources/views/layout/admin.blade.php
- routes/web.php
app/Enums/FaqTarget.php
File was created | 1 | <?php | |
2 | |||
3 | namespace App\Enums; | ||
4 | |||
5 | enum FaqTarget: string | ||
6 | { | ||
7 | case EMPLOYER = 'employer'; | ||
8 | case EMPLOYEE = 'employee'; | ||
9 | } | ||
10 |
app/Http/Controllers/EmployerController.php
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | namespace App\Http\Controllers; | 3 | namespace App\Http\Controllers; |
4 | 4 | ||
5 | use App\Classes\RusDate; | 5 | use App\Classes\RusDate; |
6 | use App\Classes\Tools; | 6 | use App\Classes\Tools; |
7 | use App\Http\Requests\BaseUser_min_Request; | 7 | use App\Http\Requests\BaseUser_min_Request; |
8 | use App\Http\Requests\FlotRequest; | 8 | use App\Http\Requests\FlotRequest; |
9 | use App\Http\Requests\MessagesRequiest; | 9 | use App\Http\Requests\MessagesRequiest; |
10 | use App\Http\Requests\VacancyRequestEdit; | 10 | use App\Http\Requests\VacancyRequestEdit; |
11 | use App\Mail\MailCreateEmployer; | 11 | use App\Mail\MailCreateEmployer; |
12 | use App\Mail\MailSotrudnichestvo; | 12 | use App\Mail\MailSotrudnichestvo; |
13 | use App\Mail\MassSendingMessages; | 13 | use App\Mail\MassSendingMessages; |
14 | use App\Mail\SendAllMessages; | 14 | use App\Mail\SendAllMessages; |
15 | use App\Models\Ad_employer; | 15 | use App\Models\Ad_employer; |
16 | use App\Models\ad_response; | 16 | use App\Models\ad_response; |
17 | use App\Models\Category; | 17 | use App\Models\Category; |
18 | use App\Models\Chat; | 18 | use App\Models\Chat; |
19 | use App\Models\Employer; | 19 | use App\Models\Employer; |
20 | use App\Models\Flot; | 20 | use App\Models\Flot; |
21 | use App\Models\Job_title; | 21 | use App\Models\Job_title; |
22 | use App\Models\Like_worker; | 22 | use App\Models\Like_worker; |
23 | use App\Models\Message; | 23 | use App\Models\Message; |
24 | use App\Models\Worker; | 24 | use App\Models\Worker; |
25 | use App\Models\MessagesRequests; | 25 | use App\Models\MessagesRequests; |
26 | use Carbon\Carbon; | 26 | use Carbon\Carbon; |
27 | use Illuminate\Auth\Events\Registered; | 27 | use Illuminate\Auth\Events\Registered; |
28 | use Illuminate\Database\Eloquent\Builder; | 28 | use Illuminate\Database\Eloquent\Builder; |
29 | use Illuminate\Http\Request; | 29 | use Illuminate\Http\Request; |
30 | use Illuminate\Support\Facades\Auth; | 30 | use Illuminate\Support\Facades\Auth; |
31 | use Illuminate\Support\Facades\Hash; | 31 | use Illuminate\Support\Facades\Hash; |
32 | use Illuminate\Support\Facades\Log; | 32 | use Illuminate\Support\Facades\Log; |
33 | use Illuminate\Support\Facades\Mail; | 33 | use Illuminate\Support\Facades\Mail; |
34 | use Illuminate\Support\Facades\Storage; | 34 | use Illuminate\Support\Facades\Storage; |
35 | use App\Models\User as User_Model; | 35 | use App\Models\User as User_Model; |
36 | use Illuminate\Support\Facades\Validator; | 36 | use Illuminate\Support\Facades\Validator; |
37 | use App\Enums\DbExportColumns; | 37 | use App\Enums\DbExportColumns; |
38 | use Throwable; | 38 | use Throwable; |
39 | 39 | ||
40 | class EmployerController extends Controller | 40 | class EmployerController extends Controller |
41 | { | 41 | { |
42 | public function vacancie($vacancy, Request $request) { | 42 | public function vacancie($vacancy, Request $request) { |
43 | $title = 'Заголовок вакансии'; | 43 | $title = 'Заголовок вакансии'; |
44 | $Query = Ad_employer::with('jobs')-> | 44 | $Query = Ad_employer::with('jobs')-> |
45 | with('cat')-> | 45 | with('cat')-> |
46 | with('employer')-> | 46 | with('employer')-> |
47 | with('jobs_code')-> | 47 | with('jobs_code')-> |
48 | select('ad_employers.*')-> | 48 | select('ad_employers.*')-> |
49 | where('id', '=', $vacancy)->get(); | 49 | where('id', '=', $vacancy)->get(); |
50 | 50 | ||
51 | if (isset(Auth()->user()->id)) | 51 | if (isset(Auth()->user()->id)) |
52 | $uid = Auth()->user()->id; | 52 | $uid = Auth()->user()->id; |
53 | else | 53 | else |
54 | $uid = 0; | 54 | $uid = 0; |
55 | $title = $Query[0]->name; | 55 | $title = $Query[0]->name; |
56 | if ($request->ajax()) { | 56 | if ($request->ajax()) { |
57 | return view('ajax.vacance-item', compact('Query','uid')); | 57 | return view('ajax.vacance-item', compact('Query','uid')); |
58 | } else { | 58 | } else { |
59 | return view('vacance-item', compact('title', 'Query', 'uid')); | 59 | return view('vacance-item', compact('title', 'Query', 'uid')); |
60 | } | 60 | } |
61 | } | 61 | } |
62 | 62 | ||
63 | public function logout() { | 63 | public function logout() { |
64 | Auth::logout(); | 64 | Auth::logout(); |
65 | return redirect()->route('index') | 65 | return redirect()->route('index') |
66 | ->with('success', 'Вы вышли из личного кабинета'); | 66 | ->with('success', 'Вы вышли из личного кабинета'); |
67 | } | 67 | } |
68 | 68 | ||
69 | public function employer_info() { | 69 | public function employer_info() { |
70 | // код юзера | 70 | // код юзера |
71 | $user_info = Auth()->user(); | 71 | $user_info = Auth()->user(); |
72 | // вьюшка для вывода данных | 72 | // вьюшка для вывода данных |
73 | return view('employers.info', compact('user_info')); | 73 | return view('employers.info', compact('user_info')); |
74 | } | 74 | } |
75 | 75 | ||
76 | public function employer_info_save(User_Model $user, BaseUser_min_Request $request) { | 76 | public function employer_info_save(User_Model $user, BaseUser_min_Request $request) { |
77 | // Все данные через реквест | 77 | // Все данные через реквест |
78 | $all = $request->all(); | 78 | $all = $request->all(); |
79 | unset($all['_token']); | 79 | unset($all['_token']); |
80 | // обновление | 80 | // обновление |
81 | $user->update($all); | 81 | $user->update($all); |
82 | return redirect()->route('employer.employer_info'); | 82 | return redirect()->route('employer.employer_info'); |
83 | } | 83 | } |
84 | 84 | ||
85 | public function cabinet() { | 85 | public function cabinet() { |
86 | $id = Auth()->user()->id; | 86 | $id = Auth()->user()->id; |
87 | $Employer = Employer::query()->with('users')->with('ads')->with('flots')-> | 87 | $Employer = Employer::query()->with('users')->with('ads')->with('flots')-> |
88 | WhereHas('users', | 88 | WhereHas('users', |
89 | function (Builder $query) use ($id) {$query->Where('id', $id); | 89 | function (Builder $query) use ($id) {$query->Where('id', $id); |
90 | })->get(); | 90 | })->get(); |
91 | return view('employers.cabinet45', compact('Employer')); | 91 | return view('employers.cabinet45', compact('Employer')); |
92 | } | 92 | } |
93 | 93 | ||
94 | public function slider_flot() { | 94 | public function slider_flot() { |
95 | $id = Auth()->user()->id; | 95 | $id = Auth()->user()->id; |
96 | $Employer = Employer::query()->with('users')->with('ads')->with('flots')-> | 96 | $Employer = Employer::query()->with('users')->with('ads')->with('flots')-> |
97 | WhereHas('users', | 97 | WhereHas('users', |
98 | function (Builder $query) use ($id) {$query->Where('id', $id); | 98 | function (Builder $query) use ($id) {$query->Where('id', $id); |
99 | })->get(); | 99 | })->get(); |
100 | return view('employers.fly-flot', compact('Employer')); | 100 | return view('employers.fly-flot', compact('Employer')); |
101 | } | 101 | } |
102 | 102 | ||
103 | public function cabinet_save(Employer $Employer, Request $request) { | 103 | public function cabinet_save(Employer $Employer, Request $request) { |
104 | $params = $request->all(); | 104 | $params = $request->all(); |
105 | $params['user_id'] = Auth()->user()->id; | 105 | $params['user_id'] = Auth()->user()->id; |
106 | $id = $Employer->id; | 106 | $id = $Employer->id; |
107 | 107 | ||
108 | if ($request->has('logo')) { | 108 | if ($request->has('logo')) { |
109 | if (!empty($Employer->logo)) { | 109 | if (!empty($Employer->logo)) { |
110 | Storage::delete($Employer->logo); | 110 | Storage::delete($Employer->logo); |
111 | } | 111 | } |
112 | $params['logo'] = $request->file('logo')->store("employer/$id", 'public'); | 112 | $params['logo'] = $request->file('logo')->store("employer/$id", 'public'); |
113 | } | 113 | } |
114 | 114 | ||
115 | $Employer->update($params); | 115 | $Employer->update($params); |
116 | 116 | ||
117 | return redirect()->route('employer.cabinet')->with('success', 'Данные были успешно сохранены'); | 117 | return redirect()->route('employer.cabinet')->with('success', 'Данные были успешно сохранены'); |
118 | } | 118 | } |
119 | 119 | ||
120 | public function save_add_flot(FlotRequest $request) { | 120 | public function save_add_flot(FlotRequest $request) { |
121 | // отмена | 121 | // отмена |
122 | $params = $request->all(); | 122 | $params = $request->all(); |
123 | 123 | ||
124 | if ($request->has('image')) { | 124 | if ($request->has('image')) { |
125 | $params['image'] = $request->file('image')->store("flot", 'public'); | 125 | $params['image'] = $request->file('image')->store("flot", 'public'); |
126 | } | 126 | } |
127 | Flot::create($params); | 127 | Flot::create($params); |
128 | $data_flots = Flot::query()->where('employer_id', $request->get('employer_if'))->get(); | 128 | $data_flots = Flot::query()->where('employer_id', $request->get('employer_if'))->get(); |
129 | return redirect()->route('employer.slider_flot')->with('success', 'Новый корабль был добавлен'); | 129 | return redirect()->route('employer.slider_flot')->with('success', 'Новый корабль был добавлен'); |
130 | } | 130 | } |
131 | 131 | ||
132 | public function edit_flot(Flot $Flot, Employer $Employer) { | 132 | public function edit_flot(Flot $Flot, Employer $Employer) { |
133 | return view('employers.edit-flot', compact('Flot', 'Employer')); | 133 | return view('employers.edit-flot', compact('Flot', 'Employer')); |
134 | } | 134 | } |
135 | 135 | ||
136 | public function update_flot(FlotRequest $request, Flot $Flot) { | 136 | public function update_flot(FlotRequest $request, Flot $Flot) { |
137 | $params = $request->all(); | 137 | $params = $request->all(); |
138 | 138 | ||
139 | if ($request->has('image')) { | 139 | if ($request->has('image')) { |
140 | if (!empty($flot->image)) { | 140 | if (!empty($flot->image)) { |
141 | Storage::delete($flot->image); | 141 | Storage::delete($flot->image); |
142 | } | 142 | } |
143 | $params['image'] = $request->file('image')->store("flot", 'public'); | 143 | $params['image'] = $request->file('image')->store("flot", 'public'); |
144 | } else { | 144 | } else { |
145 | if (!empty($flot->image)) $params['image'] = $flot->image; | 145 | if (!empty($flot->image)) $params['image'] = $flot->image; |
146 | } | 146 | } |
147 | 147 | ||
148 | $Flot->update($params); | 148 | $Flot->update($params); |
149 | return redirect()->route('employer.slider_flot')->with('success', 'Новый корабль был добавлен'); | 149 | return redirect()->route('employer.slider_flot')->with('success', 'Новый корабль был добавлен'); |
150 | } | 150 | } |
151 | 151 | ||
152 | public function delete_flot(Flot $Flot) { | 152 | public function delete_flot(Flot $Flot) { |
153 | $data_flots = Flot::query()->where('employer_id', $Flot->employer_id)->get(); | 153 | $data_flots = Flot::query()->where('employer_id', $Flot->employer_id)->get(); |
154 | 154 | ||
155 | if (isset($Flot->id)) $Flot->delete(); | 155 | if (isset($Flot->id)) $Flot->delete(); |
156 | return redirect()->route('employer.slider_flot')->with('success', 'Корабль был удален'); | 156 | return redirect()->route('employer.slider_flot')->with('success', 'Корабль был удален'); |
157 | } | 157 | } |
158 | 158 | ||
159 | // Форма добавления вакансий | 159 | // Форма добавления вакансий |
160 | public function cabinet_vacancie() { | 160 | public function cabinet_vacancie() { |
161 | $id = Auth()->user()->id; | 161 | $id = Auth()->user()->id; |
162 | 162 | ||
163 | if (Auth()->user()->is_public) { | 163 | if (Auth()->user()->is_public) { |
164 | $categories = Category::query()->active()->get(); | 164 | $categories = Category::query()->active()->get(); |
165 | $jobs = Job_title::query()->orderByDesc('sort')->OrderBy('name')-> | 165 | $jobs = Job_title::query()->orderByDesc('sort')->OrderBy('name')-> |
166 | where('is_remove', '=', '0')-> | 166 | where('is_remove', '=', '0')-> |
167 | where('is_bd', '=', '0')-> | 167 | where('is_bd', '=', '0')-> |
168 | get(); | 168 | get(); |
169 | $Employer = Employer::query()->with('users')->with('ads')->with('flots')-> | 169 | $Employer = Employer::query()->with('users')->with('ads')->with('flots')-> |
170 | WhereHas('users', | 170 | WhereHas('users', |
171 | function (Builder $query) use ($id) { | 171 | function (Builder $query) use ($id) { |
172 | $query->Where('id', $id); | 172 | $query->Where('id', $id); |
173 | })->get(); | 173 | })->get(); |
174 | return view('employers.add_vacancy', compact('Employer', 'jobs', 'categories')); | 174 | return view('employers.add_vacancy', compact('Employer', 'jobs', 'categories')); |
175 | } else { | 175 | } else { |
176 | return redirect()->route('employer.cabinet_vacancie_danger'); | 176 | return redirect()->route('employer.cabinet_vacancie_danger'); |
177 | } | 177 | } |
178 | } | 178 | } |
179 | 179 | ||
180 | // Форма предупреждения об оплате | 180 | // Форма предупреждения об оплате |
181 | public function cabinet_vacancie_danger() { | 181 | public function cabinet_vacancie_danger() { |
182 | return view('employers.add_vacancy_danger'); | 182 | return view('employers.add_vacancy_danger'); |
183 | } | 183 | } |
184 | 184 | ||
185 | // Сохранение вакансии | 185 | // Сохранение вакансии |
186 | public function cabinet_vacancy_save1(VacancyRequestEdit $request) { | 186 | public function cabinet_vacancy_save1(VacancyRequestEdit $request) { |
187 | $params_emp = $request->all(); | 187 | $params_emp = $request->all(); |
188 | 188 | ||
189 | $params_job["job_title_id"] = $params_emp['job_title_id']; | 189 | $params_job["job_title_id"] = $params_emp['job_title_id']; |
190 | //$params_job["min_salary"] = $params_emp['min_salary']; | 190 | //$params_job["min_salary"] = $params_emp['min_salary']; |
191 | //$params_job["max_salary"] = $params_emp['max_salary']; | 191 | //$params_job["max_salary"] = $params_emp['max_salary']; |
192 | //$params_job["region"] = $params_emp['region']; | 192 | //$params_job["region"] = $params_emp['region']; |
193 | //$params_job["power"] = $params_emp['power']; | 193 | //$params_job["power"] = $params_emp['power']; |
194 | //$params_job["sytki"] = $params_emp['sytki']; | 194 | //$params_job["sytki"] = $params_emp['sytki']; |
195 | //$params_job["start"] = $params_emp['start']; | 195 | //$params_job["start"] = $params_emp['start']; |
196 | //$params_job["flot"] = $params_emp['flot']; | 196 | //$params_job["flot"] = $params_emp['flot']; |
197 | //$params_job["description"] = $params_emp['description']; | 197 | //$params_job["description"] = $params_emp['description']; |
198 | 198 | ||
199 | $ad_jobs = Ad_employer::create($params_emp); | 199 | $ad_jobs = Ad_employer::create($params_emp); |
200 | //$params_job['ad_employer_id'] = $ad_jobs->id; | 200 | //$params_job['ad_employer_id'] = $ad_jobs->id; |
201 | //Ad_jobs::create($params_job); | 201 | //Ad_jobs::create($params_job); |
202 | $ad_jobs->jobs()->sync($request->get('job_title_id')); | 202 | $ad_jobs->jobs()->sync($request->get('job_title_id')); |
203 | 203 | ||
204 | return redirect()->route('employer.vacancy_list'); | 204 | return redirect()->route('employer.vacancy_list'); |
205 | } | 205 | } |
206 | 206 | ||
207 | // Список вакансий | 207 | // Список вакансий |
208 | public function vacancy_list(Request $request) { | 208 | public function vacancy_list(Request $request) { |
209 | $id = Auth()->user()->id; | 209 | $id = Auth()->user()->id; |
210 | 210 | ||
211 | //dd($request->all()); | 211 | //dd($request->all()); |
212 | $Employer = Employer::query()->where('user_id', $id)->first(); | 212 | $Employer = Employer::query()->where('user_id', $id)->first(); |
213 | $vacancy_list = Ad_employer::query() | 213 | $vacancy_list = Ad_employer::query() |
214 | ->with('jobs') | 214 | ->with('jobs') |
215 | ->with('jobs_code') | 215 | ->with('jobs_code') |
216 | ->where('employer_id', $Employer->id) | 216 | ->where('employer_id', $Employer->id) |
217 | ->where('is_remove', 0) | 217 | ->where('is_remove', 0) |
218 | ->orderbyDesc('updated_at') | 218 | ->orderbyDesc('updated_at') |
219 | ; | 219 | ; |
220 | 220 | ||
221 | if (($request->has('search')) && (!empty($request->get('search')))) { | 221 | if (($request->has('search')) && (!empty($request->get('search')))) { |
222 | $search = $request->get('search'); | 222 | $search = $request->get('search'); |
223 | $vacancy_list = $vacancy_list->where('name', 'LIKE', "%$search%"); | 223 | $vacancy_list = $vacancy_list->where('name', 'LIKE', "%$search%"); |
224 | } | 224 | } |
225 | 225 | ||
226 | if ($request->get('sort')) { | 226 | if ($request->get('sort')) { |
227 | $sort = $request->get('sort'); | 227 | $sort = $request->get('sort'); |
228 | switch ($sort) { | 228 | switch ($sort) { |
229 | case 'nopublic': $vacancy_list->where('active_is', '=', 0);break; | 229 | case 'nopublic': $vacancy_list->where('active_is', '=', 0);break; |
230 | case 'public':$vacancy_list->where('active_is', '=', 1);break; | 230 | case 'public':$vacancy_list->where('active_is', '=', 1);break; |
231 | default: $vacancy_list = $vacancy_list->orderByDesc('id'); break; | 231 | default: $vacancy_list = $vacancy_list->orderByDesc('id'); break; |
232 | } | 232 | } |
233 | } else { | 233 | } else { |
234 | $vacancy_list = $vacancy_list->orderByDesc('updated_at')->orderBy('id'); | 234 | $vacancy_list = $vacancy_list->orderByDesc('updated_at')->orderBy('id'); |
235 | } | 235 | } |
236 | 236 | ||
237 | $vacancy_list = $vacancy_list->paginate(10); | 237 | $vacancy_list = $vacancy_list->paginate(10); |
238 | 238 | ||
239 | //ajax | 239 | //ajax |
240 | if ($request->ajax()) { | 240 | if ($request->ajax()) { |
241 | return view('employers.ajax.list_vacancy', compact('vacancy_list', 'Employer')); | 241 | return view('employers.ajax.list_vacancy', compact('vacancy_list', 'Employer')); |
242 | } else { | 242 | } else { |
243 | return view('employers.list_vacancy', compact('vacancy_list', 'Employer')); | 243 | return view('employers.list_vacancy', compact('vacancy_list', 'Employer')); |
244 | } | 244 | } |
245 | } | 245 | } |
246 | 246 | ||
247 | // Карточка вакансии | 247 | // Карточка вакансии |
248 | public function vacancy_edit(Ad_employer $ad_employer) { | 248 | public function vacancy_edit(Ad_employer $ad_employer) { |
249 | $id = Auth()->user()->id; | 249 | $id = Auth()->user()->id; |
250 | $Positions = Category::query()->where('is_remove', '=', '0')->get(); | 250 | $Positions = Category::query()->where('is_remove', '=', '0')->get(); |
251 | 251 | ||
252 | $jobs = Job_title::query()->orderByDesc('sort')->OrderBy('name')-> | 252 | $jobs = Job_title::query()->orderByDesc('sort')->OrderBy('name')-> |
253 | where('is_remove', '=', '0')-> | 253 | where('is_remove', '=', '0')-> |
254 | where('is_bd', '=', '0')->get(); | 254 | where('is_bd', '=', '0')->get(); |
255 | 255 | ||
256 | $Employer = Employer::query()->with('users')->with('ads')-> | 256 | $Employer = Employer::query()->with('users')->with('ads')-> |
257 | with('flots')->where('user_id', $id)->first(); | 257 | with('flots')->where('user_id', $id)->first(); |
258 | 258 | ||
259 | return view('employers.edit_vacancy', compact('ad_employer', 'Positions','Employer', 'jobs')); | 259 | return view('employers.edit_vacancy', compact('ad_employer', 'Positions','Employer', 'jobs')); |
260 | } | 260 | } |
261 | 261 | ||
262 | // Сохранение-редактирование записи | 262 | // Сохранение-редактирование записи |
263 | public function vacancy_save_me(VacancyRequestEdit $request, Ad_employer $ad_employer) { | 263 | public function vacancy_save_me(VacancyRequestEdit $request, Ad_employer $ad_employer) { |
264 | $params = $request->all(); | 264 | $params = $request->all(); |
265 | $params_job["job_title_id"] = $params['job_title_id']; | 265 | $params_job["job_title_id"] = $params['job_title_id']; |
266 | 266 | ||
267 | $ad_employer->update($params); | 267 | $ad_employer->update($params); |
268 | $ad_employer->jobs()->sync($request->get('job_title_id')); | 268 | $ad_employer->jobs()->sync($request->get('job_title_id')); |
269 | 269 | ||
270 | $id = Auth()->user()->id; | 270 | $id = Auth()->user()->id; |
271 | $Positions = Category::query()->where('is_remove', '=', '0')->get(); | 271 | $Positions = Category::query()->where('is_remove', '=', '0')->get(); |
272 | $jobs = Job_title::query()->orderByDesc('sort')->OrderBy('name') | 272 | $jobs = Job_title::query()->orderByDesc('sort')->OrderBy('name') |
273 | ->where('is_remove', '=', '0') | 273 | ->where('is_remove', '=', '0') |
274 | ->where('is_bd', '=', '0') | 274 | ->where('is_bd', '=', '0') |
275 | ->get(); | 275 | ->get(); |
276 | 276 | ||
277 | $Employer = Employer::query() | 277 | $Employer = Employer::query() |
278 | ->with('users')->with('ads')->with('flots')->where('user_id', $id)->first(); | 278 | ->with('users')->with('ads')->with('flots')->where('user_id', $id)->first(); |
279 | return view('employers.edit_vacancy', compact('ad_employer', 'Positions','Employer', 'jobs')); | 279 | return view('employers.edit_vacancy', compact('ad_employer', 'Positions','Employer', 'jobs')); |
280 | } | 280 | } |
281 | 281 | ||
282 | // Сохранение карточки вакансии | 282 | // Сохранение карточки вакансии |
283 | public function vacancy_save(Request $request, Ad_employer $ad_employer) { | 283 | public function vacancy_save(Request $request, Ad_employer $ad_employer) { |
284 | $all = $request->all(); | 284 | $all = $request->all(); |
285 | $ad_employer->update($all); | 285 | $ad_employer->update($all); |
286 | return redirect()->route('employer.cabinet_vacancie'); | 286 | return redirect()->route('employer.cabinet_vacancie'); |
287 | } | 287 | } |
288 | 288 | ||
289 | // Удаление карточки вакансии | 289 | // Удаление карточки вакансии |
290 | public function vacancy_delete(Ad_employer $ad_employer) { | 290 | public function vacancy_delete(Ad_employer $ad_employer) { |
291 | $ad_employer->delete(); | 291 | $ad_employer->delete(); |
292 | 292 | ||
293 | return redirect()->route('employer.vacancy_list') | 293 | return redirect()->route('employer.vacancy_list') |
294 | ->with('success', 'Данные были успешно сохранены'); | 294 | ->with('success', 'Данные были успешно сохранены'); |
295 | } | 295 | } |
296 | 296 | ||
297 | // Обновление даты | 297 | // Обновление даты |
298 | public function vacancy_up(Ad_employer $ad_employer) { | 298 | public function vacancy_up(Ad_employer $ad_employer) { |
299 | $up = date('m/d/Y h:i:s', time());; | 299 | $up = date('m/d/Y h:i:s', time());; |
300 | $vac_emp = Ad_employer::findOrFail($ad_employer->id); | 300 | $vac_emp = Ad_employer::findOrFail($ad_employer->id); |
301 | $vac_emp->updated_at = $up; | 301 | $vac_emp->updated_at = $up; |
302 | $vac_emp->save(); | 302 | $vac_emp->save(); |
303 | 303 | ||
304 | return redirect()->back(); //route('employer.vacancy_list'); | 304 | return redirect()->back(); //route('employer.vacancy_list'); |
305 | // начало конца | 305 | // начало конца |
306 | } | 306 | } |
307 | 307 | ||
308 | //Видимость вакансии | 308 | //Видимость вакансии |
309 | public function vacancy_eye(Ad_employer $ad_employer, $status) { | 309 | public function vacancy_eye(Ad_employer $ad_employer, $status) { |
310 | $vac_emp = Ad_employer::findOrFail($ad_employer->id); | 310 | $vac_emp = Ad_employer::findOrFail($ad_employer->id); |
311 | $vac_emp->active_is = $status; | 311 | $vac_emp->active_is = $status; |
312 | $vac_emp->save(); | 312 | $vac_emp->save(); |
313 | 313 | ||
314 | return redirect()->route('employer.vacancy_list'); | 314 | return redirect()->route('employer.vacancy_list'); |
315 | } | 315 | } |
316 | 316 | ||
317 | //Вакансия редактирования (шаблон) | 317 | //Вакансия редактирования (шаблон) |
318 | public function vacancy_update(Ad_employer $id) { | 318 | public function vacancy_update(Ad_employer $id) { |
319 | 319 | ||
320 | } | 320 | } |
321 | 321 | ||
322 | //Отклики на вакансию - лист | 322 | //Отклики на вакансию - лист |
323 | public function answers(Employer $employer, Request $request) { | 323 | public function answers(Employer $employer, Request $request) { |
324 | $user_id = Auth()->user()->id; | 324 | $user_id = Auth()->user()->id; |
325 | $answer = Ad_employer::query()->where('employer_id', $employer->id); | 325 | $answer = Ad_employer::query()->where('employer_id', $employer->id); |
326 | if ($request->has('search')) { | 326 | if ($request->has('search')) { |
327 | $search = trim($request->get('search')); | 327 | $search = trim($request->get('search')); |
328 | if (!empty($search)) $answer = $answer->where('name', 'LIKE', "%$search%"); | 328 | if (!empty($search)) $answer = $answer->where('name', 'LIKE', "%$search%"); |
329 | } | 329 | } |
330 | 330 | ||
331 | $answer = $answer->with('response')->OrderByDESC('id')->get(); | 331 | $answer = $answer->with('response')->OrderByDESC('id')->get(); |
332 | 332 | ||
333 | return view('employers.list_answer', compact('answer', 'user_id', 'employer')); | 333 | return view('employers.list_answer', compact('answer', 'user_id', 'employer')); |
334 | } | 334 | } |
335 | 335 | ||
336 | //Обновление статуса | 336 | //Обновление статуса |
337 | public function supple_status(employer $employer, ad_response $ad_response, $flag) { | 337 | public function supple_status(employer $employer, ad_response $ad_response, $flag) { |
338 | $ad_response->update(Array('flag' => $flag)); | 338 | $ad_response->update(Array('flag' => $flag)); |
339 | return redirect()->route('employer.answers', ['employer' => $employer->id]); | 339 | return redirect()->route('employer.answers', ['employer' => $employer->id]); |
340 | } | 340 | } |
341 | 341 | ||
342 | //Страницы сообщений список | 342 | //Страницы сообщений список |
343 | public function messages($type_message) { | 343 | public function messages($type_message) { |
344 | $user_id = Auth()->user()->id; | 344 | $user_id = Auth()->user()->id; |
345 | 345 | ||
346 | $chats = Chat::get_user_chats($user_id); | 346 | $chats = Chat::get_user_chats($user_id); |
347 | $user_type = 'employer'; | 347 | $user_type = 'employer'; |
348 | $admin_chat = false; | 348 | $admin_chat = false; |
349 | 349 | ||
350 | return view('employers.messages', compact('chats', 'admin_chat', 'user_id', 'user_type')); | 350 | return view('employers.messages', compact('chats', 'admin_chat', 'user_id', 'user_type')); |
351 | } | 351 | } |
352 | 352 | ||
353 | // Диалог между пользователями | 353 | // Диалог между пользователями |
354 | public function dialog(Chat $chat, Request $request) { | 354 | public function dialog(Chat $chat, Request $request) { |
355 | // Получение параметров. | 355 | // Получение параметров. |
356 | if ($request->has('ad_employer')){ | 356 | if ($request->has('ad_employer')){ |
357 | $ad_employer = $request->get('ad_employer'); | 357 | $ad_employer = $request->get('ad_employer'); |
358 | } else { | 358 | } else { |
359 | $ad_employer = 0; | 359 | $ad_employer = 0; |
360 | } | 360 | } |
361 | 361 | ||
362 | $sender = User_Model::query()->with('workers')->with('employers')->where('id', $chat->user_id)->first(); | 362 | $sender = User_Model::query()->with('workers')->with('employers')->where('id', $chat->user_id)->first(); |
363 | $companion = User_Model::query()->with('workers')->with('employers')->where('id', $chat->to_user_id)->first(); | 363 | $companion = User_Model::query()->with('workers')->with('employers')->where('id', $chat->to_user_id)->first(); |
364 | 364 | ||
365 | $Messages = Chat::get_chat_messages($chat); | 365 | $Messages = Chat::get_chat_messages($chat); |
366 | 366 | ||
367 | Message::where('user_id', '=', $chat->to_user_id)->where('to_user_id', '=', $chat->user_id)->update(['flag_new' => 0]); | 367 | Message::where('user_id', '=', $chat->to_user_id)->where('to_user_id', '=', $chat->user_id)->update(['flag_new' => 0]); |
368 | 368 | ||
369 | return view('employers.dialog', compact('companion', 'sender', 'ad_employer', 'Messages')); | 369 | return view('employers.dialog', compact('companion', 'sender', 'ad_employer', 'Messages')); |
370 | } | 370 | } |
371 | 371 | ||
372 | public function pin_chat(Request $request){ | 372 | public function pin_chat(Request $request){ |
373 | $chat_id = $request->get('id'); | 373 | $chat_id = $request->get('id'); |
374 | $is_fixed = $request->get('is_fixed'); | 374 | $is_fixed = $request->get('is_fixed'); |
375 | 375 | ||
376 | Chat::pin_chat($chat_id, $is_fixed); | 376 | Chat::pin_chat($chat_id, $is_fixed); |
377 | } | 377 | } |
378 | 378 | ||
379 | public function remove_chat(Request $request){ | 379 | public function remove_chat(Request $request){ |
380 | $chat_id = $request->get('id'); | 380 | $chat_id = $request->get('id'); |
381 | Chat::remove_chat($chat_id); | 381 | Chat::remove_chat($chat_id); |
382 | } | 382 | } |
383 | 383 | ||
384 | // Регистрация работодателя | 384 | // Регистрация работодателя |
385 | public function register_employer(Request $request) { | 385 | public function register_employer(Request $request) { |
386 | $params = $request->all(); | 386 | $params = $request->all(); |
387 | 387 | ||
388 | $rules = [ | 388 | $rules = [ |
389 | //'surname' => ['required', 'string', 'max:255'], | 389 | //'surname' => ['required', 'string', 'max:255'], |
390 | //'name_man' => ['required', 'string', 'max:255'], | 390 | //'name_man' => ['required', 'string', 'max:255'], |
391 | 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], | 391 | 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], |
392 | 'name_company' => ['required', 'string', 'max:255'], | 392 | 'name_company' => ['required', 'string', 'max:255'], |
393 | 'password' => ['required', 'string', 'min:6'], | 393 | 'password' => ['required', 'string', 'min:6'], |
394 | ]; | 394 | ]; |
395 | 395 | ||
396 | 396 | ||
397 | $messages = [ | 397 | $messages = [ |
398 | 'required' => 'Укажите обязательное поле', | 398 | 'required' => 'Укажите обязательное поле', |
399 | 'min' => [ | 399 | 'min' => [ |
400 | 'string' => 'Поле «:attribute» должно быть не меньше :min символов', | 400 | 'string' => 'Поле «:attribute» должно быть не меньше :min символов', |
401 | 'integer' => 'Поле «:attribute» должно быть :min или больше', | 401 | 'integer' => 'Поле «:attribute» должно быть :min или больше', |
402 | 'file' => 'Файл «:attribute» должен быть не меньше :min Кбайт' | 402 | 'file' => 'Файл «:attribute» должен быть не меньше :min Кбайт' |
403 | ], | 403 | ], |
404 | 'max' => [ | 404 | 'max' => [ |
405 | 'string' => 'Поле «:attribute» должно быть не больше :max символов', | 405 | 'string' => 'Поле «:attribute» должно быть не больше :max символов', |
406 | 'integer' => 'Поле «:attribute» должно быть :max или меньше', | 406 | 'integer' => 'Поле «:attribute» должно быть :max или меньше', |
407 | 'file' => 'Файл «:attribute» должен быть не больше :max Кбайт' | 407 | 'file' => 'Файл «:attribute» должен быть не больше :max Кбайт' |
408 | ] | 408 | ] |
409 | ]; | 409 | ]; |
410 | 410 | ||
411 | $email = $request->get('email'); | 411 | $email = $request->get('email'); |
412 | if (!preg_match("/^[a-zA-Z0-9_\-.]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-.]+$/", $email)) { | 412 | if (!preg_match("/^[a-zA-Z0-9_\-.]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-.]+$/", $email)) { |
413 | return json_encode(Array("ERROR" => "Error: Отсутствует емайл или некорректный емайл")); | 413 | return json_encode(Array("ERROR" => "Error: Отсутствует емайл или некорректный емайл")); |
414 | } | 414 | } |
415 | 415 | ||
416 | if ($request->get('password') !== $request->get('confirmed')){ | 416 | if ($request->get('password') !== $request->get('confirmed')){ |
417 | return json_encode(Array("ERROR" => "Error: Не совпадают пароль и подтверждение пароля")); | 417 | return json_encode(Array("ERROR" => "Error: Не совпадают пароль и подтверждение пароля")); |
418 | } | 418 | } |
419 | 419 | ||
420 | if (strlen($request->get('password')) < 6) { | 420 | if (strlen($request->get('password')) < 6) { |
421 | return json_encode(Array("ERROR" => "Error: Недостаточная длина пароля! Увеличьте себе длину пароля!")); | 421 | return json_encode(Array("ERROR" => "Error: Недостаточная длина пароля! Увеличьте себе длину пароля!")); |
422 | } | 422 | } |
423 | 423 | ||
424 | if (empty($request->get('surname'))) { | 424 | if (empty($request->get('surname'))) { |
425 | $params['surname'] = 'Неизвестно'; | 425 | $params['surname'] = 'Неизвестно'; |
426 | } | 426 | } |
427 | if (empty($request->get('name_man'))) { | 427 | if (empty($request->get('name_man'))) { |
428 | $params['name_man'] = 'Неизвестно'; | 428 | $params['name_man'] = 'Неизвестно'; |
429 | } | 429 | } |
430 | $validator = Validator::make($params, $rules, $messages); | 430 | $validator = Validator::make($params, $rules, $messages); |
431 | 431 | ||
432 | if ($validator->fails()) { | 432 | if ($validator->fails()) { |
433 | return json_encode(Array("ERROR" => "Error1: Регистрация оборвалась ошибкой! Не все обязательные поля заполнены. Либо вы уже были зарегистрированы в системе.")); | 433 | return json_encode(Array("ERROR" => "Error1: Регистрация оборвалась ошибкой! Не все обязательные поля заполнены. Либо вы уже были зарегистрированы в системе.")); |
434 | } else { | 434 | } else { |
435 | $user = $this->create($params); | 435 | $user = $this->create($params); |
436 | event(new Registered($user)); | 436 | event(new Registered($user)); |
437 | 437 | ||
438 | Mail::to(env('EMAIL_ADMIN'))->send(new MailCreateEmployer($params)); | 438 | Mail::to(env('EMAIL_ADMIN'))->send(new MailCreateEmployer($params)); |
439 | 439 | ||
440 | Auth::guard()->login($user); | 440 | Auth::guard()->login($user); |
441 | } | 441 | } |
442 | 442 | ||
443 | if ($user) { | 443 | if ($user) { |
444 | return json_encode(Array("REDIRECT" => redirect()->route('employer.cabinet')->getTargetUrl()));; | 444 | return json_encode(Array("REDIRECT" => redirect()->route('employer.cabinet')->getTargetUrl()));; |
445 | } else { | 445 | } else { |
446 | return json_encode(Array("ERROR" => "Error2: Данные были утеряны!")); | 446 | return json_encode(Array("ERROR" => "Error2: Данные были утеряны!")); |
447 | } | 447 | } |
448 | } | 448 | } |
449 | 449 | ||
450 | // Создание пользователя | 450 | // Создание пользователя |
451 | protected function create(array $data) | 451 | protected function create(array $data) |
452 | { | 452 | { |
453 | $Use = new User_Model(); | 453 | $Use = new User_Model(); |
454 | $Code_user = $Use->create([ | 454 | $Code_user = $Use->create([ |
455 | 'name' => $data['surname']." ".$data['name_man'], | 455 | 'name' => $data['surname']." ".$data['name_man'], |
456 | 'name_man' => $data['name_man'], | 456 | 'name_man' => $data['name_man'], |
457 | 'surname' => $data['surname'], | 457 | 'surname' => $data['surname'], |
458 | 'surname2' => $data['surname2'], | 458 | 'surname2' => $data['surname2'], |
459 | 'subscribe_email' => $data['email'], | 459 | 'subscribe_email' => $data['email'], |
460 | 'email' => $data['email'], | 460 | 'email' => $data['email'], |
461 | 'telephone' => $data['telephone'], | 461 | 'telephone' => $data['telephone'], |
462 | 'is_worker' => 0, | 462 | 'is_worker' => 0, |
463 | 'password' => Hash::make($data['password']), | 463 | 'password' => Hash::make($data['password']), |
464 | 'pubpassword' => base64_encode($data['password']), | 464 | 'pubpassword' => base64_encode($data['password']), |
465 | 'email_verified_at' => Carbon::now() | 465 | 'email_verified_at' => Carbon::now() |
466 | ]); | 466 | ]); |
467 | 467 | ||
468 | if ($Code_user->id > 0) { | 468 | if ($Code_user->id > 0) { |
469 | $Employer = new Employer(); | 469 | $Employer = new Employer(); |
470 | $Employer->user_id = $Code_user->id; | 470 | $Employer->user_id = $Code_user->id; |
471 | $Employer->name_company = $data['name_company']; | 471 | $Employer->name_company = $data['name_company']; |
472 | $Employer->email = $data['email']; | 472 | $Employer->email = $data['email']; |
473 | $Employer->telephone = $data['telephone']; | 473 | $Employer->telephone = $data['telephone']; |
474 | $Employer->code = Tools::generator_id(10); | 474 | $Employer->code = Tools::generator_id(10); |
475 | $Employer->save(); | 475 | $Employer->save(); |
476 | 476 | ||
477 | return $Code_user; | 477 | return $Code_user; |
478 | } | 478 | } |
479 | } | 479 | } |
480 | 480 | ||
481 | // Отправка сообщения от работодателя | 481 | // Отправка сообщения от работодателя |
482 | public function send_message(MessagesRequiest $request) { | 482 | public function send_message(MessagesRequiest $request) { |
483 | $params = $request->all(); | 483 | $params = $request->all(); |
484 | dd($params); | 484 | dd($params); |
485 | $user1 = $params['user_id']; | 485 | $user1 = $params['user_id']; |
486 | $user2 = $params['to_user_id']; | 486 | $user2 = $params['to_user_id']; |
487 | 487 | ||
488 | if ($request->has('file')) { | 488 | if ($request->has('file')) { |
489 | $params['file'] = $request->file('file')->store("messages", 'public'); | 489 | $params['file'] = $request->file('file')->store("messages", 'public'); |
490 | } | 490 | } |
491 | Message::create($params); | 491 | Message::create($params); |
492 | return redirect()->route('employer.dialog', ['user1' => $user1, 'user2' => $user2]); | 492 | return redirect()->route('employer.dialog', ['user1' => $user1, 'user2' => $user2]); |
493 | } | 493 | } |
494 | 494 | ||
495 | public function test123(Request $request) { | 495 | public function test123(Request $request) { |
496 | $params = $request->all(); | 496 | $params = $request->all(); |
497 | $user1 = $params['user_id']; | 497 | $user1 = $params['user_id']; |
498 | $user2 = $params['to_user_id']; | 498 | $user2 = $params['to_user_id']; |
499 | 499 | ||
500 | $rules = [ | 500 | $rules = [ |
501 | 'text' => 'nullable|required_without:file|min:1|max:150000', | 501 | 'text' => 'nullable|required_without:file|min:1|max:150000', |
502 | 'file' => 'nullable|file|mimes:doc,docx,xlsx,csv,txt,xlx,xls,pdf|max:150000' | 502 | 'file' => 'nullable|file|mimes:doc,docx,xlsx,csv,txt,xlx,xls,pdf|max:150000' |
503 | ]; | 503 | ]; |
504 | $messages = [ | 504 | $messages = [ |
505 | 'required_without' => 'Поле «:attribute» обязательно, если файл не прикреплен', | 505 | 'required_without' => 'Поле «:attribute» обязательно, если файл не прикреплен', |
506 | 'min' => [ | 506 | 'min' => [ |
507 | 'string' => 'Поле «:attribute» должно быть не меньше :min символов', | 507 | 'string' => 'Поле «:attribute» должно быть не меньше :min символов', |
508 | 'integer' => 'Поле «:attribute» должно быть :min или больше', | 508 | 'integer' => 'Поле «:attribute» должно быть :min или больше', |
509 | 'file' => 'Файл «:attribute» должен быть не меньше :min Кбайт' | 509 | 'file' => 'Файл «:attribute» должен быть не меньше :min Кбайт' |
510 | ], | 510 | ], |
511 | 'max' => [ | 511 | 'max' => [ |
512 | 'string' => 'Поле «:attribute» должно быть не больше :max символов', | 512 | 'string' => 'Поле «:attribute» должно быть не больше :max символов', |
513 | 'integer' => 'Поле «:attribute» должно быть :max или меньше', | 513 | 'integer' => 'Поле «:attribute» должно быть :max или меньше', |
514 | 'file' => 'Файл «:attribute» должен быть не больше :max Кбайт' | 514 | 'file' => 'Файл «:attribute» должен быть не больше :max Кбайт' |
515 | ] | 515 | ] |
516 | ]; | 516 | ]; |
517 | 517 | ||
518 | $validator = Validator::make($request->all(), $rules, $messages); | 518 | $validator = Validator::make($request->all(), $rules, $messages); |
519 | 519 | ||
520 | if ($validator->fails()) { | 520 | if ($validator->fails()) { |
521 | $chat = Chat::where('user_id', $user1) | 521 | $chat = Chat::where('user_id', $user1) |
522 | ->where('to_user_id', $user2) | 522 | ->where('to_user_id', $user2) |
523 | ->where('is_removed', 0) | 523 | ->where('is_removed', 0) |
524 | ->first() | 524 | ->first() |
525 | ; | 525 | ; |
526 | if ($chat->id){ | 526 | if ($chat->id){ |
527 | return redirect()->route('employer.dialog', ['chat' => $chat->id])->withErrors($validator); | 527 | return redirect()->route('employer.dialog', ['chat' => $chat->id])->withErrors($validator); |
528 | } else { | 528 | } else { |
529 | return redirect()->route('cabinet.messages', ['type_message' => 'input'])->withErrors($validator); | 529 | return redirect()->route('cabinet.messages', ['type_message' => 'input'])->withErrors($validator); |
530 | } | 530 | } |
531 | 531 | ||
532 | } else { | 532 | } else { |
533 | $new_message = Message::add_message($request, $user1, $user2, $request->all(), file_store_path: 'messages'); | 533 | $new_message = Message::add_message($request, $user1, $user2, $request->all(), file_store_path: 'messages'); |
534 | 534 | ||
535 | return redirect()->route('employer.dialog', ['chat' => $new_message->chat_id_from]); | 535 | return redirect()->route('employer.dialog', ['chat' => $new_message->chat_id_from]); |
536 | 536 | ||
537 | } | 537 | } |
538 | } | 538 | } |
539 | 539 | ||
540 | //Избранные люди | 540 | //Избранные люди |
541 | public function favorites(Request $request) { | 541 | public function favorites(Request $request) { |
542 | $IP_address = RusDate::ip_addr_client(); | 542 | $IP_address = RusDate::ip_addr_client(); |
543 | $Arr = Like_worker::Query()->select('code_record')->where('ip_address', '=', $IP_address)->get(); | 543 | $Arr = Like_worker::Query()->select('code_record')->where('ip_address', '=', $IP_address)->get(); |
544 | 544 | ||
545 | if ($Arr->count()) { | 545 | if ($Arr->count()) { |
546 | $A = Array(); | 546 | $A = Array(); |
547 | foreach ($Arr as $it) { | 547 | foreach ($Arr as $it) { |
548 | $A[] = $it->code_record; | 548 | $A[] = $it->code_record; |
549 | } | 549 | } |
550 | 550 | ||
551 | $Workers = Worker::query()->whereIn('id', $A); | 551 | $Workers = Worker::query()->whereIn('id', $A); |
552 | } else { | 552 | } else { |
553 | $Workers = Worker::query()->where('id', '=', '0'); | 553 | $Workers = Worker::query()->where('id', '=', '0'); |
554 | } | 554 | } |
555 | 555 | ||
556 | if (($request->has('search')) && (!empty($request->get('search')))) { | 556 | if (($request->has('search')) && (!empty($request->get('search')))) { |
557 | $search = $request->get('search'); | 557 | $search = $request->get('search'); |
558 | 558 | ||
559 | $Workers = $Workers->WhereHas('users', | 559 | $Workers = $Workers->WhereHas('users', |
560 | function (Builder $query) use ($search) { | 560 | function (Builder $query) use ($search) { |
561 | $query->Where('surname', 'LIKE', "%$search%") | 561 | $query->Where('surname', 'LIKE', "%$search%") |
562 | ->orWhere('name_man', 'LIKE', "%$search%") | 562 | ->orWhere('name_man', 'LIKE', "%$search%") |
563 | ->orWhere('surname2', 'LIKE', "%$search%"); | 563 | ->orWhere('surname2', 'LIKE', "%$search%"); |
564 | }); | 564 | }); |
565 | } else { | 565 | } else { |
566 | $Workers = $Workers->with('users'); | 566 | $Workers = $Workers->with('users'); |
567 | } | 567 | } |
568 | 568 | ||
569 | $Workers = $Workers->get(); | 569 | $Workers = $Workers->get(); |
570 | 570 | ||
571 | 571 | ||
572 | return view('employers.favorite', compact('Workers')); | 572 | return view('employers.favorite', compact('Workers')); |
573 | } | 573 | } |
574 | 574 | ||
575 | // База данных | 575 | // База данных |
576 | public function bd(Request $request) { | 576 | public function bd(Request $request) { |
577 | $users = User_Model::query()->with('workers')->with('jobtitles'); | 577 | $users = User_Model::query()->with('workers')->with('jobtitles'); |
578 | 578 | ||
579 | if ($request->has('search')) { | 579 | if ($request->has('search')) { |
580 | $find_key = $request->get('search'); | 580 | $find_key = $request->get('search'); |
581 | $users = $users->where('name', 'LIKE', "%$find_key%") | 581 | $users = $users->where('name', 'LIKE', "%$find_key%") |
582 | ->orWhere('surname', 'LIKE', "%$find_key%") | 582 | ->orWhere('surname', 'LIKE', "%$find_key%") |
583 | ->orWhere('name_man', 'LIKE', "%$find_key%") | 583 | ->orWhere('name_man', 'LIKE', "%$find_key%") |
584 | ->orWhere('email', 'LIKE', "%$find_key%") | 584 | ->orWhere('email', 'LIKE', "%$find_key%") |
585 | ->orWhere('telephone', 'LIKE', "%$find_key%"); | 585 | ->orWhere('telephone', 'LIKE', "%$find_key%"); |
586 | } | 586 | } |
587 | 587 | ||
588 | // Данные | 588 | // Данные |
589 | $users = $users->Baseuser()-> | 589 | $users = $users->Baseuser()-> |
590 | orderByDesc(Worker::select('created_at')->whereColumn('workers.user_id', 'users.id')); | 590 | orderByDesc(Worker::select('created_at')->whereColumn('workers.user_id', 'users.id')); |
591 | $count_users = $users; | 591 | $count_users = $users; |
592 | $users = $users->paginate(5); | 592 | $users = $users->paginate(5); |
593 | 593 | ||
594 | $export_options = DbExportColumns::toArray(); | 594 | $export_options = DbExportColumns::toArray(); |
595 | 595 | ||
596 | $jobs_titles = Job_title::select('id', 'name') | 596 | $jobs_titles = Job_title::select('id', 'name') |
597 | ->where('is_remove', '=', 0) | 597 | ->where('is_remove', '=', 0) |
598 | ->where('is_bd', '=', 2) | 598 | ->where('is_bd', '=', 2) |
599 | ->orderByDesc('sort') | 599 | ->orderByDesc('sort') |
600 | ->orderBy('name', 'asc') | 600 | ->orderBy('name', 'asc') |
601 | ->get() | 601 | ->get() |
602 | ->toArray() | 602 | ->toArray() |
603 | ; | 603 | ; |
604 | 604 | ||
605 | return view('employers.bd', compact('users', 'count_users', 'export_options', 'jobs_titles')); | 605 | return view('employers.bd', compact('users', 'count_users', 'export_options', 'jobs_titles')); |
606 | } | 606 | } |
607 | 607 | ||
608 | //Настройка уведомлений | 608 | //Настройка уведомлений |
609 | public function subscribe() { | 609 | public function subscribe() { |
610 | return view('employers.subcribe'); | 610 | return view('employers.subcribe'); |
611 | } | 611 | } |
612 | 612 | ||
613 | //Установка уведомлений сохранение | 613 | //Установка уведомлений сохранение |
614 | public function save_subscribe(Request $request) { | 614 | public function save_subscribe(Request $request) { |
615 | dd($request->all()); | 615 | dd($request->all()); |
616 | $msg = $request->validate([ | 616 | $msg = $request->validate([ |
617 | 'subscribe_email' => 'required|email|min:5|max:255', | 617 | 'subscribe_email' => 'required|email|min:5|max:255', |
618 | ]); | 618 | ]); |
619 | return redirect()->route('employer.subscribe')->with('Вы успешно подписались на рассылку'); | 619 | return redirect()->route('employer.subscribe')->with('Вы успешно подписались на рассылку'); |
620 | } | 620 | } |
621 | 621 | ||
622 | //Сбросить форму с паролем | 622 | //Сбросить форму с паролем |
623 | public function password_reset() { | 623 | public function password_reset() { |
624 | $email = Auth()->user()->email; | 624 | $email = Auth()->user()->email; |
625 | return view('employers.password-reset', compact('email')); | 625 | return view('employers.password-reset', compact('email')); |
626 | } | 626 | } |
627 | 627 | ||
628 | //Обновление пароля | 628 | //Обновление пароля |
629 | public function new_password(Request $request) { | 629 | public function new_password(Request $request) { |
630 | $use = Auth()->user(); | 630 | $use = Auth()->user(); |
631 | $request->validate([ | 631 | $request->validate([ |
632 | 'password' => 'required|string', | 632 | 'password' => 'required|string', |
633 | 'new_password' => 'required|string', | 633 | 'new_password' => 'required|string', |
634 | 'new_password2' => 'required|string' | 634 | 'new_password2' => 'required|string' |
635 | ]); | 635 | ]); |
636 | 636 | ||
637 | if ($request->get('new_password') == $request->get('new_password2')) | 637 | if ($request->get('new_password') == $request->get('new_password2')) |
638 | if ($request->get('password') !== $request->get('new_password')) { | 638 | if ($request->get('password') !== $request->get('new_password')) { |
639 | $credentials = $request->only('email', 'password'); | 639 | $credentials = $request->only('email', 'password'); |
640 | if (Auth::attempt($credentials)) { | 640 | if (Auth::attempt($credentials)) { |
641 | 641 | ||
642 | if (!is_null($use->email_verified_at)){ | 642 | if (!is_null($use->email_verified_at)){ |
643 | 643 | ||
644 | $user_data = User_Model::find($use->id); | 644 | $user_data = User_Model::find($use->id); |
645 | $user_data->update([ | 645 | $user_data->update([ |
646 | 'password' => Hash::make($request->get('new_password')), | 646 | 'password' => Hash::make($request->get('new_password')), |
647 | 'pubpassword' => base64_encode($request->get('new_password')), | 647 | 'pubpassword' => base64_encode($request->get('new_password')), |
648 | ]); | 648 | ]); |
649 | return redirect() | 649 | return redirect() |
650 | ->route('employer.password_reset') | 650 | ->route('employer.password_reset') |
651 | ->with('success', 'Поздравляю! Вы обновили свой пароль!'); | 651 | ->with('success', 'Поздравляю! Вы обновили свой пароль!'); |
652 | } | 652 | } |
653 | 653 | ||
654 | return redirect() | 654 | return redirect() |
655 | ->route('employer.password_reset') | 655 | ->route('employer.password_reset') |
656 | ->withError('Данная учетная запись не было верифицированна!'); | 656 | ->withError('Данная учетная запись не было верифицированна!'); |
657 | } | 657 | } |
658 | } | 658 | } |
659 | 659 | ||
660 | return redirect() | 660 | return redirect() |
661 | ->route('employer.password_reset') | 661 | ->route('employer.password_reset') |
662 | ->withErrors('Не совпадение данных, обновите пароли!'); | 662 | ->withErrors('Не совпадение данных, обновите пароли!'); |
663 | } | 663 | } |
664 | 664 | ||
665 | 665 | ||
666 | 666 | ||
667 | // Форма Удаление пипла | 667 | // Форма Удаление пипла |
668 | public function delete_people() { | 668 | public function delete_people() { |
669 | $login = Auth()->user()->email; | 669 | $login = Auth()->user()->email; |
670 | return view('employers.delete_people', compact('login')); | 670 | return view('employers.delete_people', compact('login')); |
671 | } | 671 | } |
672 | 672 | ||
673 | // Удаление аккаунта | 673 | // Удаление аккаунта |
674 | public function action_delete_user(Request $request) { | 674 | public function action_delete_user(Request $request) { |
675 | $Answer = $request->all(); | 675 | $Answer = $request->all(); |
676 | $user_id = Auth()->user()->id; | 676 | $user_id = Auth()->user()->id; |
677 | $request->validate([ | 677 | $request->validate([ |
678 | 'password' => 'required|string', | 678 | 'password' => 'required|string', |
679 | ]); | 679 | ]); |
680 | 680 | ||
681 | $credentials = $request->only('email', 'password'); | 681 | $credentials = $request->only('email', 'password'); |
682 | if (Auth::attempt($credentials)) { | 682 | if (Auth::attempt($credentials)) { |
683 | Auth::logout(); | 683 | Auth::logout(); |
684 | $it = User_Model::find($user_id); | 684 | $it = User_Model::find($user_id); |
685 | $it->delete(); | 685 | $it->delete(); |
686 | return redirect()->route('index')->with('success', 'Вы успешно удалили свой аккаунт'); | 686 | return redirect()->route('index')->with('success', 'Вы успешно удалили свой аккаунт'); |
687 | } else { | 687 | } else { |
688 | return redirect()->route('employer.delete_people') | 688 | return redirect()->route('employer.delete_people') |
689 | ->withErrors( 'Неверный пароль! Нужен корректный пароль'); | 689 | ->withErrors( 'Неверный пароль! Нужен корректный пароль'); |
690 | } | 690 | } |
691 | } | 691 | } |
692 | 692 | ||
693 | public function ajax_delete_user(Request $request) { | 693 | public function ajax_delete_user(Request $request) { |
694 | $Answer = $request->all(); | 694 | $Answer = $request->all(); |
695 | $user_id = Auth()->user()->id; | 695 | $user_id = Auth()->user()->id; |
696 | $request->validate([ | 696 | $request->validate([ |
697 | 'password' => 'required|string', | 697 | 'password' => 'required|string', |
698 | ]); | 698 | ]); |
699 | $credentials = $request->only('email', 'password'); | 699 | $credentials = $request->only('email', 'password'); |
700 | if (Auth::attempt($credentials)) { | 700 | if (Auth::attempt($credentials)) { |
701 | 701 | ||
702 | return json_encode(Array('SUCCESS' => 'Вы успешно удалили свой аккаунт', | 702 | return json_encode(Array('SUCCESS' => 'Вы успешно удалили свой аккаунт', |
703 | 'email' => $request->get('email'), | 703 | 'email' => $request->get('email'), |
704 | 'password' => $request->get('password'))); | 704 | 'password' => $request->get('password'))); |
705 | } else { | 705 | } else { |
706 | return json_encode(Array('ERROR' => 'Неверный пароль! Нужен корректный пароль')); | 706 | return json_encode(Array('ERROR' => 'Неверный пароль! Нужен корректный пароль')); |
707 | } | 707 | } |
708 | } | 708 | } |
709 | 709 | ||
710 | // FAQ - Вопросы/ответы для работодателей и соискателей | ||
711 | public function faq() { | ||
712 | return view('employers.faq'); | ||
713 | } | ||
714 | |||
715 | // Рассылка сообщений | 710 | // Рассылка сообщений |
716 | public function send_all_messages() { | 711 | public function send_all_messages() { |
717 | $id = Auth()->user()->id; | 712 | $id = Auth()->user()->id; |
718 | $sending = Employer::query()->where('user_id', '=', "$id")->first(); | 713 | $sending = Employer::query()->where('user_id', '=', "$id")->first(); |
719 | 714 | ||
720 | $job_titles = Job_title::query() | 715 | $job_titles = Job_title::query() |
721 | ->where('is_remove', '=', 0) | 716 | ->where('is_remove', '=', 0) |
722 | //->where('is_bd', '=', 1) | 717 | //->where('is_bd', '=', 1) |
723 | ->orderByDesc('sort') | 718 | ->orderByDesc('sort') |
724 | ->get(); | 719 | ->get(); |
725 | 720 | ||
726 | if ($sending->sending_is) | 721 | if ($sending->sending_is) |
727 | return view('employers.send_all', compact('job_titles')); | 722 | return view('employers.send_all', compact('job_titles')); |
728 | else | 723 | else |
729 | return view('employers.send_all_danger'); | 724 | return view('employers.send_all_danger'); |
730 | } | 725 | } |
731 | 726 | ||
732 | // Отправка сообщений для информации | 727 | // Отправка сообщений для информации |
733 | public function send_all_post(Request $request) { | 728 | public function send_all_post(Request $request) { |
734 | $data = $request->all(); | 729 | $data = $request->all(); |
735 | $data['user'] = Auth()->user(); | 730 | $data['user'] = Auth()->user(); |
736 | 731 | ||
737 | $id = MessagesRequests::create([ | 732 | $id = MessagesRequests::create([ |
738 | 'user_id' => Auth()->user()->id, | 733 | 'user_id' => Auth()->user()->id, |
739 | 'job_titles' => json_encode($data['job_title_ids']), | 734 | 'job_titles' => json_encode($data['job_title_ids']), |
740 | 'text' => $data['message_text'], | 735 | 'text' => $data['message_text'], |
741 | ]); | 736 | ]); |
742 | 737 | ||
743 | try { | 738 | try { |
744 | if (!empty($id)) { | 739 | if (!empty($id)) { |
745 | Mail::to(env('EMAIL_ADMIN'))->send(new MassSendingMessages($data)); | 740 | Mail::to(env('EMAIL_ADMIN'))->send(new MassSendingMessages($data)); |
746 | } | 741 | } |
747 | } catch (Throwable $e) { | 742 | } catch (Throwable $e) { |
748 | Log::error($e); | 743 | Log::error($e); |
749 | return redirect()->route('employer.send_all_messages')->with('error', 'Ошибка почтового сервера, пожалуйста, повторите рассылку позднее'); | 744 | return redirect()->route('employer.send_all_messages')->with('error', 'Ошибка почтового сервера, пожалуйста, повторите рассылку позднее'); |
750 | } | 745 | } |
751 | 746 | ||
752 | return redirect()->route('employer.send_all_messages')->with('success', 'Запрос на рассылку был успешно отправлен.'); | 747 | return redirect()->route('employer.send_all_messages')->with('success', 'Запрос на рассылку был успешно отправлен.'); |
753 | } | 748 | } |
754 | 749 | ||
755 | // База резюме | 750 | // База резюме |
756 | public function bd_tupe(Request $request) { | 751 | public function bd_tupe(Request $request) { |
757 | $Resume = User_Model::query()->with('workers')->where('is_bd', '=', '1')->get(); | 752 | $Resume = User_Model::query()->with('workers')->where('is_bd', '=', '1')->get(); |
758 | 753 | ||
759 | return view('employers.bd_tupe', compact('Resume')); | 754 | return view('employers.bd_tupe', compact('Resume')); |
760 | } | 755 | } |
761 | 756 | ||
762 | ////////////////////////////////////////////////////////////////// | 757 | ////////////////////////////////////////////////////////////////// |
763 | // Отправил сообщение | 758 | // Отправил сообщение |
764 | ////////////////////////////////////////////////////////////////// | 759 | ////////////////////////////////////////////////////////////////// |
765 | public function new_message(Request $request) { | 760 | public function new_message(Request $request) { |
766 | $params = $request->all(); | 761 | $params = $request->all(); |
767 | 762 | ||
768 | $id = $params['_user_id']; | 763 | $id = $params['_user_id']; |
769 | $message_params = [ | 764 | $message_params = [ |
770 | 'title' => $params['title'], | 765 | 'title' => $params['title'], |
771 | 'text' => $params['text'], | 766 | 'text' => $params['text'], |
772 | 'ad_employer_id' => $params['_vacancy'], | 767 | 'ad_employer_id' => $params['_vacancy'], |
773 | 'flag_new' => 1 | 768 | 'flag_new' => 1 |
774 | ]; | 769 | ]; |
775 | 770 | ||
776 | Message::add_message( | 771 | Message::add_message( |
777 | $request, | 772 | $request, |
778 | $params['_user_id'], | 773 | $params['_user_id'], |
779 | $params['_to_user_id'], | 774 | $params['_to_user_id'], |
780 | $message_params, | 775 | $message_params, |
781 | file_store_path: "worker/$id" | 776 | file_store_path: "worker/$id" |
782 | ); | 777 | ); |
783 | 778 | ||
784 | return redirect()->route('employer.messages', ['type_message' => 'output']); | 779 | return redirect()->route('employer.messages', ['type_message' => 'output']); |
785 | } | 780 | } |
786 | 781 | ||
787 | // Восстановление пароля | 782 | // Восстановление пароля |
788 | public function repair_password(Request $request) { | 783 | public function repair_password(Request $request) { |
789 | $params = $request->get('email'); | 784 | $params = $request->get('email'); |
790 | } | 785 | } |
791 | 786 | ||
792 | // Избранные люди на корабль | 787 | // Избранные люди на корабль |
793 | public function selected_people(Request $request) { | 788 | public function selected_people(Request $request) { |
794 | $id = $request->get('id'); | 789 | $id = $request->get('id'); |
795 | $favorite_people = Job_title::query()->orderByDesc('sort')->OrderBy('name')-> | 790 | $favorite_people = Job_title::query()->orderByDesc('sort')->OrderBy('name')-> |
796 | where('is_remove', '=', '0')-> | 791 | where('is_remove', '=', '0')-> |
797 | where('is_bd', '=', '0')-> | 792 | where('is_bd', '=', '0')-> |
798 | where('position_id', $id)-> | 793 | where('position_id', $id)-> |
799 | get(); | 794 | get(); |
800 | return view('favorite_people', compact('favorite_people')); | 795 | return view('favorite_people', compact('favorite_people')); |
801 | } | 796 | } |
802 | } | 797 | } |
803 | 798 |
app/Http/Controllers/FaqController.php
File was created | 1 | <?php | |
2 | |||
3 | namespace App\Http\Controllers; | ||
4 | |||
5 | use App\Enums\FaqTarget; | ||
6 | use App\Http\Requests\FaqActionRequest; | ||
7 | use App\Models\Faq; | ||
8 | use Illuminate\Http\RedirectResponse; | ||
9 | |||
10 | class FaqController extends Controller | ||
11 | { | ||
12 | public function get(string $userType = null) { | ||
13 | return Faq::query() | ||
14 | ->when($userType, function ($query, $userType) { | ||
15 | $query->where('target', $userType); | ||
16 | }) | ||
17 | ->where('active', true) | ||
18 | ->get(); | ||
19 | } | ||
20 | |||
21 | public function showListForAdmin(){ | ||
22 | |||
23 | return view( | ||
24 | 'admin.faq.list', | ||
25 | [ | ||
26 | 'questions' => $this->get(), | ||
27 | ] | ||
28 | ); | ||
29 | } | ||
30 | |||
31 | public function showListForUser() | ||
32 | { | ||
33 | return view( | ||
34 | 'employers.faq', | ||
35 | [ | ||
36 | 'questionsEmployer' => $this->get(FaqTarget::EMPLOYER->value), | ||
37 | 'questionsEmployee' => $this->get(FaqTarget::EMPLOYEE->value) | ||
38 | ] | ||
39 | ); | ||
40 | } | ||
41 | |||
42 | public function create() | ||
43 | { | ||
44 | return view('admin.faq.create'); | ||
45 | } | ||
46 | |||
47 | public function store(FaqActionRequest $request) | ||
48 | { | ||
49 | Faq::query()->create($request->toArray()); | ||
50 | |||
51 | return response()->redirectTo(route('admin.faq.list')); | ||
52 | } | ||
53 | |||
54 | public function edit(int $id) | ||
55 | { | ||
56 | return view('admin.faq.update', ['question' => Faq::find($id)]); | ||
57 | } | ||
58 | |||
59 | public function update(FaqActionRequest $request, int $id) | ||
60 | { | ||
61 | Faq::query() | ||
62 | ->where('id', $id) | ||
63 | ->update($request->all(['question', 'target', 'answer'])); | ||
64 | |||
65 | return response()->redirectTo(route('admin.faq.list')); | ||
66 | } | ||
67 | |||
68 | public function destroy(int $id): RedirectResponse | ||
69 | { | ||
70 | Faq::query() | ||
71 | ->where('id', $id) | ||
72 | ->delete(); | ||
73 | |||
74 | return response()->redirectTo(route('admin.faq.list')); | ||
75 | } | ||
76 | } | ||
77 |
app/Http/Requests/FaqActionRequest.php
File was created | 1 | <?php | |
2 | |||
3 | namespace App\Http\Requests; | ||
4 | |||
5 | use App\Enums\FaqTarget; | ||
6 | use Illuminate\Foundation\Http\FormRequest; | ||
7 | use Illuminate\Validation\Rule; | ||
8 | |||
9 | class FaqActionRequest extends FormRequest | ||
10 | { | ||
11 | public function rules() | ||
12 | { | ||
13 | return [ | ||
14 | 'question' => 'required|string|max:255', | ||
15 | 'answer' => 'required|string', | ||
16 | 'target' => ['required', 'string', Rule::enum(FaqTarget::class)], | ||
17 | ]; | ||
18 | } | ||
19 | } | ||
20 |
app/Models/Faq.php
File was created | 1 | <?php | |
2 | |||
3 | namespace App\Models; | ||
4 | |||
5 | use Illuminate\Database\Eloquent\Model; | ||
6 | |||
7 | /** | ||
8 | * @property string $question | ||
9 | * @property string $answer | ||
10 | * @property string $target | ||
11 | * @property boolean $active | ||
12 | */ | ||
13 | class Faq extends Model | ||
14 | { | ||
15 | protected $guarded = [ | ||
16 | 'created_at', | ||
17 | 'updated_at' | ||
18 | ]; | ||
19 | } | ||
20 |
database/migrations/2024_09_02_072828_create_faqs_table.php
File was created | 1 | <?php | |
2 | |||
3 | use Illuminate\Database\Migrations\Migration; | ||
4 | use Illuminate\Database\Schema\Blueprint; | ||
5 | use Illuminate\Support\Facades\Schema; | ||
6 | |||
7 | return new class extends Migration | ||
8 | { | ||
9 | /** | ||
10 | * Run the migrations. | ||
11 | * | ||
12 | * @return void | ||
13 | */ | ||
14 | public function up() | ||
15 | { | ||
16 | Schema::create('faqs', function (Blueprint $table) { | ||
17 | $table->id(); | ||
18 | $table->string('question'); | ||
19 | $table->text('answer'); | ||
20 | $table->string('target')->default('employer'); | ||
21 | $table->boolean('active')->default(true); | ||
22 | $table->timestamps(); | ||
23 | }); | ||
24 | } | ||
25 | |||
26 | /** | ||
27 | * Reverse the migrations. | ||
28 | * | ||
29 | * @return void | ||
30 | */ | ||
31 | public function down() | ||
32 | { | ||
33 | Schema::dropIfExists('faqs'); | ||
34 | } | ||
35 | }; | ||
36 |
resources/views/admin/faq/create.blade.php
File was created | 1 | @extends('layout.admin', ['title' => 'Админка - Страница статистики']) | |
2 | |||
3 | @section('content') | ||
4 | <form method="POST" action="{{ route('admin.faq.store') }}"> | ||
5 | @include('admin.faq.form') | ||
6 | </form> | ||
7 | @endsection | ||
8 |
resources/views/admin/faq/form.blade.php
File was created | 1 | @csrf | |
2 | |||
3 | @isset($question) | ||
4 | @method('PUT') | ||
5 | @endisset | ||
6 | |||
7 | <script> | ||
8 | function translit(word){ | ||
9 | var answer = ''; | ||
10 | var converter = { | ||
11 | 'а': 'a', 'б': 'b', 'в': 'v', 'г': 'g', 'д': 'd', | ||
12 | 'е': 'e', 'ё': 'e', 'ж': 'zh', 'з': 'z', 'и': 'i', | ||
13 | 'й': 'y', 'к': 'k', 'л': 'l', 'м': 'm', 'н': 'n', | ||
14 | 'о': 'o', 'п': 'p', 'р': 'r', 'с': 's', 'т': 't', | ||
15 | 'у': 'u', 'ф': 'f', 'х': 'h', 'ц': 'c', 'ч': 'ch', | ||
16 | 'ш': 'sh', 'щ': 'sch', 'ь': '', 'ы': 'y', 'ъ': '', | ||
17 | 'э': 'e', 'ю': 'yu', 'я': 'ya', | ||
18 | |||
19 | 'А': 'A', 'Б': 'B', 'В': 'V', 'Г': 'G', 'Д': 'D', | ||
20 | 'Е': 'E', 'Ё': 'E', 'Ж': 'Zh', 'З': 'Z', 'И': 'I', | ||
21 | 'Й': 'Y', 'К': 'K', 'Л': 'L', 'М': 'M', 'Н': 'N', | ||
22 | 'О': 'O', 'П': 'P', 'Р': 'R', 'С': 'S', 'Т': 'T', | ||
23 | 'У': 'U', 'Ф': 'F', 'Х': 'H', 'Ц': 'C', 'Ч': 'Ch', | ||
24 | 'Ш': 'Sh', 'Щ': 'Sch', 'Ь': '', 'Ы': 'Y', 'Ъ': '', | ||
25 | 'Э': 'E', 'Ю': 'Yu', 'Я': 'Ya', ' ': '-' | ||
26 | }; | ||
27 | |||
28 | for (var i = 0; i < word.length; ++i ) { | ||
29 | if (converter[word[i]] == undefined){ | ||
30 | answer += word[i]; | ||
31 | } else { | ||
32 | answer += converter[word[i]]; | ||
33 | } | ||
34 | } | ||
35 | |||
36 | return answer; | ||
37 | } | ||
38 | |||
39 | window.addEventListener("DOMContentLoaded", (event) => { | ||
40 | let title = document.querySelector('#name'); | ||
41 | let text = document.querySelector('#slug'); | ||
42 | |||
43 | title.addEventListener('input', function() { | ||
44 | text.value = translit(this.value); | ||
45 | }); | ||
46 | }); | ||
47 | |||
48 | </script> | ||
49 | <div class="px-4 py-3 mb-8 bg-white rounded-lg shadow-md dark:bg-gray-800"> | ||
50 | <label class="block text-sm"> | ||
51 | <span class="text-gray-700 dark:text-gray-400">Вопрос</span> | ||
52 | <input name="question" id="question" | ||
53 | class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input" | ||
54 | placeholder="Вопрос" value="{{ old('name') ?? $question->question ?? '' }}" | ||
55 | /> | ||
56 | @error('question') | ||
57 | <span class="text-xs text-red-600 dark:text-red-400"> | ||
58 | {{ $message }} | ||
59 | </span> | ||
60 | @enderror | ||
61 | </label><br> | ||
62 | |||
63 | <label class="block text-sm"> | ||
64 | <span class="text-gray-700 dark:text-gray-400">Ответ</span> | ||
65 | <textarea class="block w-full mt-1 text-sm dark:text-gray-300 dark:border-gray-600 dark:bg-gray-700 form-textarea focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:focus:shadow-outline-gray ckeditor" name="answer" placeholder="Ответ" required rows="10"> | ||
66 | {{ old('text2') ?? $question->answer ?? '' }} | ||
67 | </textarea> | ||
68 | @error('answer') | ||
69 | <span class="text-xs text-red-600 dark:text-red-400"> | ||
70 | {{ $message }} | ||
71 | </span> | ||
72 | @enderror | ||
73 | </label><br> | ||
74 | |||
75 | <label class="block text-sm"> | ||
76 | <span class="text-gray-700 dark:text-gray-400">Ответ</span> | ||
77 | <select name="target" id="target" placeholder="Для кого" | ||
78 | class="block w-full mt-1 text-sm dark:text-gray-300 dark:border-gray-600 dark:bg-gray-700 form-select focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:focus:shadow-outline-gray"> | ||
79 | <option value="{{ \App\Enums\FaqTarget::EMPLOYER->value }}" @if (isset($question) && \App\Enums\FaqTarget::EMPLOYER->value==$question->target) selected @endif>Работодатель</option> | ||
80 | <option value="{{ \App\Enums\FaqTarget::EMPLOYEE->value }}" @if (isset($question) && \App\Enums\FaqTarget::EMPLOYEE->value==$question->target) selected @endif>Работник</option> | ||
81 | </select> | ||
82 | @error('target') | ||
83 | <span class="text-xs text-red-600 dark:text-red-400"> | ||
84 | {{ $message }} | ||
85 | </span> | ||
86 | @enderror | ||
87 | </label><br> | ||
88 | |||
89 | <div class="flex flex-col flex-wrap mb-4 space-y-4 md:flex-row md:items-end md:space-x-4"> | ||
90 | <div> | ||
91 | <button type="submit" class="px-3 py-1 text-sm font-medium leading-5 text-white transition-colors duration-150 bg-purple-600 border border-transparent rounded-md active:bg-purple-600 hover:bg-purple-700 focus:outline-none focus:shadow-outline-purple"> | ||
92 | Сохранить | ||
93 | </button> | ||
94 | <a href="{{ route('admin.faq.list') }}" | ||
95 | class="px-3 py-1 text-sm font-medium leading-5 text-white transition-colors duration-150 bg-purple-600 border border-transparent rounded-md active:bg-purple-600 hover:bg-purple-700 focus:outline-none focus:shadow-outline-purple" | ||
96 | style="display: -webkit-inline-box; height: 30px!important;" | ||
97 | >Назад</a> | ||
98 | </div> | ||
99 | </div> | ||
100 | </div> | ||
101 |
resources/views/admin/faq/list.blade.php
File was created | 1 | @extends('layout.admin', ['title' => 'Админка - Страница статистики']) | |
2 | |||
3 | @section('content') | ||
4 | |||
5 | <a href="{{ route('admin.faq.create') }}" style="width: 200px" class="px-3 py-1 text-sm font-medium leading-5 text-white transition-colors duration-150 bg-purple-600 border border-transparent rounded-md active:bg-purple-600 hover:bg-purple-700 focus:outline-none focus:shadow-outline-purple"> | ||
6 | Добавить вопрос/ответ | ||
7 | </a> | ||
8 | <br> | ||
9 | <div class="w-full overflow-hidden rounded-lg shadow-xs" id="ajax_block"> | ||
10 | |||
11 | <div class="w-full overflow-x-auto"> | ||
12 | <table class="w-full whitespace-no-wrap"> | ||
13 | <thead> | ||
14 | <tr 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"> | ||
15 | <th class="px-4 py-3">ID</th> | ||
16 | <th class="px-4 py-3">Вопрос</th> | ||
17 | <th class="px-4 py-3">Дата создания</th> | ||
18 | <th class="px-4 py-3"></th> | ||
19 | <th class="px-4 py-3"></th> | ||
20 | </tr> | ||
21 | </thead> | ||
22 | <tbody class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800"> | ||
23 | @foreach($questions as $question) | ||
24 | <tr class="text-gray-700 dark:text-gray-400"> | ||
25 | <td class="px-4 py-3"> | ||
26 | {{$question->id}} | ||
27 | </td> | ||
28 | <td class="px-4 py-3"> | ||
29 | {{$question->question}} | ||
30 | </td> | ||
31 | <td class="px-4 py-3"> | ||
32 | {{$question->created_at}} | ||
33 | </td> | ||
34 | <td class="px-4 py-3 text-sm_"> | ||
35 | <a href="{{ route('admin.faq.edit', ['id' => $question->id]) }}">Изменить</a> | ||
36 | </td> | ||
37 | <td class="px-4 py-3 text-sm_"> | ||
38 | <a href="{{ route('admin.faq.destroy', ['id' => $question->id]) }}">Удалить</a> | ||
39 | </td> | ||
40 | </tr> | ||
41 | @endforeach | ||
42 | </tbody> | ||
43 | </table> | ||
44 | </div> | ||
45 | </div> | ||
46 | @endsection | ||
47 |
resources/views/admin/faq/update.blade.php
File was created | 1 | @extends('layout.admin', ['title' => 'Админка - Добавление страницы']) | |
2 | |||
3 | @section('content') | ||
4 | <form method="POST" action="{{ route('admin.faq.update', ['id' => $question->id]) }}" enctype="multipart/form-data"> | ||
5 | @include('admin.faq.form') | ||
6 | </form> | ||
7 | @endsection | ||
8 |
resources/views/employers/faq.blade.php
1 | @extends('layout.frontend', ['title' => 'FAQ Вопросы и ответы - РекаМоре']) | 1 | @extends('layout.frontend', ['title' => 'FAQ Вопросы и ответы - РекаМоре']) |
2 | 2 | ||
3 | @section('scripts') | ||
4 | <script> | ||
5 | $(document).on('change', '#sort_ajax', function() { | ||
6 | var this_ = $(this); | ||
7 | var val_ = this_.val(); | ||
8 | console.log('sort items '+val_); | ||
9 | |||
10 | $.ajax({ | ||
11 | type: "GET", | ||
12 | url: "{{ route('shipping_companies') }}", | ||
13 | data: "sort="+val_+"&block=1", | ||
14 | success: function (data) { | ||
15 | console.log('Выбор сортировки'); | ||
16 | console.log(data); | ||
17 | $('#block_1').html(data); | ||
18 | }, | ||
19 | headers: { | ||
20 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') | ||
21 | }, | ||
22 | error: function (data) { | ||
23 | data = JSON.stringify(data); | ||
24 | console.log('Error: ' + data); | ||
25 | } | ||
26 | }); | ||
27 | |||
28 | $.ajax({ | ||
29 | type: "GET", | ||
30 | url: "{{ route('shipping_companies') }}", | ||
31 | data: "sort="+val_+"&block=2", | ||
32 | success: function (data) { | ||
33 | console.log('Выбор сортировки2'); | ||
34 | console.log(data); | ||
35 | history.pushState({}, '', "{{ route('shipping_companies') }}?sort="+val_+"@if (isset($_GET['page']))&page={{ $_GET['page'] }}@endif"); | ||
36 | $('#block_2').html(data); | ||
37 | }, | ||
38 | headers: { | ||
39 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') | ||
40 | }, | ||
41 | error: function (data) { | ||
42 | data = JSON.stringify(data); | ||
43 | console.log('Error: ' + data); | ||
44 | } | ||
45 | }); | ||
46 | }); | ||
47 | </script> | ||
48 | @endsection | ||
49 | |||
50 | @section('content') | 3 | @section('content') |
51 | <section class="cabinet"> | 4 | <section class="cabinet"> |
52 | <div class="container"> | 5 | <div class="container"> |
53 | <ul class="breadcrumbs cabinet__breadcrumbs"> | 6 | <ul class="breadcrumbs cabinet__breadcrumbs"> |
54 | <li><a href="{{ route('index') }}">Главная</a></li> | 7 | <li><a href="{{ route('index') }}">Главная</a></li> |
55 | <li><b>Личный кабинет</b></li> | 8 | <li><b>Личный кабинет</b></li> |
56 | </ul> | 9 | </ul> |
57 | <div class="cabinet__wrapper"> | 10 | <div class="cabinet__wrapper"> |
58 | <div class="cabinet__side"> | 11 | <div class="cabinet__side"> |
59 | <div class="cabinet__side-toper"> | 12 | <div class="cabinet__side-toper"> |
60 | @include('employers.emblema') | 13 | @include('employers.emblema') |
61 | </div> | 14 | </div> |
62 | 15 | ||
63 | @include('employers.menu', ['item' => 10]) | 16 | @include('employers.menu', ['item' => 10]) |
64 | 17 | ||
65 | </div> | 18 | </div> |
66 | 19 | ||
67 | 20 | ||
68 | <div class="cabinet__body"> | 21 | <div class="cabinet__body"> |
69 | <div class="cabinet__body-item"> | 22 | <div class="cabinet__body-item"> |
70 | <h2 class="title cabinet__title">FAQ - Инструкция по размещению вакансии</h2> | 23 | <h2 class="title cabinet__title">FAQ - Инструкция по размещению вакансии</h2> |
71 | </div> | 24 | </div> |
72 | <div class="cabinet__body-item"> | 25 | <div class="cabinet__body-item"> |
73 | <div class="cabinet__tabs"> | 26 | <div class="cabinet__tabs"> |
74 | <button type="button" class="button button_light active" data-tab="1">Работодателю</button> | 27 | <button type="button" class="button button_light active" data-tab="1">Работодателю</button> |
75 | <button type="button" class="button button_light" data-tab="2">Работнику</button> | 28 | <button type="button" class="button button_light" data-tab="2">Работнику</button> |
76 | </div> | 29 | </div> |
77 | <div class="cabinet__bodies showed" data-body="1"> | 30 | <div class="cabinet__bodies showed" data-body="1"> |
78 | <div class="faqs"> | 31 | <div class="faqs"> |
79 | <!--<button type="button" class="faqs__button js-toggle js-parent-toggle button button_light button_more"> | 32 | @foreach($questionsEmployer as $question) |
80 | <span>Показать ещё</span> | ||
81 | <span>Свернуть</span> | ||
82 | </button>--> | ||
83 | <div class="faqs__body"> | 33 | <div class="faqs__body"> |
84 | <div class="faqs__item"> | 34 | <div class="faqs__item"> |
85 | <button type="button" class="faqs__item-button js-toggle active"> | ||
86 | <span>Инструкция 1 для работодателя</span> | ||
87 | <i> | ||
88 | <svg> | ||
89 | <use xlink:href="{{ asset('images/sprite.svg#arrow') }}"></use> | ||
90 | </svg> | ||
91 | </i> | ||
92 | </button> | ||
93 | <div class="faqs__item-body"> | ||
94 | <p>Ясность нашей позиции очевидна: выбранный нами инновационный путь обеспечивает актуальность дальнейших направлений развития.</p> | ||
95 | <p>Высокий уровень вовлечения представителей целевой аудитории является четким доказательством простого факта: базовый вектор развития создаёт необходимость включения в производственный план целого ряда внеочередных мероприятий с учётом комплекса позиций, занимаемых участниками в отношении поставленных задач.</p> | ||
96 | </div> | ||
97 | </div> | ||
98 | <div class="faqs__item"> | ||
99 | <button type="button" class="faqs__item-button js-toggle"> | ||
100 | <span>Инструкция 2 для работодателя</span> | ||
101 | <i> | ||
102 | <svg> | ||
103 | <use xlink:href="images/sprite.svg#arrow"></use> | ||
104 | </svg> | ||
105 | </i> | ||
106 | </button> | ||
107 | <div class="faqs__item-body"> | ||
108 | <p>Ясность нашей позиции очевидна: выбранный нами инновационный путь обеспечивает актуальность дальнейших направлений развития.</p> | ||
109 | <p>Высокий уровень вовлечения представителей целевой аудитории является четким доказательством простого факта: базовый вектор развития создаёт необходимость включения в производственный план целого ряда внеочередных мероприятий с учётом комплекса позиций, занимаемых участниками в отношении поставленных задач.</p> | ||
110 | </div> | ||
111 | </div> | ||
112 | <div class="faqs__item"> | ||
113 | <button type="button" class="faqs__item-button js-toggle"> | ||
114 | <span>Вопрос 3</span> | ||
115 | <i> | ||
116 | <svg> | ||
117 | <use xlink:href="images/sprite.svg#arrow"></use> | ||
118 | </svg> | ||
119 | </i> | ||
120 | </button> | ||
121 | <div class="faqs__item-body"> | ||
122 | <p>Ясность нашей позиции очевидна: выбранный нами инновационный путь обеспечивает актуальность дальнейших направлений развития.</p> | ||
123 | <p>Высокий уровень вовлечения представителей целевой аудитории является четким доказательством простого факта: базовый вектор развития создаёт необходимость включения в производственный план целого ряда внеочередных мероприятий с учётом комплекса позиций, занимаемых участниками в отношении поставленных задач.</p> | ||
124 | </div> | ||
125 | </div> | ||
126 | <div class="faqs__item"> | ||
127 | <button type="button" class="faqs__item-button js-toggle"> | ||
128 | <span>Вопрос 4</span> | ||
129 | <i> | ||
130 | <svg> | ||
131 | <use xlink:href="images/sprite.svg#arrow"></use> | ||
132 | </svg> | ||
133 | </i> | ||
134 | </button> | ||
135 | <div class="faqs__item-body"> | ||
136 | <p>Ясность нашей позиции очевидна: выбранный нами инновационный путь обеспечивает актуальность дальнейших направлений развития.</p> | ||
137 | <p>Высокий уровень вовлечения представителей целевой аудитории является четким доказательством простого факта: базовый вектор развития создаёт необходимость включения в производственный план целого ряда внеочередных мероприятий с учётом комплекса позиций, занимаемых участниками в отношении поставленных задач.</p> | ||
138 | </div> | ||
139 | </div> | ||
140 | <div class="faqs__item"> | ||
141 | <button type="button" class="faqs__item-button js-toggle"> | ||
142 | <span>Вопрос 5</span> | ||
143 | <i> | ||
144 | <svg> | ||
145 | <use xlink:href="images/sprite.svg#arrow"></use> | ||
146 | </svg> | ||
147 | </i> | ||
148 | </button> | ||
149 | <div class="faqs__item-body"> | ||
150 | <p>Ясность нашей позиции очевидна: выбранный нами инновационный путь обеспечивает актуальность дальнейших направлений развития.</p> | ||
151 | <p>Высокий уровень вовлечения представителей целевой аудитории является четким доказательством простого факта: базовый вектор развития создаёт необходимость включения в производственный план целого ряда внеочередных мероприятий с учётом комплекса позиций, занимаемых участниками в отношении поставленных задач.</p> | ||
152 | </div> | ||
153 | </div> | ||
154 | <div class="faqs__item"> | ||
155 | <button type="button" class="faqs__item-button js-toggle"> | 35 | <button type="button" class="faqs__item-button js-toggle"> |
156 | <span>Вопрос 6</span> | 36 | <span>{{ $question->question }}</span> |
157 | <i> | 37 | <i> |
158 | <svg> | 38 | <svg> |
159 | <use xlink:href="images/sprite.svg#arrow"></use> | 39 | <use xlink:href="{{ asset('images/sprite.svg#arrow') }}"></use> |
160 | </svg> | ||
161 | </i> | ||
162 | </button> | ||
163 | <div class="faqs__item-body"> | ||
164 | <p>Ясность нашей позиции очевидна: выбранный нами инновационный путь обеспечивает актуальность дальнейших направлений развития.</p> | ||
165 | <p>Высокий уровень вовлечения представителей целевой аудитории является четким доказательством простого факта: базовый вектор развития создаёт необходимость включения в производственный план целого ряда внеочередных мероприятий с учётом комплекса позиций, занимаемых участниками в отношении поставленных задач.</p> | ||
166 | </div> | ||
167 | </div> | ||
168 | <div class="faqs__item"> | ||
169 | <button type="button" class="faqs__item-button js-toggle"> | ||
170 | <span>Вопрос 7</span> | ||
171 | <i> | ||
172 | <svg> | ||
173 | <use xlink:href="images/sprite.svg#arrow"></use> | ||
174 | </svg> | ||
175 | </i> | ||
176 | </button> | ||
177 | <div class="faqs__item-body"> | ||
178 | <p>Ясность нашей позиции очевидна: выбранный нами инновационный путь обеспечивает актуальность дальнейших направлений развития.</p> | ||
179 | <p>Высокий уровень вовлечения представителей целевой аудитории является четким доказательством простого факта: базовый вектор развития создаёт необходимость включения в производственный план целого ряда внеочередных мероприятий с учётом комплекса позиций, занимаемых участниками в отношении поставленных задач.</p> | ||
180 | </div> | ||
181 | </div> | ||
182 | <div class="faqs__item"> | ||
183 | <button type="button" class="faqs__item-button js-toggle"> | ||
184 | <span>Вопрос 8</span> | ||
185 | <i> | ||
186 | <svg> | ||
187 | <use xlink:href="images/sprite.svg#arrow"></use> | ||
188 | </svg> | ||
189 | </i> | ||
190 | </button> | ||
191 | <div class="faqs__item-body"> | ||
192 | <p>Ясность нашей позиции очевидна: выбранный нами инновационный путь обеспечивает актуальность дальнейших направлений развития.</p> | ||
193 | <p>Высокий уровень вовлечения представителей целевой аудитории является четким доказательством простого факта: базовый вектор развития создаёт необходимость включения в производственный план целого ряда внеочередных мероприятий с учётом комплекса позиций, занимаемых участниками в отношении поставленных задач.</p> | ||
194 | </div> | ||
195 | </div> | ||
196 | <div class="faqs__item"> | ||
197 | <button type="button" class="faqs__item-button js-toggle"> | ||
198 | <span>Вопрос 9</span> | ||
199 | <i> | ||
200 | <svg> | ||
201 | <use xlink:href="images/sprite.svg#arrow"></use> | ||
202 | </svg> | ||
203 | </i> | ||
204 | </button> | ||
205 | <div class="faqs__item-body"> | ||
206 | <p>Ясность нашей позиции очевидна: выбранный нами инновационный путь обеспечивает актуальность дальнейших направлений развития.</p> | ||
207 | <p>Высокий уровень вовлечения представителей целевой аудитории является четким доказательством простого факта: базовый вектор развития создаёт необходимость включения в производственный план целого ряда внеочередных мероприятий с учётом комплекса позиций, занимаемых участниками в отношении поставленных задач.</p> | ||
208 | </div> | ||
209 | </div> | ||
210 | <div class="faqs__item"> | ||
211 | <button type="button" class="faqs__item-button js-toggle"> | ||
212 | <span>Вопрос 10</span> | ||
213 | <i> | ||
214 | <svg> | ||
215 | <use xlink:href="images/sprite.svg#arrow"></use> | ||
216 | </svg> | 40 | </svg> |
217 | </i> | 41 | </i> |
218 | </button> | 42 | </button> |
219 | <div class="faqs__item-body"> | 43 | <div class="faqs__item-body" style="white-space:break-spaces; word-break: break-word;">{{ $question->answer }}</div> |
220 | <p>Ясность нашей позиции очевидна: выбранный нами инновационный путь обеспечивает актуальность дальнейших направлений развития.</p> | ||
221 | <p>Высокий уровень вовлечения представителей целевой аудитории является четким доказательством простого факта: базовый вектор развития создаёт необходимость включения в производственный план целого ряда внеочередных мероприятий с учётом комплекса позиций, занимаемых участниками в отношении поставленных задач.</p> | ||
222 | </div> | ||
223 | </div> | 44 | </div> |
224 | </div> | 45 | </div> |
46 | @endforeach | ||
225 | </div> | 47 | </div> |
226 | </div> | 48 | </div> |
227 | <div class="cabinet__bodies" data-body="2"> | 49 | <div class="cabinet__bodies" data-body="2"> |
228 | <div class="faqs"> | 50 | <div class="faqs"> |
229 | <!--<button type="button" class="faqs__button js-toggle js-parent-toggle button button_light button_more"> | 51 | @foreach($questionsEmployee as $question) |
230 | <span>Показать ещё</span> | 52 | <div class="faqs__body"> |
231 | <span>Свернуть</span> | 53 | <div class="faqs__item"> |
232 | </button>--> | 54 | <button type="button" class="faqs__item-button js-toggle"> |
233 | <div class="faqs__body"> | 55 | <span>{{ $question->question }}</span> |
234 | <div class="faqs__item"> | 56 | <i> |
235 | <button type="button" class="faqs__item-button js-toggle active"> | 57 | <svg> |
236 | <span>Инструкция для соискателя 1</span> | 58 | <use xlink:href="{{ asset('images/sprite.svg#arrow') }}"></use> |
237 | <i> | 59 | </svg> |
238 | <svg> | 60 | </i> |
239 | <use xlink:href="images/sprite.svg#arrow"></use> | 61 | </button> |
240 | </svg> | 62 | <div class="faqs__item-body" style="white-space:break-spaces; word-break: break-word;">{{ $question->answer }}</div> |
241 | </i> | 63 | </div> |
242 | </button> | 64 | </div> |
243 | <div class="faqs__item-body"> | 65 | @endforeach |
244 | <p>Ясность нашей позиции очевидна: выбранный нами инновационный путь обеспечивает актуальность дальнейших направлений развития.</p> | ||
245 | <p>Высокий уровень вовлечения представителей целевой аудитории является четким доказательством простого факта: базовый вектор развития создаёт необходимость включения в производственный план целого ряда внеочередных мероприятий с учётом комплекса позиций, занимаемых участниками в отношении поставленных задач.</p> | ||
246 | </div> | ||
247 | </div> | ||
248 | <div class="faqs__item"> | ||
249 | <button type="button" class="faqs__item-button js-toggle"> | ||
250 | <span>Вопрос 2</span> | ||
251 | <i> | ||
252 | <svg> | ||
253 | <use xlink:href="images/sprite.svg#arrow"></use> | ||
254 | </svg> | ||
255 | </i> | ||
256 | </button> | ||
257 | <div class="faqs__item-body"> | ||
258 | <p>Ясность нашей позиции очевидна: выбранный нами инновационный путь обеспечивает актуальность дальнейших направлений развития.</p> | ||
259 | <p>Высокий уровень вовлечения представителей целевой аудитории является четким доказательством простого факта: базовый вектор развития создаёт необходимость включения в производственный план целого ряда внеочередных мероприятий с учётом комплекса позиций, занимаемых участниками в отношении поставленных задач.</p> | ||
260 | </div> | ||
261 | </div> | ||
262 | <div class="faqs__item"> | ||
263 | <button type="button" class="faqs__item-button js-toggle"> | ||
264 | <span>Вопрос 2</span> | ||
265 | <i> | ||
266 | <svg> | ||
267 | <use xlink:href="images/sprite.svg#arrow"></use> | ||
268 | </svg> | ||
269 | </i> | ||
270 | </button> | ||
271 | <div class="faqs__item-body"> | ||
272 | <p>Ясность нашей позиции очевидна: выбранный нами инновационный путь обеспечивает актуальность дальнейших направлений развития.</p> | ||
273 | <p>Высокий уровень вовлечения представителей целевой аудитории является четким доказательством простого факта: базовый вектор развития создаёт необходимость включения в производственный план целого ряда внеочередных мероприятий с учётом комплекса позиций, занимаемых участниками в отношении поставленных задач.</p> | ||
274 | </div> | ||
275 | </div> | ||
276 | <div class="faqs__item"> | ||
277 | <button type="button" class="faqs__item-button js-toggle"> | ||
278 | <span>Вопрос 2</span> | ||
279 | <i> | ||
280 | <svg> | ||
281 | <use xlink:href="images/sprite.svg#arrow"></use> | ||
282 | </svg> | ||
283 | </i> | ||
284 | </button> | ||
285 | <div class="faqs__item-body"> | ||
286 | <p>Ясность нашей позиции очевидна: выбранный нами инновационный путь обеспечивает актуальность дальнейших направлений развития.</p> | ||
287 | <p>Высокий уровень вовлечения представителей целевой аудитории является четким доказательством простого факта: базовый вектор развития создаёт необходимость включения в производственный план целого ряда внеочередных мероприятий с учётом комплекса позиций, занимаемых участниками в отношении поставленных задач.</p> | ||
288 | </div> | ||
289 | </div> | ||
290 | <div class="faqs__item"> | ||
291 | <button type="button" class="faqs__item-button js-toggle"> | ||
292 | <span>Вопрос 2</span> | ||
293 | <i> | ||
294 | <svg> | ||
295 | <use xlink:href="images/sprite.svg#arrow"></use> | ||
296 | </svg> | ||
297 | </i> | ||
298 | </button> | ||
299 | <div class="faqs__item-body"> | ||
300 | <p>Ясность нашей позиции очевидна: выбранный нами инновационный путь обеспечивает актуальность дальнейших направлений развития.</p> | ||
301 | <p>Высокий уровень вовлечения представителей целевой аудитории является четким доказательством простого факта: базовый вектор развития создаёт необходимость включения в производственный план целого ряда внеочередных мероприятий с учётом комплекса позиций, занимаемых участниками в отношении поставленных задач.</p> | ||
302 | </div> | ||
303 | </div> | ||
304 | <div class="faqs__item"> | ||
305 | <button type="button" class="faqs__item-button js-toggle"> | ||
306 | <span>Вопрос 2</span> | ||
307 | <i> | ||
308 | <svg> | ||
309 | <use xlink:href="images/sprite.svg#arrow"></use> | ||
310 | </svg> | ||
311 | </i> | ||
312 | </button> | ||
313 | <div class="faqs__item-body"> | ||
314 | <p>Ясность нашей позиции очевидна: выбранный нами инновационный путь обеспечивает актуальность дальнейших направлений развития.</p> | ||
315 | <p>Высокий уровень вовлечения представителей целевой аудитории является четким доказательством простого факта: базовый вектор развития создаёт необходимость включения в производственный план целого ряда внеочередных мероприятий с учётом комплекса позиций, занимаемых участниками в отношении поставленных задач.</p> | ||
316 | </div> | ||
317 | </div> | ||
318 | <div class="faqs__item"> | ||
319 | <button type="button" class="faqs__item-button js-toggle"> | ||
320 | <span>Вопрос 2</span> | ||
321 | <i> | ||
322 | <svg> | ||
323 | <use xlink:href="images/sprite.svg#arrow"></use> | ||
324 | </svg> | ||
325 | </i> | ||
326 | </button> | ||
327 | <div class="faqs__item-body"> | ||
328 | <p>Ясность нашей позиции очевидна: выбранный нами инновационный путь обеспечивает актуальность дальнейших направлений развития.</p> | ||
329 | <p>Высокий уровень вовлечения представителей целевой аудитории является четким доказательством простого факта: базовый вектор развития создаёт необходимость включения в производственный план целого ряда внеочередных мероприятий с учётом комплекса позиций, занимаемых участниками в отношении поставленных задач.</p> | ||
330 | </div> | ||
331 | </div> | ||
332 | <div class="faqs__item"> | ||
333 | <button type="button" class="faqs__item-button js-toggle"> | ||
334 | <span>Вопрос 2</span> | ||
335 | <i> | ||
336 | <svg> | ||
337 | <use xlink:href="images/sprite.svg#arrow"></use> | ||
338 | </svg> | ||
339 | </i> | ||
340 | </button> | ||
341 | <div class="faqs__item-body"> | ||
342 | <p>Ясность нашей позиции очевидна: выбранный нами инновационный путь обеспечивает актуальность дальнейших направлений развития.</p> | ||
343 | <p>Высокий уровень вовлечения представителей целевой аудитории является четким доказательством простого факта: базовый вектор развития создаёт необходимость включения в производственный план целого ряда внеочередных мероприятий с учётом комплекса позиций, занимаемых участниками в отношении поставленных задач.</p> | ||
344 | </div> | ||
345 | </div> | ||
346 | <div class="faqs__item"> | ||
347 | <button type="button" class="faqs__item-button js-toggle"> | ||
348 | <span>Вопрос 2</span> | ||
349 | <i> | ||
350 | <svg> | ||
351 | <use xlink:href="images/sprite.svg#arrow"></use> | ||
352 | </svg> | ||
353 | </i> | ||
354 | </button> | ||
355 | <div class="faqs__item-body"> | ||
356 | <p>Ясность нашей позиции очевидна: выбранный нами инновационный путь обеспечивает актуальность дальнейших направлений развития.</p> | ||
357 | <p>Высокий уровень вовлечения представителей целевой аудитории является четким доказательством простого факта: базовый вектор развития создаёт необходимость включения в производственный план целого ряда внеочередных мероприятий с учётом комплекса позиций, занимаемых участниками в отношении поставленных задач.</p> | ||
358 | </div> | ||
359 | </div> | ||
360 | <div class="faqs__item"> | ||
361 | <button type="button" class="faqs__item-button js-toggle"> | ||
362 | <span>Вопрос 2</span> | ||
363 | <i> | ||
364 | <svg> | ||
365 | <use xlink:href="images/sprite.svg#arrow"></use> | ||
366 | </svg> | ||
367 | </i> | ||
368 | </button> | ||
369 | <div class="faqs__item-body"> | ||
370 | <p>Ясность нашей позиции очевидна: выбранный нами инновационный путь обеспечивает актуальность дальнейших направлений развития.</p> | ||
371 | <p>Высокий уровень вовлечения представителей целевой аудитории является четким доказательством простого факта: базовый вектор развития создаёт необходимость включения в производственный план целого ряда внеочередных мероприятий с учётом комплекса позиций, занимаемых участниками в отношении поставленных задач.</p> | ||
372 | </div> | ||
373 | </div> | ||
374 | </div> | ||
375 | </div> | 66 | </div> |
376 | </div> | 67 | </div> |
377 | </div> | 68 | </div> |
378 | </div> | 69 | </div> |
379 | </div> | 70 | </div> |
380 | </div> | 71 | </div> |
381 | 72 | ||
382 | </section> | 73 | </section> |
383 | |||
384 | </div> | ||
385 | <div> | ||
386 | @endsection | 74 | @endsection |
387 | 75 |
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('./css/admin/admin.css')}}" /> | 11 | <link rel="stylesheet" href="{{ asset('./css/admin/admin.css')}}" /> |
12 | <link rel="stylesheet" href="{{ asset('./assets/css/tailwind.output_new.css')}}" /> | 12 | <link rel="stylesheet" href="{{ asset('./assets/css/tailwind.output_new.css')}}" /> |
13 | <link rel="stylesheet" href="{{ asset('./assets/css/tabs.css')}}" /> | 13 | <link rel="stylesheet" href="{{ asset('./assets/css/tabs.css')}}" /> |
14 | <script | 14 | <script |
15 | src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js" | 15 | src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js" |
16 | defer | 16 | defer |
17 | ></script> | 17 | ></script> |
18 | <script src="{{ asset('./assets/js/init-alpine.js') }}"></script> | 18 | <script src="{{ asset('./assets/js/init-alpine.js') }}"></script> |
19 | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.css"/> | 19 | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.css"/> |
20 | <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js" defer></script> | 20 | <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js" defer></script> |
21 | <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> | 21 | <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> |
22 | <script src="{{ asset('./assets/js/charts-lines.js') }}" defer></script> | 22 | <script src="{{ asset('./assets/js/charts-lines.js') }}" defer></script> |
23 | <script src="{{ asset('./assets/js/charts-pie.js') }}" defer></script> | 23 | <script src="{{ asset('./assets/js/charts-pie.js') }}" defer></script> |
24 | <script src="{{ asset('js/jquery.fancybox.js') }}"></script> | 24 | <script src="{{ asset('js/jquery.fancybox.js') }}"></script> |
25 | <script src="{{ asset('./js/func.js') }}"></script> | 25 | <script src="{{ asset('./js/func.js') }}"></script> |
26 | <link rel="stylesheet" href="{{ asset('css/helpers.css') }}"> | 26 | <link rel="stylesheet" href="{{ asset('css/helpers.css') }}"> |
27 | <link rel="stylesheet" href="{{ asset('css/jquery.fancybox.css') }}"> | 27 | <link rel="stylesheet" href="{{ asset('css/jquery.fancybox.css') }}"> |
28 | <link rel="stylesheet" href="{{ asset('css/general.css') }}"> | 28 | <link rel="stylesheet" href="{{ asset('css/general.css') }}"> |
29 | <link rel="stylesheet" href="{{ asset('js/chosen/chosen.min.css') }}"> | 29 | <link rel="stylesheet" href="{{ asset('js/chosen/chosen.min.css') }}"> |
30 | <script src="{{ asset('js/chosen/chosen.jquery.min.js') }}"></script> | 30 | <script src="{{ asset('js/chosen/chosen.jquery.min.js') }}"></script> |
31 | </head> | 31 | </head> |
32 | <body> | 32 | <body> |
33 | <div class="flex h-screen bg-gray-50 dark:bg-gray-900" :class="{ 'overflow-hidden': isSideMenuOpen }"> | 33 | <div class="flex h-screen bg-gray-50 dark:bg-gray-900" :class="{ 'overflow-hidden': isSideMenuOpen }"> |
34 | <!-- Desktop sidebar --> | 34 | <!-- Desktop sidebar --> |
35 | <aside | 35 | <aside |
36 | class="z-20 hidden w-64 overflow-y-auto bg-white dark:bg-gray-800 md:block flex-shrink-0" | 36 | class="z-20 hidden w-64 overflow-y-auto bg-white dark:bg-gray-800 md:block flex-shrink-0" |
37 | > | 37 | > |
38 | <div class="py-4 text-gray-500 dark:text-gray-400"> | 38 | <div class="py-4 text-gray-500 dark:text-gray-400"> |
39 | <a class="ml-6 text-lg font-bold text-gray-800 dark:text-gray-200" | 39 | <a class="ml-6 text-lg font-bold text-gray-800 dark:text-gray-200" |
40 | href="{{ route('admin.index') }}"> | 40 | href="{{ route('admin.index') }}"> |
41 | Админка | 41 | Админка |
42 | </a> | 42 | </a> |
43 | <ul class="mt-6"> | 43 | <ul class="mt-6"> |
44 | <li class="relative px-6 py-3"> | 44 | <li class="relative px-6 py-3"> |
45 | <span | 45 | <span |
46 | class="absolute inset-y-0 left-0 w-1 bg-purple-600 rounded-tr-lg rounded-br-lg" | 46 | class="absolute inset-y-0 left-0 w-1 bg-purple-600 rounded-tr-lg rounded-br-lg" |
47 | aria-hidden="true" | 47 | aria-hidden="true" |
48 | ></span> | 48 | ></span> |
49 | <a | 49 | <a |
50 | 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 }}" | 50 | 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 }}" |
51 | href="{{ route('admin.index') }}" | 51 | href="{{ route('admin.index') }}" |
52 | > | 52 | > |
53 | <svg | 53 | <svg |
54 | class="w-5 h-5" | 54 | class="w-5 h-5" |
55 | aria-hidden="true" | 55 | aria-hidden="true" |
56 | fill="none" | 56 | fill="none" |
57 | stroke-linecap="round" | 57 | stroke-linecap="round" |
58 | stroke-linejoin="round" | 58 | stroke-linejoin="round" |
59 | stroke-width="2" | 59 | stroke-width="2" |
60 | viewBox="0 0 24 24" | 60 | viewBox="0 0 24 24" |
61 | stroke="currentColor" | 61 | stroke="currentColor" |
62 | > | 62 | > |
63 | <path | 63 | <path |
64 | 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" | 64 | 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" |
65 | ></path> | 65 | ></path> |
66 | </svg> | 66 | </svg> |
67 | <span class="ml-4">Главная страница</span> | 67 | <span class="ml-4">Главная страница</span> |
68 | </a> | 68 | </a> |
69 | </li> | 69 | </li> |
70 | </ul> | 70 | </ul> |
71 | 71 | ||
72 | <ul> | 72 | <ul> |
73 | @foreach ($contents as $cont) | 73 | @foreach ($contents as $cont) |
74 | @if ($cont->url_page == "admin/users") | 74 | @if ($cont->url_page == "admin/users") |
75 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 75 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
76 | (($cont->is_manager == 1) && ($is_manager == 1))) | 76 | (($cont->is_manager == 1) && ($is_manager == 1))) |
77 | <li class="relative px-6 py-3"> | 77 | <li class="relative px-6 py-3"> |
78 | <a | 78 | <a |
79 | 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 }}" | 79 | 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 }}" |
80 | href="{{ route('admin.users') }}" | 80 | href="{{ route('admin.users') }}" |
81 | > | 81 | > |
82 | <svg | 82 | <svg |
83 | class="w-5 h-5" | 83 | class="w-5 h-5" |
84 | aria-hidden="true" | 84 | aria-hidden="true" |
85 | fill="none" | 85 | fill="none" |
86 | stroke-linecap="round" | 86 | stroke-linecap="round" |
87 | stroke-linejoin="round" | 87 | stroke-linejoin="round" |
88 | stroke-width="2" | 88 | stroke-width="2" |
89 | viewBox="0 0 24 24" | 89 | viewBox="0 0 24 24" |
90 | stroke="currentColor" | 90 | stroke="currentColor" |
91 | > | 91 | > |
92 | <path | 92 | <path |
93 | 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" | 93 | 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" |
94 | ></path> | 94 | ></path> |
95 | </svg> | 95 | </svg> |
96 | <span class="ml-4">Пользователи</span> | 96 | <span class="ml-4">Пользователи</span> |
97 | </a> | 97 | </a> |
98 | </li> | 98 | </li> |
99 | @endif | 99 | @endif |
100 | @endif | 100 | @endif |
101 | 101 | ||
102 | @if ($cont->url_page == "admin/admin_roles") | 102 | @if ($cont->url_page == "admin/admin_roles") |
103 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 103 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
104 | (($cont->is_manager == 1) && ($is_manager == 1))) | 104 | (($cont->is_manager == 1) && ($is_manager == 1))) |
105 | <li class="relative px-6 py-3"> | 105 | <li class="relative px-6 py-3"> |
106 | <a | 106 | <a |
107 | 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 }}" | 107 | 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 }}" |
108 | href="{{ route('admin.admin_roles') }}" | 108 | href="{{ route('admin.admin_roles') }}" |
109 | > | 109 | > |
110 | <svg | 110 | <svg |
111 | class="w-5 h-5" | 111 | class="w-5 h-5" |
112 | aria-hidden="true" | 112 | aria-hidden="true" |
113 | fill="none" | 113 | fill="none" |
114 | stroke-linecap="round" | 114 | stroke-linecap="round" |
115 | stroke-linejoin="round" | 115 | stroke-linejoin="round" |
116 | stroke-width="2" | 116 | stroke-width="2" |
117 | viewBox="0 0 24 24" | 117 | viewBox="0 0 24 24" |
118 | stroke="currentColor" | 118 | stroke="currentColor" |
119 | > | 119 | > |
120 | <path | 120 | <path |
121 | 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" | 121 | 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" |
122 | ></path> | 122 | ></path> |
123 | </svg> | 123 | </svg> |
124 | <span class="ml-4">Роли администраторов</span> | 124 | <span class="ml-4">Роли администраторов</span> |
125 | </a> | 125 | </a> |
126 | </li> | 126 | </li> |
127 | @endif | 127 | @endif |
128 | @endif | 128 | @endif |
129 | 129 | ||
130 | @if ($cont->url_page == "admin/admin-users") | 130 | @if ($cont->url_page == "admin/admin-users") |
131 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 131 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
132 | (($cont->is_manager == 1) && ($is_manager == 1))) | 132 | (($cont->is_manager == 1) && ($is_manager == 1))) |
133 | <li class="relative px-6 py-3"> | 133 | <li class="relative px-6 py-3"> |
134 | <a | 134 | <a |
135 | 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') }}" | 135 | 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') }}" |
136 | > | 136 | > |
137 | <svg | 137 | <svg |
138 | class="w-5 h-5" | 138 | class="w-5 h-5" |
139 | aria-hidden="true" | 139 | aria-hidden="true" |
140 | fill="none" | 140 | fill="none" |
141 | stroke-linecap="round" | 141 | stroke-linecap="round" |
142 | stroke-linejoin="round" | 142 | stroke-linejoin="round" |
143 | stroke-width="2" | 143 | stroke-width="2" |
144 | viewBox="0 0 24 24" | 144 | viewBox="0 0 24 24" |
145 | stroke="currentColor" | 145 | stroke="currentColor" |
146 | > | 146 | > |
147 | <path | 147 | <path |
148 | 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" | 148 | 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" |
149 | ></path> | 149 | ></path> |
150 | </svg> | 150 | </svg> |
151 | <span class="ml-4">Администраторы</span> | 151 | <span class="ml-4">Администраторы</span> |
152 | </a> | 152 | </a> |
153 | </li> | 153 | </li> |
154 | @endif | 154 | @endif |
155 | @endif | 155 | @endif |
156 | 156 | ||
157 | @if ($cont->url_page == "admin/employers") | 157 | @if ($cont->url_page == "admin/employers") |
158 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 158 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
159 | (($cont->is_manager == 1) && ($is_manager == 1))) | 159 | (($cont->is_manager == 1) && ($is_manager == 1))) |
160 | <li class="relative px-6 py-3"> | 160 | <li class="relative px-6 py-3"> |
161 | <a | 161 | <a |
162 | 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') }}" | 162 | 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') }}" |
163 | > | 163 | > |
164 | <svg | 164 | <svg |
165 | class="w-5 h-5" | 165 | class="w-5 h-5" |
166 | aria-hidden="true" | 166 | aria-hidden="true" |
167 | fill="none" | 167 | fill="none" |
168 | stroke-linecap="round" | 168 | stroke-linecap="round" |
169 | stroke-linejoin="round" | 169 | stroke-linejoin="round" |
170 | stroke-width="2" | 170 | stroke-width="2" |
171 | viewBox="0 0 24 24" | 171 | viewBox="0 0 24 24" |
172 | stroke="currentColor" | 172 | stroke="currentColor" |
173 | > | 173 | > |
174 | <path | 174 | <path |
175 | 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" | 175 | 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" |
176 | ></path> | 176 | ></path> |
177 | </svg> | 177 | </svg> |
178 | <span class="ml-4">Работодатели</span> | 178 | <span class="ml-4">Работодатели</span> |
179 | </a> | 179 | </a> |
180 | </li> | 180 | </li> |
181 | @endif | 181 | @endif |
182 | @endif | 182 | @endif |
183 | 183 | ||
184 | @if ($cont->url_page == "admin/workers") | 184 | @if ($cont->url_page == "admin/workers") |
185 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 185 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
186 | (($cont->is_manager == 1) && ($is_manager == 1))) | 186 | (($cont->is_manager == 1) && ($is_manager == 1))) |
187 | <li class="relative px-6 py-3"> | 187 | <li class="relative px-6 py-3"> |
188 | <a | 188 | <a |
189 | 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') }}" | 189 | 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') }}" |
190 | > | 190 | > |
191 | <svg | 191 | <svg |
192 | class="w-5 h-5" | 192 | class="w-5 h-5" |
193 | aria-hidden="true" | 193 | aria-hidden="true" |
194 | fill="none" | 194 | fill="none" |
195 | stroke-linecap="round" | 195 | stroke-linecap="round" |
196 | stroke-linejoin="round" | 196 | stroke-linejoin="round" |
197 | stroke-width="2" | 197 | stroke-width="2" |
198 | viewBox="0 0 24 24" | 198 | viewBox="0 0 24 24" |
199 | stroke="currentColor" | 199 | stroke="currentColor" |
200 | > | 200 | > |
201 | <path | 201 | <path |
202 | d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z" | 202 | d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z" |
203 | ></path> | 203 | ></path> |
204 | <path d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"></path> | 204 | <path d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"></path> |
205 | </svg> | 205 | </svg> |
206 | <span class="ml-4">Соискатели</span> | 206 | <span class="ml-4">Соискатели</span> |
207 | </a> | 207 | </a> |
208 | </li> | 208 | </li> |
209 | @endif | 209 | @endif |
210 | @endif | 210 | @endif |
211 | 211 | ||
212 | @if ($cont->url_page == "admin/ad-employers") | 212 | @if ($cont->url_page == "admin/ad-employers") |
213 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 213 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
214 | (($cont->is_manager == 1) && ($is_manager == 1))) | 214 | (($cont->is_manager == 1) && ($is_manager == 1))) |
215 | <li class="relative px-6 py-3"> | 215 | <li class="relative px-6 py-3"> |
216 | <a | 216 | <a |
217 | class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.ad-employers') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.ad-employers') }}" | 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.ad-employers') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.ad-employers') }}" |
218 | > | 218 | > |
219 | <svg | 219 | <svg |
220 | class="w-5 h-5" | 220 | class="w-5 h-5" |
221 | aria-hidden="true" | 221 | aria-hidden="true" |
222 | fill="none" | 222 | fill="none" |
223 | stroke-linecap="round" | 223 | stroke-linecap="round" |
224 | stroke-linejoin="round" | 224 | stroke-linejoin="round" |
225 | stroke-width="2" | 225 | stroke-width="2" |
226 | viewBox="0 0 24 24" | 226 | viewBox="0 0 24 24" |
227 | stroke="currentColor" | 227 | stroke="currentColor" |
228 | > | 228 | > |
229 | <path | 229 | <path |
230 | 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" | 230 | 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" |
231 | ></path> | 231 | ></path> |
232 | </svg> | 232 | </svg> |
233 | <span class="ml-4">Вакансии</span> | 233 | <span class="ml-4">Вакансии</span> |
234 | </a> | 234 | </a> |
235 | </li> | 235 | </li> |
236 | @endif | 236 | @endif |
237 | @endif | 237 | @endif |
238 | 238 | ||
239 | @if ($cont->url_page == "admin/messages") | 239 | @if ($cont->url_page == "admin/messages") |
240 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 240 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
241 | (($cont->is_manager == 1) && ($is_manager == 1))) | 241 | (($cont->is_manager == 1) && ($is_manager == 1))) |
242 | <li class="relative px-6 py-3"> | 242 | <li class="relative px-6 py-3"> |
243 | <a | 243 | <a |
244 | 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') }}" | 244 | 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') }}" |
245 | > | 245 | > |
246 | <svg | 246 | <svg |
247 | class="w-5 h-5" | 247 | class="w-5 h-5" |
248 | aria-hidden="true" | 248 | aria-hidden="true" |
249 | fill="none" | 249 | fill="none" |
250 | stroke-linecap="round" | 250 | stroke-linecap="round" |
251 | stroke-linejoin="round" | 251 | stroke-linejoin="round" |
252 | stroke-width="2" | 252 | stroke-width="2" |
253 | viewBox="0 0 24 24" | 253 | viewBox="0 0 24 24" |
254 | stroke="currentColor" | 254 | stroke="currentColor" |
255 | > | 255 | > |
256 | <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> | 256 | <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> |
257 | </svg> | 257 | </svg> |
258 | <span class="ml-4">Сообщения все</span> | 258 | <span class="ml-4">Сообщения все</span> |
259 | </a> | 259 | </a> |
260 | </li> | 260 | </li> |
261 | @endif | 261 | @endif |
262 | @endif | 262 | @endif |
263 | 263 | ||
264 | @if ($cont->url_page == "admin/admin-messages") | 264 | @if ($cont->url_page == "admin/admin-messages") |
265 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 265 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
266 | (($cont->is_manager == 1) && ($is_manager == 1))) | 266 | (($cont->is_manager == 1) && ($is_manager == 1))) |
267 | <li class="relative px-6 py-3"> | 267 | <li class="relative px-6 py-3"> |
268 | <a | 268 | <a |
269 | 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') }}" | 269 | 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') }}" |
270 | > | 270 | > |
271 | <svg | 271 | <svg |
272 | class="w-5 h-5" | 272 | class="w-5 h-5" |
273 | aria-hidden="true" | 273 | aria-hidden="true" |
274 | fill="none" | 274 | fill="none" |
275 | stroke-linecap="round" | 275 | stroke-linecap="round" |
276 | stroke-linejoin="round" | 276 | stroke-linejoin="round" |
277 | stroke-width="2" | 277 | stroke-width="2" |
278 | viewBox="0 0 24 24" | 278 | viewBox="0 0 24 24" |
279 | stroke="currentColor" | 279 | stroke="currentColor" |
280 | > | 280 | > |
281 | <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> | 281 | <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> |
282 | </svg> | 282 | </svg> |
283 | <span class="ml-4">Заявки на рассылку</span> | 283 | <span class="ml-4">Заявки на рассылку</span> |
284 | </a> | 284 | </a> |
285 | </li> | 285 | </li> |
286 | @endif | 286 | @endif |
287 | @endif | 287 | @endif |
288 | 288 | ||
289 | @if ($cont->url_page == "admin/groups") | 289 | @if ($cont->url_page == "admin/groups") |
290 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 290 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
291 | (($cont->is_manager == 1) && ($is_manager == 1))) | 291 | (($cont->is_manager == 1) && ($is_manager == 1))) |
292 | <li class="relative px-6 py-3"> | 292 | <li class="relative px-6 py-3"> |
293 | <a | 293 | <a |
294 | 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') }}" | 294 | 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') }}" |
295 | > | 295 | > |
296 | <svg | 296 | <svg |
297 | class="w-5 h-5" | 297 | class="w-5 h-5" |
298 | aria-hidden="true" | 298 | aria-hidden="true" |
299 | fill="none" | 299 | fill="none" |
300 | stroke-linecap="round" | 300 | stroke-linecap="round" |
301 | stroke-linejoin="round" | 301 | stroke-linejoin="round" |
302 | stroke-width="2" | 302 | stroke-width="2" |
303 | viewBox="0 0 24 24" | 303 | viewBox="0 0 24 24" |
304 | stroke="currentColor" | 304 | stroke="currentColor" |
305 | > | 305 | > |
306 | <path | 306 | <path |
307 | 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" | 307 | 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" |
308 | ></path> | 308 | ></path> |
309 | </svg> | 309 | </svg> |
310 | <span class="ml-4">Группы пользователей</span> | 310 | <span class="ml-4">Группы пользователей</span> |
311 | </a> | 311 | </a> |
312 | </li> | 312 | </li> |
313 | @endif | 313 | @endif |
314 | @endif | 314 | @endif |
315 | 315 | ||
316 | @if ($cont->url_page == "admin/media") | 316 | @if ($cont->url_page == "admin/media") |
317 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 317 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
318 | (($cont->is_manager == 1) && ($is_manager == 1))) | 318 | (($cont->is_manager == 1) && ($is_manager == 1))) |
319 | <li class="relative px-6 py-3"> | 319 | <li class="relative px-6 py-3"> |
320 | <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') }}"> | 320 | <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') }}"> |
321 | <svg | 321 | <svg |
322 | class="w-5 h-5" | 322 | class="w-5 h-5" |
323 | aria-hidden="true" | 323 | aria-hidden="true" |
324 | fill="none" | 324 | fill="none" |
325 | stroke-linecap="round" | 325 | stroke-linecap="round" |
326 | stroke-linejoin="round" | 326 | stroke-linejoin="round" |
327 | stroke-width="2" | 327 | stroke-width="2" |
328 | viewBox="0 0 24 24" | 328 | viewBox="0 0 24 24" |
329 | stroke="currentColor" | 329 | stroke="currentColor" |
330 | > | 330 | > |
331 | <path | 331 | <path |
332 | 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" | 332 | 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" |
333 | ></path> | 333 | ></path> |
334 | </svg> | 334 | </svg> |
335 | <span class="ml-4">Медиа</span> | 335 | <span class="ml-4">Медиа</span> |
336 | </a> | 336 | </a> |
337 | </li> | 337 | </li> |
338 | @endif | 338 | @endif |
339 | @endif | 339 | @endif |
340 | 340 | ||
341 | @if ($cont->url_page == "admin/roles") | 341 | @if ($cont->url_page == "admin/roles") |
342 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 342 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
343 | (($cont->is_manager == 1) && ($is_manager == 1))) | 343 | (($cont->is_manager == 1) && ($is_manager == 1))) |
344 | <li class="relative px-6 py-3"> | 344 | <li class="relative px-6 py-3"> |
345 | <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') }}"> | 345 | <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') }}"> |
346 | <svg | 346 | <svg |
347 | class="w-5 h-5" | 347 | class="w-5 h-5" |
348 | aria-hidden="true" | 348 | aria-hidden="true" |
349 | fill="none" | 349 | fill="none" |
350 | stroke-linecap="round" | 350 | stroke-linecap="round" |
351 | stroke-linejoin="round" | 351 | stroke-linejoin="round" |
352 | stroke-width="2" | 352 | stroke-width="2" |
353 | viewBox="0 0 24 24" | 353 | viewBox="0 0 24 24" |
354 | stroke="currentColor" | 354 | stroke="currentColor" |
355 | > | 355 | > |
356 | <path | 356 | <path |
357 | 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" | 357 | 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" |
358 | ></path> | 358 | ></path> |
359 | </svg> | 359 | </svg> |
360 | <span class="ml-4">Роли пользователей</span> | 360 | <span class="ml-4">Роли пользователей</span> |
361 | </a> | 361 | </a> |
362 | </li> | 362 | </li> |
363 | @endif | 363 | @endif |
364 | @endif | 364 | @endif |
365 | 365 | ||
366 | @if ($cont->url_page == "admin/basedata") | 366 | @if ($cont->url_page == "admin/basedata") |
367 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 367 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
368 | (($cont->is_manager == 1) && ($is_manager == 1))) | 368 | (($cont->is_manager == 1) && ($is_manager == 1))) |
369 | <li class="relative px-6 py-3"> | 369 | <li class="relative px-6 py-3"> |
370 | <a | 370 | <a |
371 | 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') }}" | 371 | 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') }}" |
372 | > | 372 | > |
373 | <svg | 373 | <svg |
374 | class="w-5 h-5" | 374 | class="w-5 h-5" |
375 | aria-hidden="true" | 375 | aria-hidden="true" |
376 | fill="none" | 376 | fill="none" |
377 | stroke-linecap="round" | 377 | stroke-linecap="round" |
378 | stroke-linejoin="round" | 378 | stroke-linejoin="round" |
379 | stroke-width="2" | 379 | stroke-width="2" |
380 | viewBox="0 0 24 24" | 380 | viewBox="0 0 24 24" |
381 | stroke="currentColor" | 381 | stroke="currentColor" |
382 | > | 382 | > |
383 | <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> | 383 | <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> |
384 | </svg> | 384 | </svg> |
385 | <span class="ml-4">Базы данных</span> | 385 | <span class="ml-4">Базы данных</span> |
386 | </a> | 386 | </a> |
387 | </li> | 387 | </li> |
388 | @endif | 388 | @endif |
389 | @endif | 389 | @endif |
390 | 390 | ||
391 | @if ($cont->url_page == "admin/education") | 391 | @if ($cont->url_page == "admin/education") |
392 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 392 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
393 | (($cont->is_manager == 1) && ($is_manager == 1))) | 393 | (($cont->is_manager == 1) && ($is_manager == 1))) |
394 | <li class="relative px-6 py-3"> | 394 | <li class="relative px-6 py-3"> |
395 | <a | 395 | <a |
396 | 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') }}" | 396 | 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') }}" |
397 | > | 397 | > |
398 | <svg | 398 | <svg |
399 | class="w-5 h-5" | 399 | class="w-5 h-5" |
400 | aria-hidden="true" | 400 | aria-hidden="true" |
401 | fill="none" | 401 | fill="none" |
402 | stroke-linecap="round" | 402 | stroke-linecap="round" |
403 | stroke-linejoin="round" | 403 | stroke-linejoin="round" |
404 | stroke-width="2" | 404 | stroke-width="2" |
405 | viewBox="0 0 24 24" | 405 | viewBox="0 0 24 24" |
406 | stroke="currentColor" | 406 | stroke="currentColor" |
407 | > | 407 | > |
408 | <path | 408 | <path |
409 | 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" | 409 | 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" |
410 | ></path> | 410 | ></path> |
411 | </svg> | 411 | </svg> |
412 | <span class="ml-4">Учебн.заведения</span> | 412 | <span class="ml-4">Учебн.заведения</span> |
413 | </a> | 413 | </a> |
414 | </li> | 414 | </li> |
415 | @endif | 415 | @endif |
416 | @endif | 416 | @endif |
417 | 417 | ||
418 | @if ($cont->url_page == "admin/statics") | 418 | @if ($cont->url_page == "admin/statics") |
419 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 419 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
420 | (($cont->is_manager == 1) && ($is_manager == 1))) | 420 | (($cont->is_manager == 1) && ($is_manager == 1))) |
421 | <li class="relative px-6 py-3"> | 421 | <li class="relative px-6 py-3"> |
422 | <a | 422 | <a |
423 | 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') }}" | 423 | 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') }}" |
424 | > | 424 | > |
425 | <svg | 425 | <svg |
426 | class="w-5 h-5" | 426 | class="w-5 h-5" |
427 | aria-hidden="true" | 427 | aria-hidden="true" |
428 | fill="none" | 428 | fill="none" |
429 | stroke-linecap="round" | 429 | stroke-linecap="round" |
430 | stroke-linejoin="round" | 430 | stroke-linejoin="round" |
431 | stroke-width="2" | 431 | stroke-width="2" |
432 | viewBox="0 0 24 24" | 432 | viewBox="0 0 24 24" |
433 | stroke="currentColor" | 433 | stroke="currentColor" |
434 | > | 434 | > |
435 | <path | 435 | <path |
436 | d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z" | 436 | d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z" |
437 | ></path> | 437 | ></path> |
438 | <path d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"></path> | 438 | <path d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"></path> |
439 | </svg> | 439 | </svg> |
440 | <span class="ml-4">Статистика</span> | 440 | <span class="ml-4">Статистика</span> |
441 | </a> | 441 | </a> |
442 | </li> | 442 | </li> |
443 | @endif | 443 | @endif |
444 | @endif | 444 | @endif |
445 | 445 | ||
446 | @if ($cont->url_page == "admin/answers") | 446 | @if ($cont->url_page == "admin/answers") |
447 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 447 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
448 | (($cont->is_manager == 1) && ($is_manager == 1))) | 448 | (($cont->is_manager == 1) && ($is_manager == 1))) |
449 | <li class="relative px-6 py-3"> | 449 | <li class="relative px-6 py-3"> |
450 | <a | 450 | <a |
451 | 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') }}" | 451 | 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') }}" |
452 | > | 452 | > |
453 | <svg | 453 | <svg |
454 | class="w-5 h-5" | 454 | class="w-5 h-5" |
455 | aria-hidden="true" | 455 | aria-hidden="true" |
456 | fill="none" | 456 | fill="none" |
457 | stroke-linecap="round" | 457 | stroke-linecap="round" |
458 | stroke-linejoin="round" | 458 | stroke-linejoin="round" |
459 | stroke-width="2" | 459 | stroke-width="2" |
460 | viewBox="0 0 24 24" | 460 | viewBox="0 0 24 24" |
461 | stroke="currentColor" | 461 | stroke="currentColor" |
462 | > | 462 | > |
463 | <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> | 463 | <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> |
464 | </svg> | 464 | </svg> |
465 | <span class="ml-4">Модерация</span> | 465 | <span class="ml-4">Модерация</span> |
466 | </a> | 466 | </a> |
467 | </li> | 467 | </li> |
468 | @endif | 468 | @endif |
469 | @endif | 469 | @endif |
470 | 470 | ||
471 | @if ($cont->url_page == "admin/reclames") | 471 | @if ($cont->url_page == "admin/reclames") |
472 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 472 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
473 | (($cont->is_manager == 1) && ($is_manager == 1))) | 473 | (($cont->is_manager == 1) && ($is_manager == 1))) |
474 | <li class="relative px-6 py-3"> | 474 | <li class="relative px-6 py-3"> |
475 | <a | 475 | <a |
476 | 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') }}" | 476 | 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') }}" |
477 | > | 477 | > |
478 | <svg | 478 | <svg |
479 | class="w-5 h-5" | 479 | class="w-5 h-5" |
480 | aria-hidden="true" | 480 | aria-hidden="true" |
481 | fill="none" | 481 | fill="none" |
482 | stroke-linecap="round" | 482 | stroke-linecap="round" |
483 | stroke-linejoin="round" | 483 | stroke-linejoin="round" |
484 | stroke-width="2" | 484 | stroke-width="2" |
485 | viewBox="0 0 24 24" | 485 | viewBox="0 0 24 24" |
486 | stroke="currentColor" | 486 | stroke="currentColor" |
487 | > | 487 | > |
488 | <path | 488 | <path |
489 | 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" | 489 | 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" |
490 | ></path> | 490 | ></path> |
491 | </svg> | 491 | </svg> |
492 | <span class="ml-4">Реклама</span> | 492 | <span class="ml-4">Реклама</span> |
493 | </a> | 493 | </a> |
494 | </li> | 494 | </li> |
495 | @endif | 495 | @endif |
496 | @endif | 496 | @endif |
497 | @endforeach | 497 | @endforeach |
498 | 498 | ||
499 | 499 | ||
500 | <li class="relative px-6 py-3"> | 500 | <li class="relative px-6 py-3"> |
501 | <a | 501 | <a |
502 | 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.news_admin') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.news_admin') }}" | 502 | 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.news_admin') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.news_admin') }}" |
503 | > | 503 | > |
504 | <svg | 504 | <svg |
505 | class="w-5 h-5" | 505 | class="w-5 h-5" |
506 | aria-hidden="true" | 506 | aria-hidden="true" |
507 | fill="none" | 507 | fill="none" |
508 | stroke-linecap="round" | 508 | stroke-linecap="round" |
509 | stroke-linejoin="round" | 509 | stroke-linejoin="round" |
510 | stroke-width="2" | 510 | stroke-width="2" |
511 | viewBox="0 0 24 24" | 511 | viewBox="0 0 24 24" |
512 | stroke="currentColor" | 512 | stroke="currentColor" |
513 | > | 513 | > |
514 | <path | 514 | <path |
515 | 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" | 515 | 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" |
516 | ></path> | 516 | ></path> |
517 | </svg> | 517 | </svg> |
518 | <span class="ml-4">Новости</span> | 518 | <span class="ml-4">Новости</span> |
519 | </a> | 519 | </a> |
520 | </li> | 520 | </li> |
521 | <!-- Справочники --> | 521 | <!-- Справочники --> |
522 | 522 | ||
523 | <li class="relative px-6 py-3" x-data="{ open1: false }"> | 523 | <li class="relative px-6 py-3" x-data="{ open1: false }"> |
524 | <button | 524 | <button |
525 | 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" | 525 | 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" |
526 | @click="open1=!open1" | 526 | @click="open1=!open1" |
527 | aria-haspopup="true"> | 527 | aria-haspopup="true"> |
528 | <span class="inline-flex items-center"> | 528 | <span class="inline-flex items-center"> |
529 | <svg | 529 | <svg |
530 | class="w-5 h-5" | 530 | class="w-5 h-5" |
531 | aria-hidden="true" | 531 | aria-hidden="true" |
532 | fill="none" | 532 | fill="none" |
533 | stroke-linecap="round" | 533 | stroke-linecap="round" |
534 | stroke-linejoin="round" | 534 | stroke-linejoin="round" |
535 | stroke-width="2" | 535 | stroke-width="2" |
536 | viewBox="0 0 24 24" | 536 | viewBox="0 0 24 24" |
537 | stroke="currentColor"> | 537 | stroke="currentColor"> |
538 | <path | 538 | <path |
539 | 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" | 539 | 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" |
540 | ></path> | 540 | ></path> |
541 | </svg> | 541 | </svg> |
542 | <span class="ml-4">Справочники</span> | 542 | <span class="ml-4">Справочники</span> |
543 | </span> | 543 | </span> |
544 | <svg | 544 | <svg |
545 | class="w-4 h-4" | 545 | class="w-4 h-4" |
546 | aria-hidden="true" | 546 | aria-hidden="true" |
547 | fill="currentColor" | 547 | fill="currentColor" |
548 | viewBox="0 0 20 20" | 548 | viewBox="0 0 20 20" |
549 | > | 549 | > |
550 | <path | 550 | <path |
551 | fill-rule="evenodd" | 551 | fill-rule="evenodd" |
552 | 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" | 552 | 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" |
553 | clip-rule="evenodd" | 553 | clip-rule="evenodd" |
554 | ></path> | 554 | ></path> |
555 | </svg> | 555 | </svg> |
556 | </button> | 556 | </button> |
557 | <template x-if="open1"> | 557 | <template x-if="open1"> |
558 | <ul | 558 | <ul |
559 | x-transition:enter="transition-all ease-in-out duration-300" | 559 | x-transition:enter="transition-all ease-in-out duration-300" |
560 | x-transition:enter-start="opacity-25 max-h-0" | 560 | x-transition:enter-start="opacity-25 max-h-0" |
561 | x-transition:enter-end="opacity-100 max-h-xl" | 561 | x-transition:enter-end="opacity-100 max-h-xl" |
562 | x-transition:leave="transition-all ease-in-out duration-300" | 562 | x-transition:leave="transition-all ease-in-out duration-300" |
563 | x-transition:leave-start="opacity-100 max-h-xl" | 563 | x-transition:leave-start="opacity-100 max-h-xl" |
564 | x-transition:leave-end="opacity-0 max-h-0" | 564 | x-transition:leave-end="opacity-0 max-h-0" |
565 | 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" | 565 | 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" |
566 | aria-label="submenu" | 566 | aria-label="submenu" |
567 | > | 567 | > |
568 | @foreach ($contents as $cont) | 568 | @foreach ($contents as $cont) |
569 | @if ($cont->url_page == "admin/job-titles") | 569 | @if ($cont->url_page == "admin/job-titles") |
570 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 570 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
571 | (($cont->is_manager == 1) && ($is_manager == 1))) | 571 | (($cont->is_manager == 1) && ($is_manager == 1))) |
572 | <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 }}"> | 572 | <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 }}"> |
573 | <a class="w-full" href="{{ route('admin.job-titles.index') }}">Должности</a> | 573 | <a class="w-full" href="{{ route('admin.job-titles.index') }}">Должности</a> |
574 | </li> | 574 | </li> |
575 | @endif | 575 | @endif |
576 | @endif | 576 | @endif |
577 | 577 | ||
578 | @if ($cont->url_page == "admin/categories") | 578 | @if ($cont->url_page == "admin/categories") |
579 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 579 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
580 | (($cont->is_manager == 1) && ($is_manager == 1))) | 580 | (($cont->is_manager == 1) && ($is_manager == 1))) |
581 | <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 }}"> | 581 | <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 }}"> |
582 | <a class="w-full" href="{{ route('admin.categories.index') }}">Категории вакансий</a> | 582 | <a class="w-full" href="{{ route('admin.categories.index') }}">Категории вакансий</a> |
583 | </li> | 583 | </li> |
584 | @endif | 584 | @endif |
585 | @endif | 585 | @endif |
586 | 586 | ||
587 | @if ($cont->url_page == "admin/category-emp") | 587 | @if ($cont->url_page == "admin/category-emp") |
588 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 588 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
589 | (($cont->is_manager == 1) && ($is_manager == 1))) | 589 | (($cont->is_manager == 1) && ($is_manager == 1))) |
590 | <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 }}"> | 590 | <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 }}"> |
591 | <a class="w-full" href="{{ route('admin.category-emp.index') }}">Категории работодателей</a> | 591 | <a class="w-full" href="{{ route('admin.category-emp.index') }}">Категории работодателей</a> |
592 | </li> | 592 | </li> |
593 | @endif | 593 | @endif |
594 | @endif | 594 | @endif |
595 | 595 | ||
596 | @if ($cont->url_page == "admin/infobloks") | 596 | @if ($cont->url_page == "admin/infobloks") |
597 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 597 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
598 | (($cont->is_manager == 1) && ($is_manager == 1))) | 598 | (($cont->is_manager == 1) && ($is_manager == 1))) |
599 | <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 }}"> | 599 | <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 }}"> |
600 | <a class="w-full" href="{{ route('admin.infobloks.index') }}">Блоки-Дипломы</a> | 600 | <a class="w-full" href="{{ route('admin.infobloks.index') }}">Блоки-Дипломы</a> |
601 | </li> | 601 | </li> |
602 | @endif | 602 | @endif |
603 | @endif | 603 | @endif |
604 | @endforeach | 604 | @endforeach |
605 | <!--<li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.position') ? 'dark:text-gray-100' : null }}"> | 605 | <!--<li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.position') ? 'dark:text-gray-100' : null }}"> |
606 | <a class="w-full" href=" route('admin.position') }}">Позиция</a> | 606 | <a class="w-full" href=" route('admin.position') }}">Позиция</a> |
607 | </li>--> | 607 | </li>--> |
608 | </ul> | 608 | </ul> |
609 | </template> | 609 | </template> |
610 | </li> | 610 | </li> |
611 | 611 | ||
612 | <!-- Редактор --> | 612 | <!-- Редактор --> |
613 | <li class="relative px-6 py-3"> | 613 | <li class="relative px-6 py-3"> |
614 | <button | 614 | <button |
615 | 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" | 615 | 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" |
616 | @click="togglePagesMenu" | 616 | @click="togglePagesMenu" |
617 | aria-haspopup="true"> | 617 | aria-haspopup="true"> |
618 | <span class="inline-flex items-center"> | 618 | <span class="inline-flex items-center"> |
619 | <svg | 619 | <svg |
620 | class="w-5 h-5" | 620 | class="w-5 h-5" |
621 | aria-hidden="true" | 621 | aria-hidden="true" |
622 | fill="none" | 622 | fill="none" |
623 | stroke-linecap="round" | 623 | stroke-linecap="round" |
624 | stroke-linejoin="round" | 624 | stroke-linejoin="round" |
625 | stroke-width="2" | 625 | stroke-width="2" |
626 | viewBox="0 0 24 24" | 626 | viewBox="0 0 24 24" |
627 | stroke="currentColor"> | 627 | stroke="currentColor"> |
628 | <path | 628 | <path |
629 | 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" | 629 | 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" |
630 | ></path> | 630 | ></path> |
631 | </svg> | 631 | </svg> |
632 | <span class="ml-4">Редактор</span> | 632 | <span class="ml-4">Редактор</span> |
633 | </span> | 633 | </span> |
634 | <svg | 634 | <svg |
635 | class="w-4 h-4" | 635 | class="w-4 h-4" |
636 | aria-hidden="true" | 636 | aria-hidden="true" |
637 | fill="currentColor" | 637 | fill="currentColor" |
638 | viewBox="0 0 20 20" | 638 | viewBox="0 0 20 20" |
639 | > | 639 | > |
640 | <path | 640 | <path |
641 | fill-rule="evenodd" | 641 | fill-rule="evenodd" |
642 | 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" | 642 | 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" |
643 | clip-rule="evenodd" | 643 | clip-rule="evenodd" |
644 | ></path> | 644 | ></path> |
645 | </svg> | 645 | </svg> |
646 | </button> | 646 | </button> |
647 | <template x-if="isPagesMenuOpen"> | 647 | <template x-if="isPagesMenuOpen"> |
648 | <ul | 648 | <ul |
649 | x-transition:enter="transition-all ease-in-out duration-300" | 649 | x-transition:enter="transition-all ease-in-out duration-300" |
650 | x-transition:enter-start="opacity-25 max-h-0" | 650 | x-transition:enter-start="opacity-25 max-h-0" |
651 | x-transition:enter-end="opacity-100 max-h-xl" | 651 | x-transition:enter-end="opacity-100 max-h-xl" |
652 | x-transition:leave="transition-all ease-in-out duration-300" | 652 | x-transition:leave="transition-all ease-in-out duration-300" |
653 | x-transition:leave-start="opacity-100 max-h-xl" | 653 | x-transition:leave-start="opacity-100 max-h-xl" |
654 | x-transition:leave-end="opacity-0 max-h-0" | 654 | x-transition:leave-end="opacity-0 max-h-0" |
655 | 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" | 655 | 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" |
656 | aria-label="submenu" | 656 | aria-label="submenu" |
657 | > | 657 | > |
658 | @foreach ($contents as $cont) | 658 | @foreach ($contents as $cont) |
659 | @if ($cont->url_page == "admin/editor-site") | 659 | @if ($cont->url_page == "admin/editor-site") |
660 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 660 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
661 | (($cont->is_manager == 1) && ($is_manager == 1))) | 661 | (($cont->is_manager == 1) && ($is_manager == 1))) |
662 | <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 }}"> | 662 | <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 }}"> |
663 | <a class="w-full" href="{{ route('admin.editor-site') }}">Редактор сайта</a> | 663 | <a class="w-full" href="{{ route('admin.editor-site') }}">Редактор сайта</a> |
664 | </li> | 664 | </li> |
665 | @endif | 665 | @endif |
666 | @endif | 666 | @endif |
667 | 667 | ||
668 | @if ($cont->url_page == "admin/edit-blocks") | 668 | @if ($cont->url_page == "admin/edit-blocks") |
669 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 669 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
670 | (($cont->is_manager == 1) && ($is_manager == 1))) | 670 | (($cont->is_manager == 1) && ($is_manager == 1))) |
671 | <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 }}"> | 671 | <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 }}"> |
672 | <a class="w-full" href="{{ route('admin.edit-blocks') }}">Шапка-футер сайта</a> | 672 | <a class="w-full" href="{{ route('admin.edit-blocks') }}">Шапка-футер сайта</a> |
673 | </li> | 673 | </li> |
674 | @endif | 674 | @endif |
675 | @endif | 675 | @endif |
676 | 676 | ||
677 | @if ($cont->url_page == "admin/editor-seo") | 677 | @if ($cont->url_page == "admin/editor-seo") |
678 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 678 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
679 | (($cont->is_manager == 1) && ($is_manager == 1))) | 679 | (($cont->is_manager == 1) && ($is_manager == 1))) |
680 | <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 }}"> | 680 | <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 }}"> |
681 | <a class="w-full" href="{{ route('admin.editor-seo') }}">SEO сайта</a> | 681 | <a class="w-full" href="{{ route('admin.editor-seo') }}">SEO сайта</a> |
682 | </li> | 682 | </li> |
683 | @endif | 683 | @endif |
684 | @endif | 684 | @endif |
685 | 685 | ||
686 | @if ($cont->url_page == "admin/editor-pages") | 686 | @if ($cont->url_page == "admin/editor-pages") |
687 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 687 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
688 | (($cont->is_manager == 1) && ($is_manager == 1))) | 688 | (($cont->is_manager == 1) && ($is_manager == 1))) |
689 | <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 }}"> | 689 | <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 }}"> |
690 | <a class="w-full" href="{{ route('admin.editor-pages') }}">Редактор страниц</a> | 690 | <a class="w-full" href="{{ route('admin.editor-pages') }}">Редактор страниц</a> |
691 | </li> | 691 | </li> |
692 | @endif | 692 | @endif |
693 | @endif | 693 | @endif |
694 | 694 | ||
695 | @if ($cont->url_page == "admin/job-titles-main") | 695 | @if ($cont->url_page == "admin/job-titles-main") |
696 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 696 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
697 | (($cont->is_manager == 1) && ($is_manager == 1))) | 697 | (($cont->is_manager == 1) && ($is_manager == 1))) |
698 | <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 }}"> | 698 | <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 }}"> |
699 | <a class="w-full" href="{{ route('admin.job-titles-main') }}">Должности на главной</a> | 699 | <a class="w-full" href="{{ route('admin.job-titles-main') }}">Должности на главной</a> |
700 | </li> | 700 | </li> |
701 | @endif | 701 | @endif |
702 | @endif | 702 | @endif |
703 | 703 | ||
704 | @if ($cont->url_page == "admin/job-titles-main") | 704 | @if ($cont->url_page == "admin/job-titles-main") |
705 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 705 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
706 | (($cont->is_manager == 1) && ($is_manager == 1))) | 706 | (($cont->is_manager == 1) && ($is_manager == 1))) |
707 | <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.counters-main') ? 'dark:text-gray-100' : null }}"> | 707 | <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.counters-main') ? 'dark:text-gray-100' : null }}"> |
708 | <a class="w-full" href="{{ route('admin.counters-main') }}">Счетчики на главной</a> | 708 | <a class="w-full" href="{{ route('admin.counters-main') }}">Счетчики на главной</a> |
709 | </li> | 709 | </li> |
710 | @endif | 710 | @endif |
711 | @endif | 711 | @endif |
712 | 712 | ||
713 | @if ($cont->url_page == "admin/employers-main") | 713 | @if ($cont->url_page == "admin/employers-main") |
714 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 714 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
715 | (($cont->is_manager == 1) && ($is_manager == 1))) | 715 | (($cont->is_manager == 1) && ($is_manager == 1))) |
716 | <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 }}"> | 716 | <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 }}"> |
717 | <a class="w-full" href="{{ route('admin.employers-main') }}">Работодатели на главной</a> | 717 | <a class="w-full" href="{{ route('admin.employers-main') }}">Работодатели на главной</a> |
718 | </li> | 718 | </li> |
719 | @endif | 719 | @endif |
720 | @endif | 720 | @endif |
721 | 721 | ||
722 | @if ($cont->url_page == "admin/faq") | ||
723 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | ||
724 | (($cont->is_manager == 1) && ($is_manager == 1))) | ||
725 | <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.faq.list') ? 'dark:text-gray-100' : null }}"> | ||
726 | <a class="w-full" href="{{ route('admin.faq.list') }}">FAQ</a> | ||
727 | </li> | ||
728 | @endif | ||
729 | @endif | ||
730 | |||
722 | @endforeach | 731 | @endforeach |
723 | </ul> | 732 | </ul> |
724 | </template> | 733 | </template> |
725 | </li> | 734 | </li> |
726 | </ul> | 735 | </ul> |
727 | 736 | ||
728 | <!--<div class="px-6 my-6"> | 737 | <!--<div class="px-6 my-6"> |
729 | <button | 738 | <button |
730 | 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" | 739 | 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" |
731 | > | 740 | > |
732 | Create account | 741 | Create account |
733 | <span class="ml-2" aria-hidden="true">+</span> | 742 | <span class="ml-2" aria-hidden="true">+</span> |
734 | </button> | 743 | </button> |
735 | </div>--> | 744 | </div>--> |
736 | </div> | 745 | </div> |
737 | </aside> | 746 | </aside> |
738 | <!-- Mobile sidebar --> | 747 | <!-- Mobile sidebar --> |
739 | <!-- Backdrop --> | 748 | <!-- Backdrop --> |
740 | <div | 749 | <div |
741 | x-show="isSideMenuOpen" | 750 | x-show="isSideMenuOpen" |
742 | x-transition:enter="transition ease-in-out duration-150" | 751 | x-transition:enter="transition ease-in-out duration-150" |
743 | x-transition:enter-start="opacity-0" | 752 | x-transition:enter-start="opacity-0" |
744 | x-transition:enter-end="opacity-100" | 753 | x-transition:enter-end="opacity-100" |
745 | x-transition:leave="transition ease-in-out duration-150" | 754 | x-transition:leave="transition ease-in-out duration-150" |
746 | x-transition:leave-start="opacity-100" | 755 | x-transition:leave-start="opacity-100" |
747 | x-transition:leave-end="opacity-0" | 756 | x-transition:leave-end="opacity-0" |
748 | class="fixed inset-0 z-10 flex items-end bg-black bg-opacity-50 sm:items-center sm:justify-center" | 757 | class="fixed inset-0 z-10 flex items-end bg-black bg-opacity-50 sm:items-center sm:justify-center" |
749 | ></div> | 758 | ></div> |
750 | <aside | 759 | <aside |
751 | 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" | 760 | 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" |
752 | x-show="isSideMenuOpen" | 761 | x-show="isSideMenuOpen" |
753 | x-transition:enter="transition ease-in-out duration-150" | 762 | x-transition:enter="transition ease-in-out duration-150" |
754 | x-transition:enter-start="opacity-0 transform -translate-x-20" | 763 | x-transition:enter-start="opacity-0 transform -translate-x-20" |
755 | x-transition:enter-end="opacity-100" | 764 | x-transition:enter-end="opacity-100" |
756 | x-transition:leave="transition ease-in-out duration-150" | 765 | x-transition:leave="transition ease-in-out duration-150" |
757 | x-transition:leave-start="opacity-100" | 766 | x-transition:leave-start="opacity-100" |
758 | x-transition:leave-end="opacity-0 transform -translate-x-20" | 767 | x-transition:leave-end="opacity-0 transform -translate-x-20" |
759 | @click.away="closeSideMenu" | 768 | @click.away="closeSideMenu" |
760 | @keydown.escape="closeSideMenu" | 769 | @keydown.escape="closeSideMenu" |
761 | > | 770 | > |
762 | <div class="py-4 text-gray-500 dark:text-gray-400"> | 771 | <div class="py-4 text-gray-500 dark:text-gray-400"> |
763 | <a | 772 | <a |
764 | class="ml-6 text-lg font-bold text-gray-800 dark:text-gray-200" | 773 | class="ml-6 text-lg font-bold text-gray-800 dark:text-gray-200" |
765 | href="{{ route('admin.index') }}" | 774 | href="{{ route('admin.index') }}" |
766 | > | 775 | > |
767 | Админка | 776 | Админка |
768 | </a> | 777 | </a> |
769 | <ul class="mt-6"> | 778 | <ul class="mt-6"> |
770 | <li class="relative px-6 py-3"> | 779 | <li class="relative px-6 py-3"> |
771 | <span | 780 | <span |
772 | class="absolute inset-y-0 left-0 w-1 bg-purple-600 rounded-tr-lg rounded-br-lg" | 781 | class="absolute inset-y-0 left-0 w-1 bg-purple-600 rounded-tr-lg rounded-br-lg" |
773 | aria-hidden="true" | 782 | aria-hidden="true" |
774 | ></span> | 783 | ></span> |
775 | <a | 784 | <a |
776 | 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') }}" | 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.index') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.index') }}" |
777 | > | 786 | > |
778 | <svg | 787 | <svg |
779 | class="w-5 h-5" | 788 | class="w-5 h-5" |
780 | aria-hidden="true" | 789 | aria-hidden="true" |
781 | fill="none" | 790 | fill="none" |
782 | stroke-linecap="round" | 791 | stroke-linecap="round" |
783 | stroke-linejoin="round" | 792 | stroke-linejoin="round" |
784 | stroke-width="2" | 793 | stroke-width="2" |
785 | viewBox="0 0 24 24" | 794 | viewBox="0 0 24 24" |
786 | stroke="currentColor" | 795 | stroke="currentColor" |
787 | > | 796 | > |
788 | <path | 797 | <path |
789 | 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" | 798 | 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" |
790 | ></path> | 799 | ></path> |
791 | </svg> | 800 | </svg> |
792 | <span class="ml-4">Главная страница</span> | 801 | <span class="ml-4">Главная страница</span> |
793 | </a> | 802 | </a> |
794 | </li> | 803 | </li> |
795 | </ul> | 804 | </ul> |
796 | <ul> | 805 | <ul> |
797 | @foreach ($contents as $cont) | 806 | @foreach ($contents as $cont) |
798 | @if ($cont->url_page == "admin/users") | 807 | @if ($cont->url_page == "admin/users") |
799 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 808 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
800 | (($cont->is_manager == 1) && ($is_manager == 1))) | 809 | (($cont->is_manager == 1) && ($is_manager == 1))) |
801 | <li class="relative px-6 py-3"> | 810 | <li class="relative px-6 py-3"> |
802 | <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') }}"> | 811 | <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') }}"> |
803 | <svg | 812 | <svg |
804 | class="w-5 h-5" | 813 | class="w-5 h-5" |
805 | aria-hidden="true" | 814 | aria-hidden="true" |
806 | fill="none" | 815 | fill="none" |
807 | stroke-linecap="round" | 816 | stroke-linecap="round" |
808 | stroke-linejoin="round" | 817 | stroke-linejoin="round" |
809 | stroke-width="2" | 818 | stroke-width="2" |
810 | viewBox="0 0 24 24" | 819 | viewBox="0 0 24 24" |
811 | stroke="currentColor" | 820 | stroke="currentColor" |
812 | > | 821 | > |
813 | <path | 822 | <path |
814 | 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" | 823 | 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" |
815 | ></path> | 824 | ></path> |
816 | </svg> | 825 | </svg> |
817 | <span class="ml-4">Пользователи</span> | 826 | <span class="ml-4">Пользователи</span> |
818 | </a> | 827 | </a> |
819 | </li> | 828 | </li> |
820 | @endif | 829 | @endif |
821 | @endif | 830 | @endif |
822 | 831 | ||
823 | @if ($cont->url_page == "admin/admin-users") | 832 | @if ($cont->url_page == "admin/admin-users") |
824 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 833 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
825 | (($cont->is_manager == 1) && ($is_manager == 1))) | 834 | (($cont->is_manager == 1) && ($is_manager == 1))) |
826 | <li class="relative px-6 py-3"> | 835 | <li class="relative px-6 py-3"> |
827 | <a | 836 | <a |
828 | 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') }}" | 837 | 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') }}" |
829 | > | 838 | > |
830 | <svg | 839 | <svg |
831 | class="w-5 h-5" | 840 | class="w-5 h-5" |
832 | aria-hidden="true" | 841 | aria-hidden="true" |
833 | fill="none" | 842 | fill="none" |
834 | stroke-linecap="round" | 843 | stroke-linecap="round" |
835 | stroke-linejoin="round" | 844 | stroke-linejoin="round" |
836 | stroke-width="2" | 845 | stroke-width="2" |
837 | viewBox="0 0 24 24" | 846 | viewBox="0 0 24 24" |
838 | stroke="currentColor" | 847 | stroke="currentColor" |
839 | > | 848 | > |
840 | <path | 849 | <path |
841 | 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" | 850 | 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" |
842 | ></path> | 851 | ></path> |
843 | </svg> | 852 | </svg> |
844 | <span class="ml-4">Администраторы</span> | 853 | <span class="ml-4">Администраторы</span> |
845 | </a> | 854 | </a> |
846 | </li> | 855 | </li> |
847 | @endif | 856 | @endif |
848 | @endif | 857 | @endif |
849 | 858 | ||
850 | @if ($cont->url_page == "admin/employers") | 859 | @if ($cont->url_page == "admin/employers") |
851 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 860 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
852 | (($cont->is_manager == 1) && ($is_manager == 1))) | 861 | (($cont->is_manager == 1) && ($is_manager == 1))) |
853 | <li class="relative px-6 py-3"> | 862 | <li class="relative px-6 py-3"> |
854 | <a | 863 | <a |
855 | 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') }}" | 864 | 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') }}" |
856 | > | 865 | > |
857 | <svg | 866 | <svg |
858 | class="w-5 h-5" | 867 | class="w-5 h-5" |
859 | aria-hidden="true" | 868 | aria-hidden="true" |
860 | fill="none" | 869 | fill="none" |
861 | stroke-linecap="round" | 870 | stroke-linecap="round" |
862 | stroke-linejoin="round" | 871 | stroke-linejoin="round" |
863 | stroke-width="2" | 872 | stroke-width="2" |
864 | viewBox="0 0 24 24" | 873 | viewBox="0 0 24 24" |
865 | stroke="currentColor" | 874 | stroke="currentColor" |
866 | > | 875 | > |
867 | <path | 876 | <path |
868 | 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" | 877 | 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" |
869 | ></path> | 878 | ></path> |
870 | </svg> | 879 | </svg> |
871 | <span class="ml-4">Работодатели</span> | 880 | <span class="ml-4">Работодатели</span> |
872 | </a> | 881 | </a> |
873 | </li> | 882 | </li> |
874 | @endif | 883 | @endif |
875 | @endif | 884 | @endif |
876 | 885 | ||
877 | @if ($cont->url_page == "admin/workers") | 886 | @if ($cont->url_page == "admin/workers") |
878 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 887 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
879 | (($cont->is_manager == 1) && ($is_manager == 1))) | 888 | (($cont->is_manager == 1) && ($is_manager == 1))) |
880 | <li class="relative px-6 py-3"> | 889 | <li class="relative px-6 py-3"> |
881 | <a | 890 | <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.workers') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.workers') }}" | 891 | 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') }}" |
883 | > | 892 | > |
884 | <svg | 893 | <svg |
885 | class="w-5 h-5" | 894 | class="w-5 h-5" |
886 | aria-hidden="true" | 895 | aria-hidden="true" |
887 | fill="none" | 896 | fill="none" |
888 | stroke-linecap="round" | 897 | stroke-linecap="round" |
889 | stroke-linejoin="round" | 898 | stroke-linejoin="round" |
890 | stroke-width="2" | 899 | stroke-width="2" |
891 | viewBox="0 0 24 24" | 900 | viewBox="0 0 24 24" |
892 | stroke="currentColor" | 901 | stroke="currentColor" |
893 | > | 902 | > |
894 | <path | 903 | <path |
895 | d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z" | 904 | d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z" |
896 | ></path> | 905 | ></path> |
897 | <path d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"></path> | 906 | <path d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"></path> |
898 | </svg> | 907 | </svg> |
899 | <span class="ml-4">Соискатели</span> | 908 | <span class="ml-4">Соискатели</span> |
900 | </a> | 909 | </a> |
901 | </li> | 910 | </li> |
902 | @endif | 911 | @endif |
903 | @endif | 912 | @endif |
904 | 913 | ||
905 | @if ($cont->url_page == "admin/ad-employers") | 914 | @if ($cont->url_page == "admin/ad-employers") |
906 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 915 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
907 | (($cont->is_manager == 1) && ($is_manager == 1))) | 916 | (($cont->is_manager == 1) && ($is_manager == 1))) |
908 | <li class="relative px-6 py-3"> | 917 | <li class="relative px-6 py-3"> |
909 | <a | 918 | <a |
910 | 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') }}" | 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.ad-employers') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.ad-employers') }}" |
911 | > | 920 | > |
912 | <svg | 921 | <svg |
913 | class="w-5 h-5" | 922 | class="w-5 h-5" |
914 | aria-hidden="true" | 923 | aria-hidden="true" |
915 | fill="none" | 924 | fill="none" |
916 | stroke-linecap="round" | 925 | stroke-linecap="round" |
917 | stroke-linejoin="round" | 926 | stroke-linejoin="round" |
918 | stroke-width="2" | 927 | stroke-width="2" |
919 | viewBox="0 0 24 24" | 928 | viewBox="0 0 24 24" |
920 | stroke="currentColor" | 929 | stroke="currentColor" |
921 | > | 930 | > |
922 | <path | 931 | <path |
923 | 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" | 932 | 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" |
924 | ></path> | 933 | ></path> |
925 | </svg> | 934 | </svg> |
926 | <span class="ml-4">Вакансии</span> | 935 | <span class="ml-4">Вакансии</span> |
927 | </a> | 936 | </a> |
928 | </li> | 937 | </li> |
929 | @endif | 938 | @endif |
930 | @endif | 939 | @endif |
931 | 940 | ||
932 | @if ($cont->url_page == "admin/messages") | 941 | @if ($cont->url_page == "admin/messages") |
933 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 942 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
934 | (($cont->is_manager == 1) && ($is_manager == 1))) | 943 | (($cont->is_manager == 1) && ($is_manager == 1))) |
935 | <li class="relative px-6 py-3"> | 944 | <li class="relative px-6 py-3"> |
936 | <a | 945 | <a |
937 | 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') }}" | 946 | 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') }}" |
938 | > | 947 | > |
939 | <svg | 948 | <svg |
940 | class="w-5 h-5" | 949 | class="w-5 h-5" |
941 | aria-hidden="true" | 950 | aria-hidden="true" |
942 | fill="none" | 951 | fill="none" |
943 | stroke-linecap="round" | 952 | stroke-linecap="round" |
944 | stroke-linejoin="round" | 953 | stroke-linejoin="round" |
945 | stroke-width="2" | 954 | stroke-width="2" |
946 | viewBox="0 0 24 24" | 955 | viewBox="0 0 24 24" |
947 | stroke="currentColor" | 956 | stroke="currentColor" |
948 | > | 957 | > |
949 | <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> | 958 | <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> |
950 | </svg> | 959 | </svg> |
951 | <span class="ml-4">Сообщения все</span> | 960 | <span class="ml-4">Сообщения все</span> |
952 | </a> | 961 | </a> |
953 | </li> | 962 | </li> |
954 | @endif | 963 | @endif |
955 | @endif | 964 | @endif |
956 | 965 | ||
957 | @if ($cont->url_page == "admin/admin-messages") | 966 | @if ($cont->url_page == "admin/admin-messages") |
958 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 967 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
959 | (($cont->is_manager == 1) && ($is_manager == 1))) | 968 | (($cont->is_manager == 1) && ($is_manager == 1))) |
960 | <li class="relative px-6 py-3"> | 969 | <li class="relative px-6 py-3"> |
961 | <a | 970 | <a |
962 | 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') }}" | 971 | 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') }}" |
963 | > | 972 | > |
964 | <svg | 973 | <svg |
965 | class="w-5 h-5" | 974 | class="w-5 h-5" |
966 | aria-hidden="true" | 975 | aria-hidden="true" |
967 | fill="none" | 976 | fill="none" |
968 | stroke-linecap="round" | 977 | stroke-linecap="round" |
969 | stroke-linejoin="round" | 978 | stroke-linejoin="round" |
970 | stroke-width="2" | 979 | stroke-width="2" |
971 | viewBox="0 0 24 24" | 980 | viewBox="0 0 24 24" |
972 | stroke="currentColor" | 981 | stroke="currentColor" |
973 | > | 982 | > |
974 | <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> | 983 | <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> |
975 | </svg> | 984 | </svg> |
976 | <span class="ml-4">Заявки на рассылку</span> | 985 | <span class="ml-4">Заявки на рассылку</span> |
977 | </a> | 986 | </a> |
978 | </li> | 987 | </li> |
979 | @endif | 988 | @endif |
980 | @endif | 989 | @endif |
981 | 990 | ||
982 | @if ($cont->url_page == "admin/groups") | 991 | @if ($cont->url_page == "admin/groups") |
983 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 992 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
984 | (($cont->is_manager == 1) && ($is_manager == 1))) | 993 | (($cont->is_manager == 1) && ($is_manager == 1))) |
985 | <li class="relative px-6 py-3"> | 994 | <li class="relative px-6 py-3"> |
986 | <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') }}"> | 995 | <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') }}"> |
987 | <svg | 996 | <svg |
988 | class="w-5 h-5" | 997 | class="w-5 h-5" |
989 | aria-hidden="true" | 998 | aria-hidden="true" |
990 | fill="none" | 999 | fill="none" |
991 | stroke-linecap="round" | 1000 | stroke-linecap="round" |
992 | stroke-linejoin="round" | 1001 | stroke-linejoin="round" |
993 | stroke-width="2" | 1002 | stroke-width="2" |
994 | viewBox="0 0 24 24" | 1003 | viewBox="0 0 24 24" |
995 | stroke="currentColor" | 1004 | stroke="currentColor" |
996 | > | 1005 | > |
997 | <path | 1006 | <path |
998 | d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01" | 1007 | 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" |
999 | ></path> | 1008 | ></path> |
1000 | </svg> | 1009 | </svg> |
1001 | <span class="ml-4">Группы пользователей</span> | 1010 | <span class="ml-4">Группы пользователей</span> |
1002 | </a> | 1011 | </a> |
1003 | </li> | 1012 | </li> |
1004 | @endif | 1013 | @endif |
1005 | @endif | 1014 | @endif |
1006 | 1015 | ||
1007 | @if ($cont->url_page == "admin/media") | 1016 | @if ($cont->url_page == "admin/media") |
1008 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 1017 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
1009 | (($cont->is_manager == 1) && ($is_manager == 1))) | 1018 | (($cont->is_manager == 1) && ($is_manager == 1))) |
1010 | <li class="relative px-6 py-3"> | 1019 | <li class="relative px-6 py-3"> |
1011 | <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') }}"> | 1020 | <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') }}"> |
1012 | <svg | 1021 | <svg |
1013 | class="w-5 h-5" | 1022 | class="w-5 h-5" |
1014 | aria-hidden="true" | 1023 | aria-hidden="true" |
1015 | fill="none" | 1024 | fill="none" |
1016 | stroke-linecap="round" | 1025 | stroke-linecap="round" |
1017 | stroke-linejoin="round" | 1026 | stroke-linejoin="round" |
1018 | stroke-width="2" | 1027 | stroke-width="2" |
1019 | viewBox="0 0 24 24" | 1028 | viewBox="0 0 24 24" |
1020 | stroke="currentColor" | 1029 | stroke="currentColor" |
1021 | > | 1030 | > |
1022 | <path | 1031 | <path |
1023 | 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" | 1032 | 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" |
1024 | ></path> | 1033 | ></path> |
1025 | </svg> | 1034 | </svg> |
1026 | <span class="ml-4">Медиа</span> | 1035 | <span class="ml-4">Медиа</span> |
1027 | </a> | 1036 | </a> |
1028 | </li> | 1037 | </li> |
1029 | @endif | 1038 | @endif |
1030 | @endif | 1039 | @endif |
1031 | 1040 | ||
1032 | @if ($cont->url_page == "admin/roles") | 1041 | @if ($cont->url_page == "admin/roles") |
1033 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 1042 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
1034 | (($cont->is_manager == 1) && ($is_manager == 1))) | 1043 | (($cont->is_manager == 1) && ($is_manager == 1))) |
1035 | 1044 | ||
1036 | <li class="relative px-6 py-3"> | 1045 | <li class="relative px-6 py-3"> |
1037 | <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') }}"> | 1046 | <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') }}"> |
1038 | <svg | 1047 | <svg |
1039 | class="w-5 h-5" | 1048 | class="w-5 h-5" |
1040 | aria-hidden="true" | 1049 | aria-hidden="true" |
1041 | fill="none" | 1050 | fill="none" |
1042 | stroke-linecap="round" | 1051 | stroke-linecap="round" |
1043 | stroke-linejoin="round" | 1052 | stroke-linejoin="round" |
1044 | stroke-width="2" | 1053 | stroke-width="2" |
1045 | viewBox="0 0 24 24" | 1054 | viewBox="0 0 24 24" |
1046 | stroke="currentColor" | 1055 | stroke="currentColor" |
1047 | > | 1056 | > |
1048 | <path | 1057 | <path |
1049 | 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" | 1058 | 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" |
1050 | ></path> | 1059 | ></path> |
1051 | </svg> | 1060 | </svg> |
1052 | <span class="ml-4">Роли пользователей</span> | 1061 | <span class="ml-4">Роли пользователей</span> |
1053 | </a> | 1062 | </a> |
1054 | </li> | 1063 | </li> |
1055 | @endif | 1064 | @endif |
1056 | @endif | 1065 | @endif |
1057 | 1066 | ||
1058 | @if ($cont->url_page == "admin/basedata") | 1067 | @if ($cont->url_page == "admin/basedata") |
1059 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 1068 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
1060 | (($cont->is_manager == 1) && ($is_manager == 1))) | 1069 | (($cont->is_manager == 1) && ($is_manager == 1))) |
1061 | <li class="relative px-6 py-3"> | 1070 | <li class="relative px-6 py-3"> |
1062 | <a | 1071 | <a |
1063 | 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') }}" | 1072 | class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.basedata') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.basedata') }}" |
1064 | > | 1073 | > |
1065 | <svg | 1074 | <svg |
1066 | class="w-5 h-5" | 1075 | class="w-5 h-5" |
1067 | aria-hidden="true" | 1076 | aria-hidden="true" |
1068 | fill="none" | 1077 | fill="none" |
1069 | stroke-linecap="round" | 1078 | stroke-linecap="round" |
1070 | stroke-linejoin="round" | 1079 | stroke-linejoin="round" |
1071 | stroke-width="2" | 1080 | stroke-width="2" |
1072 | viewBox="0 0 24 24" | 1081 | viewBox="0 0 24 24" |
1073 | stroke="currentColor" | 1082 | stroke="currentColor" |
1074 | > | 1083 | > |
1075 | <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> | 1084 | <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> |
1076 | </svg> | 1085 | </svg> |
1077 | <span class="ml-4">Базы данных</span> | 1086 | <span class="ml-4">Базы данных</span> |
1078 | </a> | 1087 | </a> |
1079 | </li> | 1088 | </li> |
1080 | @endif | 1089 | @endif |
1081 | @endif | 1090 | @endif |
1082 | 1091 | ||
1083 | @if ($cont->url_page == "admin/education") | 1092 | @if ($cont->url_page == "admin/education") |
1084 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 1093 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
1085 | (($cont->is_manager == 1) && ($is_manager == 1))) | 1094 | (($cont->is_manager == 1) && ($is_manager == 1))) |
1086 | <li class="relative px-6 py-3"> | 1095 | <li class="relative px-6 py-3"> |
1087 | <a | 1096 | <a |
1088 | 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') }}" | 1097 | 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') }}" |
1089 | > | 1098 | > |
1090 | <svg | 1099 | <svg |
1091 | class="w-5 h-5" | 1100 | class="w-5 h-5" |
1092 | aria-hidden="true" | 1101 | aria-hidden="true" |
1093 | fill="none" | 1102 | fill="none" |
1094 | stroke-linecap="round" | 1103 | stroke-linecap="round" |
1095 | stroke-linejoin="round" | 1104 | stroke-linejoin="round" |
1096 | stroke-width="2" | 1105 | stroke-width="2" |
1097 | viewBox="0 0 24 24" | 1106 | viewBox="0 0 24 24" |
1098 | stroke="currentColor" | 1107 | stroke="currentColor" |
1099 | > | 1108 | > |
1100 | <path | 1109 | <path |
1101 | 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" | 1110 | 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" |
1102 | ></path> | 1111 | ></path> |
1103 | </svg> | 1112 | </svg> |
1104 | <span class="ml-4">Учебн.заведения</span> | 1113 | <span class="ml-4">Учебн.заведения</span> |
1105 | </a> | 1114 | </a> |
1106 | </li> | 1115 | </li> |
1107 | @endif | 1116 | @endif |
1108 | @endif | 1117 | @endif |
1109 | 1118 | ||
1110 | @if ($cont->url_page == "admin/statics") | 1119 | @if ($cont->url_page == "admin/statics") |
1111 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 1120 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
1112 | (($cont->is_manager == 1) && ($is_manager == 1))) | 1121 | (($cont->is_manager == 1) && ($is_manager == 1))) |
1113 | <li class="relative px-6 py-3"> | 1122 | <li class="relative px-6 py-3"> |
1114 | <a | 1123 | <a |
1115 | 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') }}" | 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.statics') ? 'dark:text-gray-100' : null }}" href="{{ route('admin.statics') }}" |
1116 | > | 1125 | > |
1117 | <svg | 1126 | <svg |
1118 | class="w-5 h-5" | 1127 | class="w-5 h-5" |
1119 | aria-hidden="true" | 1128 | aria-hidden="true" |
1120 | fill="none" | 1129 | fill="none" |
1121 | stroke-linecap="round" | 1130 | stroke-linecap="round" |
1122 | stroke-linejoin="round" | 1131 | stroke-linejoin="round" |
1123 | stroke-width="2" | 1132 | stroke-width="2" |
1124 | viewBox="0 0 24 24" | 1133 | viewBox="0 0 24 24" |
1125 | stroke="currentColor" | 1134 | stroke="currentColor" |
1126 | > | 1135 | > |
1127 | <path | 1136 | <path |
1128 | d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z" | 1137 | d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z" |
1129 | ></path> | 1138 | ></path> |
1130 | <path d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"></path> | 1139 | <path d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"></path> |
1131 | </svg> | 1140 | </svg> |
1132 | <span class="ml-4">Статистика</span> | 1141 | <span class="ml-4">Статистика</span> |
1133 | </a> | 1142 | </a> |
1134 | </li> | 1143 | </li> |
1135 | @endif | 1144 | @endif |
1136 | @endif | 1145 | @endif |
1137 | 1146 | ||
1138 | @if ($cont->url_page == "admin/messages") | 1147 | @if ($cont->url_page == "admin/messages") |
1139 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 1148 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
1140 | (($cont->is_manager == 1) && ($is_manager == 1))) | 1149 | (($cont->is_manager == 1) && ($is_manager == 1))) |
1141 | <li class="relative px-6 py-3"> | 1150 | <li class="relative px-6 py-3"> |
1142 | <a | 1151 | <a |
1143 | 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') }}" | 1152 | 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') }}" |
1144 | > | 1153 | > |
1145 | <svg | 1154 | <svg |
1146 | class="w-5 h-5" | 1155 | class="w-5 h-5" |
1147 | aria-hidden="true" | 1156 | aria-hidden="true" |
1148 | fill="none" | 1157 | fill="none" |
1149 | stroke-linecap="round" | 1158 | stroke-linecap="round" |
1150 | stroke-linejoin="round" | 1159 | stroke-linejoin="round" |
1151 | stroke-width="2" | 1160 | stroke-width="2" |
1152 | viewBox="0 0 24 24" | 1161 | viewBox="0 0 24 24" |
1153 | stroke="currentColor" | 1162 | stroke="currentColor" |
1154 | > | 1163 | > |
1155 | <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> | 1164 | <path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path> |
1156 | </svg> | 1165 | </svg> |
1157 | <span class="ml-4">Сообщения все</span> | 1166 | <span class="ml-4">Сообщения все</span> |
1158 | </a> | 1167 | </a> |
1159 | </li> | 1168 | </li> |
1160 | @endif | 1169 | @endif |
1161 | @endif | 1170 | @endif |
1162 | 1171 | ||
1163 | @if ($cont->url_page == "admin/reclames") | 1172 | @if ($cont->url_page == "admin/reclames") |
1164 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 1173 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
1165 | (($cont->is_manager == 1) && ($is_manager == 1))) | 1174 | (($cont->is_manager == 1) && ($is_manager == 1))) |
1166 | <li class="relative px-6 py-3"> | 1175 | <li class="relative px-6 py-3"> |
1167 | <a | 1176 | <a |
1168 | 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') }}" | 1177 | 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') }}" |
1169 | > | 1178 | > |
1170 | <svg | 1179 | <svg |
1171 | class="w-5 h-5" | 1180 | class="w-5 h-5" |
1172 | aria-hidden="true" | 1181 | aria-hidden="true" |
1173 | fill="none" | 1182 | fill="none" |
1174 | stroke-linecap="round" | 1183 | stroke-linecap="round" |
1175 | stroke-linejoin="round" | 1184 | stroke-linejoin="round" |
1176 | stroke-width="2" | 1185 | stroke-width="2" |
1177 | viewBox="0 0 24 24" | 1186 | viewBox="0 0 24 24" |
1178 | stroke="currentColor" | 1187 | stroke="currentColor" |
1179 | > | 1188 | > |
1180 | <path | 1189 | <path |
1181 | 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" | 1190 | 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" |
1182 | ></path> | 1191 | ></path> |
1183 | </svg> | 1192 | </svg> |
1184 | <span class="ml-4">Реклама</span> | 1193 | <span class="ml-4">Реклама</span> |
1185 | </a> | 1194 | </a> |
1186 | </li> | 1195 | </li> |
1187 | @endif | 1196 | @endif |
1188 | @endif | 1197 | @endif |
1189 | @endforeach | 1198 | @endforeach |
1190 | 1199 | ||
1191 | <!-- Справочники --> | 1200 | <!-- Справочники --> |
1192 | <li class="relative px-6 py-3" x-data="{ open2: false }"> | 1201 | <li class="relative px-6 py-3" x-data="{ open2: false }"> |
1193 | <button | 1202 | <button |
1194 | 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" | 1203 | 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" |
1195 | @click="open2=!open2" | 1204 | @click="open2=!open2" |
1196 | aria-haspopup="true"> | 1205 | aria-haspopup="true"> |
1197 | <span class="inline-flex items-center"> | 1206 | <span class="inline-flex items-center"> |
1198 | <svg | 1207 | <svg |
1199 | class="w-5 h-5" | 1208 | class="w-5 h-5" |
1200 | aria-hidden="true" | 1209 | aria-hidden="true" |
1201 | fill="none" | 1210 | fill="none" |
1202 | stroke-linecap="round" | 1211 | stroke-linecap="round" |
1203 | stroke-linejoin="round" | 1212 | stroke-linejoin="round" |
1204 | stroke-width="2" | 1213 | stroke-width="2" |
1205 | viewBox="0 0 24 24" | 1214 | viewBox="0 0 24 24" |
1206 | stroke="currentColor"> | 1215 | stroke="currentColor"> |
1207 | <path | 1216 | <path |
1208 | 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" | 1217 | 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" |
1209 | ></path> | 1218 | ></path> |
1210 | </svg> | 1219 | </svg> |
1211 | <span class="ml-4">Справочники</span> | 1220 | <span class="ml-4">Справочники</span> |
1212 | </span> | 1221 | </span> |
1213 | <svg | 1222 | <svg |
1214 | class="w-4 h-4" | 1223 | class="w-4 h-4" |
1215 | aria-hidden="true" | 1224 | aria-hidden="true" |
1216 | fill="currentColor" | 1225 | fill="currentColor" |
1217 | viewBox="0 0 20 20" | 1226 | viewBox="0 0 20 20" |
1218 | > | 1227 | > |
1219 | <path | 1228 | <path |
1220 | fill-rule="evenodd" | 1229 | fill-rule="evenodd" |
1221 | 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" | 1230 | 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" |
1222 | clip-rule="evenodd" | 1231 | clip-rule="evenodd" |
1223 | ></path> | 1232 | ></path> |
1224 | </svg> | 1233 | </svg> |
1225 | </button> | 1234 | </button> |
1226 | <template x-if="open2"> | 1235 | <template x-if="open2"> |
1227 | <ul | 1236 | <ul |
1228 | x-transition:enter="transition-all ease-in-out duration-300" | 1237 | x-transition:enter="transition-all ease-in-out duration-300" |
1229 | x-transition:enter-start="opacity-25 max-h-0" | 1238 | x-transition:enter-start="opacity-25 max-h-0" |
1230 | x-transition:enter-end="opacity-100 max-h-xl" | 1239 | x-transition:enter-end="opacity-100 max-h-xl" |
1231 | x-transition:leave="transition-all ease-in-out duration-300" | 1240 | x-transition:leave="transition-all ease-in-out duration-300" |
1232 | x-transition:leave-start="opacity-100 max-h-xl" | 1241 | x-transition:leave-start="opacity-100 max-h-xl" |
1233 | x-transition:leave-end="opacity-0 max-h-0" | 1242 | x-transition:leave-end="opacity-0 max-h-0" |
1234 | 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" | 1243 | 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" |
1235 | aria-label="submenu" | 1244 | aria-label="submenu" |
1236 | > | 1245 | > |
1237 | @foreach ($contents as $cont) | 1246 | @foreach ($contents as $cont) |
1238 | @if ($cont->url_page == "admin/job-titles") | 1247 | @if ($cont->url_page == "admin/job-titles") |
1239 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 1248 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
1240 | (($cont->is_manager == 1) && ($is_manager == 1))) | 1249 | (($cont->is_manager == 1) && ($is_manager == 1))) |
1241 | <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 }}"> | 1250 | <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 }}"> |
1242 | <a class="w-full" href="{{ route('admin.job-titles.index') }}">Должности</a> | 1251 | <a class="w-full" href="{{ route('admin.job-titles.index') }}">Должности</a> |
1243 | </li> | 1252 | </li> |
1244 | @endif | 1253 | @endif |
1245 | @endif | 1254 | @endif |
1246 | 1255 | ||
1247 | @if ($cont->url_page == "admin/categories") | 1256 | @if ($cont->url_page == "admin/categories") |
1248 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 1257 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
1249 | (($cont->is_manager == 1) && ($is_manager == 1))) | 1258 | (($cont->is_manager == 1) && ($is_manager == 1))) |
1250 | <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 }}"> | 1259 | <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 }}"> |
1251 | <a class="w-full" href="{{ route('admin.categories.index') }}">Категории вакансий</a> | 1260 | <a class="w-full" href="{{ route('admin.categories.index') }}">Категории вакансий</a> |
1252 | </li> | 1261 | </li> |
1253 | @endif | 1262 | @endif |
1254 | @endif | 1263 | @endif |
1255 | 1264 | ||
1256 | @if ($cont->url_page == "admin/category-emp") | 1265 | @if ($cont->url_page == "admin/category-emp") |
1257 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 1266 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
1258 | (($cont->is_manager == 1) && ($is_manager == 1))) | 1267 | (($cont->is_manager == 1) && ($is_manager == 1))) |
1259 | <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 }}"> | 1268 | <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 }}"> |
1260 | <a class="w-full" href="{{ route('admin.category-emp.index') }}">Категории работодателей</a> | 1269 | <a class="w-full" href="{{ route('admin.category-emp.index') }}">Категории работодателей</a> |
1261 | </li> | 1270 | </li> |
1262 | @endif | 1271 | @endif |
1263 | @endif | 1272 | @endif |
1264 | 1273 | ||
1265 | @if ($cont->url_page == "admin/infobloks") | 1274 | @if ($cont->url_page == "admin/infobloks") |
1266 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 1275 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
1267 | (($cont->is_manager == 1) && ($is_manager == 1))) | 1276 | (($cont->is_manager == 1) && ($is_manager == 1))) |
1268 | <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 }}"> | 1277 | <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 }}"> |
1269 | <a class="w-full" href="{{ route('admin.infobloks.index') }}">Блоки-Дипломы</a> | 1278 | <a class="w-full" href="{{ route('admin.infobloks.index') }}">Блоки-Дипломы</a> |
1270 | </li> | 1279 | </li> |
1271 | @endif | 1280 | @endif |
1272 | @endif | 1281 | @endif |
1273 | 1282 | ||
1274 | @if ($cont->url_page == "admin/position") | 1283 | @if ($cont->url_page == "admin/position") |
1275 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 1284 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
1276 | (($cont->is_manager == 1) && ($is_manager == 1))) | 1285 | (($cont->is_manager == 1) && ($is_manager == 1))) |
1277 | <!--<li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.position') ? 'dark:text-gray-100' : null }}"> | 1286 | <!--<li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.position') ? 'dark:text-gray-100' : null }}"> |
1278 | <a class="w-full" href=" route('admin.position') }}">Позиция</a> | 1287 | <a class="w-full" href=" route('admin.position') }}">Позиция</a> |
1279 | </li>--> | 1288 | </li>--> |
1280 | @endif | 1289 | @endif |
1281 | @endif | 1290 | @endif |
1282 | 1291 | ||
1283 | @endforeach | 1292 | @endforeach |
1284 | </ul> | 1293 | </ul> |
1285 | </template> | 1294 | </template> |
1286 | </li> | 1295 | </li> |
1287 | 1296 | ||
1288 | <!-- Редактор --> | 1297 | <!-- Редактор --> |
1289 | <li class="relative px-6 py-3"> | 1298 | <li class="relative px-6 py-3"> |
1290 | <button | 1299 | <button |
1291 | 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" | 1300 | 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" |
1292 | @click="togglePagesMenu" | 1301 | @click="togglePagesMenu" |
1293 | aria-haspopup="true" | 1302 | aria-haspopup="true" |
1294 | > | 1303 | > |
1295 | <span class="inline-flex items-center"> | 1304 | <span class="inline-flex items-center"> |
1296 | <svg | 1305 | <svg |
1297 | class="w-5 h-5" | 1306 | class="w-5 h-5" |
1298 | aria-hidden="true" | 1307 | aria-hidden="true" |
1299 | fill="none" | 1308 | fill="none" |
1300 | stroke-linecap="round" | 1309 | stroke-linecap="round" |
1301 | stroke-linejoin="round" | 1310 | stroke-linejoin="round" |
1302 | stroke-width="2" | 1311 | stroke-width="2" |
1303 | viewBox="0 0 24 24" | 1312 | viewBox="0 0 24 24" |
1304 | stroke="currentColor" | 1313 | stroke="currentColor" |
1305 | > | 1314 | > |
1306 | <path | 1315 | <path |
1307 | 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" | 1316 | 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" |
1308 | ></path> | 1317 | ></path> |
1309 | </svg> | 1318 | </svg> |
1310 | <span class="ml-4">Редактор</span> | 1319 | <span class="ml-4">Редактор</span> |
1311 | </span> | 1320 | </span> |
1312 | <svg | 1321 | <svg |
1313 | class="w-4 h-4" | 1322 | class="w-4 h-4" |
1314 | aria-hidden="true" | 1323 | aria-hidden="true" |
1315 | fill="currentColor" | 1324 | fill="currentColor" |
1316 | viewBox="0 0 20 20" | 1325 | viewBox="0 0 20 20" |
1317 | > | 1326 | > |
1318 | <path | 1327 | <path |
1319 | fill-rule="evenodd" | 1328 | fill-rule="evenodd" |
1320 | 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" | 1329 | 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" |
1321 | clip-rule="evenodd" | 1330 | clip-rule="evenodd" |
1322 | ></path> | 1331 | ></path> |
1323 | </svg> | 1332 | </svg> |
1324 | </button> | 1333 | </button> |
1325 | <template x-if="isPagesMenuOpen"> | 1334 | <template x-if="isPagesMenuOpen"> |
1326 | <ul | 1335 | <ul |
1327 | x-transition:enter="transition-all ease-in-out duration-300" | 1336 | x-transition:enter="transition-all ease-in-out duration-300" |
1328 | x-transition:enter-start="opacity-25 max-h-0" | 1337 | x-transition:enter-start="opacity-25 max-h-0" |
1329 | x-transition:enter-end="opacity-100 max-h-xl" | 1338 | x-transition:enter-end="opacity-100 max-h-xl" |
1330 | x-transition:leave="transition-all ease-in-out duration-300" | 1339 | x-transition:leave="transition-all ease-in-out duration-300" |
1331 | x-transition:leave-start="opacity-100 max-h-xl" | 1340 | x-transition:leave-start="opacity-100 max-h-xl" |
1332 | x-transition:leave-end="opacity-0 max-h-0" | 1341 | x-transition:leave-end="opacity-0 max-h-0" |
1333 | 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" | 1342 | 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" |
1334 | aria-label="submenu" | 1343 | aria-label="submenu" |
1335 | > | 1344 | > |
1336 | @foreach ($contents as $cont) | 1345 | @foreach ($contents as $cont) |
1337 | @if ($cont->url_page == "admin/editor-site") | 1346 | @if ($cont->url_page == "admin/editor-site") |
1338 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 1347 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
1339 | (($cont->is_manager == 1) && ($is_manager == 1))) | 1348 | (($cont->is_manager == 1) && ($is_manager == 1))) |
1340 | <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 }}"> | 1349 | <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 }}"> |
1341 | <a class="w-full" href="{{ route('admin.editor-site') }}">Редактор сайта</a> | 1350 | <a class="w-full" href="{{ route('admin.editor-site') }}">Редактор сайта</a> |
1342 | </li> | 1351 | </li> |
1343 | @endif | 1352 | @endif |
1344 | @endif | 1353 | @endif |
1345 | 1354 | ||
1346 | @if ($cont->url_page == "admin/edit-blocks") | 1355 | @if ($cont->url_page == "admin/edit-blocks") |
1347 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 1356 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
1348 | (($cont->is_manager == 1) && ($is_manager == 1))) | 1357 | (($cont->is_manager == 1) && ($is_manager == 1))) |
1349 | <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 }}"> | 1358 | <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 }}"> |
1350 | <a class="w-full" href="{{ route('admin.edit-blocks') }}">Шапка-футер сайта</a> | 1359 | <a class="w-full" href="{{ route('admin.edit-blocks') }}">Шапка-футер сайта</a> |
1351 | </li> | 1360 | </li> |
1352 | @endif | 1361 | @endif |
1353 | @endif | 1362 | @endif |
1354 | 1363 | ||
1355 | @if ($cont->url_page == "admin/editor-seo") | 1364 | @if ($cont->url_page == "admin/editor-seo") |
1356 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 1365 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
1357 | (($cont->is_manager == 1) && ($is_manager == 1))) | 1366 | (($cont->is_manager == 1) && ($is_manager == 1))) |
1358 | <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 }}"> | 1367 | <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 }}"> |
1359 | <a class="w-full" href="{{ route('admin.editor-seo') }}">SEO сайта</a> | 1368 | <a class="w-full" href="{{ route('admin.editor-seo') }}">SEO сайта</a> |
1360 | </li> | 1369 | </li> |
1361 | @endif | 1370 | @endif |
1362 | @endif | 1371 | @endif |
1363 | 1372 | ||
1364 | @if ($cont->url_page == "admin/editor-pages") | 1373 | @if ($cont->url_page == "admin/editor-pages") |
1365 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 1374 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
1366 | (($cont->is_manager == 1) && ($is_manager == 1))) | 1375 | (($cont->is_manager == 1) && ($is_manager == 1))) |
1367 | <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 }}"> | 1376 | <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 }}"> |
1368 | <a class="w-full" href="{{ route('admin.editor-pages') }}">Редактор страниц</a> | 1377 | <a class="w-full" href="{{ route('admin.editor-pages') }}">Редактор страниц</a> |
1369 | </li> | 1378 | </li> |
1370 | @endif | 1379 | @endif |
1371 | @endif | 1380 | @endif |
1372 | 1381 | ||
1373 | @if ($cont->url_page == "admin/job-titles-main") | 1382 | @if ($cont->url_page == "admin/job-titles-main") |
1374 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 1383 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
1375 | (($cont->is_manager == 1) && ($is_manager == 1))) | 1384 | (($cont->is_manager == 1) && ($is_manager == 1))) |
1376 | <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 }}"> | 1385 | <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 }}"> |
1377 | <a class="w-full" href="{{ route('admin.job-titles-main') }}">Должности на главной</a> | 1386 | <a class="w-full" href="{{ route('admin.job-titles-main') }}">Должности на главной</a> |
1378 | </li> | 1387 | </li> |
1379 | @endif | 1388 | @endif |
1380 | @endif | 1389 | @endif |
1381 | 1390 | ||
1382 | @if ($cont->url_page == "admin/employers-main") | 1391 | @if ($cont->url_page == "admin/employers-main") |
1383 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | 1392 | @if ((($cont->is_admin == 1) && ($admin == 1)) || |
1384 | (($cont->is_manager == 1) && ($is_manager == 1))) | 1393 | (($cont->is_manager == 1) && ($is_manager == 1))) |
1385 | <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 }}"> | 1394 | <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 }}"> |
1386 | <a class="w-full" href="{{ route('admin.employers-main') }}">Работодатели на главной</a> | 1395 | <a class="w-full" href="{{ route('admin.employers-main') }}">Работодатели на главной11</a> |
1396 | </li> | ||
1397 | @endif | ||
1398 | @endif | ||
1399 | |||
1400 | @if ($cont->url_page == "faq/list") | ||
1401 | @if ((($cont->is_admin == 1) && ($admin == 1)) || | ||
1402 | (($cont->is_manager == 1) && ($is_manager == 1))) | ||
1403 | <li class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 {{ Request::routeIs('admin.faq.list') ? 'dark:text-gray-100' : null }}"> | ||
1404 | <a class="w-full" href="{{ route('admin.faq.list') }}">FAQ</a> | ||
1387 | </li> | 1405 | </li> |
1388 | @endif | 1406 | @endif |
1389 | @endif | 1407 | @endif |
1390 | 1408 | ||
1391 | @endforeach | 1409 | @endforeach |
1392 | </ul> | 1410 | </ul> |
1393 | </template> | 1411 | </template> |
1394 | </li> | 1412 | </li> |
1395 | </ul> | 1413 | </ul> |
1396 | <!--<div class="px-6 my-6"> | 1414 | <!--<div class="px-6 my-6"> |
1397 | <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"> | 1415 | <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"> |
1398 | Create account | 1416 | Create account |
1399 | <span class="ml-2" aria-hidden="true">+</span> | 1417 | <span class="ml-2" aria-hidden="true">+</span> |
1400 | </button> | 1418 | </button> |
1401 | </div>--> | 1419 | </div>--> |
1402 | </div> | 1420 | </div> |
1403 | </aside> | 1421 | </aside> |
1404 | <div class="flex flex-col flex-1 w-full"> | 1422 | <div class="flex flex-col flex-1 w-full"> |
1405 | <header class="z-10 py-4 bg-white shadow-md dark:bg-gray-800"> | 1423 | <header class="z-10 py-4 bg-white shadow-md dark:bg-gray-800"> |
1406 | <div | 1424 | <div |
1407 | class="container flex items-center justify-between h-full px-6 mx-auto text-purple-600 dark:text-purple-300" | 1425 | class="container flex items-center justify-between h-full px-6 mx-auto text-purple-600 dark:text-purple-300" |
1408 | > | 1426 | > |
1409 | <!-- Mobile hamburger --> | 1427 | <!-- Mobile hamburger --> |
1410 | <button | 1428 | <button |
1411 | class="p-1 mr-5 -ml-1 rounded-md md:hidden focus:outline-none focus:shadow-outline-purple" | 1429 | class="p-1 mr-5 -ml-1 rounded-md md:hidden focus:outline-none focus:shadow-outline-purple" |
1412 | @click="toggleSideMenu" | 1430 | @click="toggleSideMenu" |
1413 | aria-label="Menu" | 1431 | aria-label="Menu" |
1414 | > | 1432 | > |
1415 | <svg | 1433 | <svg |
1416 | class="w-6 h-6" | 1434 | class="w-6 h-6" |
1417 | aria-hidden="true" | 1435 | aria-hidden="true" |
1418 | fill="currentColor" | 1436 | fill="currentColor" |
1419 | viewBox="0 0 20 20" | 1437 | viewBox="0 0 20 20" |
1420 | > | 1438 | > |
1421 | <path | 1439 | <path |
1422 | fill-rule="evenodd" | 1440 | fill-rule="evenodd" |
1423 | 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" | 1441 | 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" |
1424 | clip-rule="evenodd" | 1442 | clip-rule="evenodd" |
1425 | ></path> | 1443 | ></path> |
1426 | </svg> | 1444 | </svg> |
1427 | </button> | 1445 | </button> |
1428 | <!-- Search input --> | 1446 | <!-- Search input --> |
1429 | <div class="flex justify-center flex-1 lg:mr-32"> | 1447 | <div class="flex justify-center flex-1 lg:mr-32"> |
1430 | <div | 1448 | <div |
1431 | class="relative w-full max-w-xl mr-6 focus-within:text-purple-500" | 1449 | class="relative w-full max-w-xl mr-6 focus-within:text-purple-500" |
1432 | > | 1450 | > |
1433 | 1451 | ||
1434 | @yield('search') | 1452 | @yield('search') |
1435 | </div> | 1453 | </div> |
1436 | </div> | 1454 | </div> |
1437 | <ul class="flex items-center flex-shrink-0 space-x-6"> | 1455 | <ul class="flex items-center flex-shrink-0 space-x-6"> |
1438 | <!-- Theme toggler --> | 1456 | <!-- Theme toggler --> |
1439 | <li class="flex"> | 1457 | <li class="flex"> |
1440 | <button | 1458 | <button |
1441 | class="rounded-md focus:outline-none focus:shadow-outline-purple" | 1459 | class="rounded-md focus:outline-none focus:shadow-outline-purple" |
1442 | @click="toggleTheme" | 1460 | @click="toggleTheme" |
1443 | aria-label="Toggle color mode" | 1461 | aria-label="Toggle color mode" |
1444 | > | 1462 | > |
1445 | <template x-if="!dark"> | 1463 | <template x-if="!dark"> |
1446 | <svg | 1464 | <svg |
1447 | class="w-5 h-5" | 1465 | class="w-5 h-5" |
1448 | aria-hidden="true" | 1466 | aria-hidden="true" |
1449 | fill="currentColor" | 1467 | fill="currentColor" |
1450 | viewBox="0 0 20 20" | 1468 | viewBox="0 0 20 20" |
1451 | > | 1469 | > |
1452 | <path | 1470 | <path |
1453 | d="M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z" | 1471 | d="M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z" |
1454 | ></path> | 1472 | ></path> |
1455 | </svg> | 1473 | </svg> |
1456 | </template> | 1474 | </template> |
1457 | <template x-if="dark"> | 1475 | <template x-if="dark"> |
1458 | <svg | 1476 | <svg |
1459 | class="w-5 h-5" | 1477 | class="w-5 h-5" |
1460 | aria-hidden="true" | 1478 | aria-hidden="true" |
1461 | fill="currentColor" | 1479 | fill="currentColor" |
1462 | viewBox="0 0 20 20" | 1480 | viewBox="0 0 20 20" |
1463 | > | 1481 | > |
1464 | <path | 1482 | <path |
1465 | fill-rule="evenodd" | 1483 | fill-rule="evenodd" |
1466 | 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" | 1484 | 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" |
1467 | clip-rule="evenodd" | 1485 | clip-rule="evenodd" |
1468 | ></path> | 1486 | ></path> |
1469 | </svg> | 1487 | </svg> |
1470 | </template> | 1488 | </template> |
1471 | </button> | 1489 | </button> |
1472 | </li> | 1490 | </li> |
1473 | <!-- Notifications menu --> | 1491 | <!-- Notifications menu --> |
1474 | <li class="relative"> | 1492 | <li class="relative"> |
1475 | <button | 1493 | <button |
1476 | class="relative align-middle rounded-md focus:outline-none focus:shadow-outline-purple" | 1494 | class="relative align-middle rounded-md focus:outline-none focus:shadow-outline-purple" |
1477 | @click="toggleNotificationsMenu" | 1495 | @click="toggleNotificationsMenu" |
1478 | @keydown.escape="closeNotificationsMenu" | 1496 | @keydown.escape="closeNotificationsMenu" |
1479 | aria-label="Notifications" | 1497 | aria-label="Notifications" |
1480 | aria-haspopup="true" | 1498 | aria-haspopup="true" |
1481 | > | 1499 | > |
1482 | <svg | 1500 | <svg |
1483 | class="w-5 h-5" | 1501 | class="w-5 h-5" |
1484 | aria-hidden="true" | 1502 | aria-hidden="true" |
1485 | fill="currentColor" | 1503 | fill="currentColor" |
1486 | viewBox="0 0 20 20" | 1504 | viewBox="0 0 20 20" |
1487 | > | 1505 | > |
1488 | <path | 1506 | <path |
1489 | 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" | 1507 | 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" |
1490 | ></path> | 1508 | ></path> |
1491 | </svg> | 1509 | </svg> |
1492 | <!-- Notification badge --> | 1510 | <!-- Notification badge --> |
1493 | <span | 1511 | <span |
1494 | aria-hidden="true" | 1512 | aria-hidden="true" |
1495 | 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" | 1513 | 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" |
1496 | ></span> | 1514 | ></span> |
1497 | </button> | 1515 | </button> |
1498 | <template x-if="isNotificationsMenuOpen"> | 1516 | <template x-if="isNotificationsMenuOpen"> |
1499 | <ul | 1517 | <ul |
1500 | x-transition:leave="transition ease-in duration-150" | 1518 | x-transition:leave="transition ease-in duration-150" |
1501 | x-transition:leave-start="opacity-100" | 1519 | x-transition:leave-start="opacity-100" |
1502 | x-transition:leave-end="opacity-0" | 1520 | x-transition:leave-end="opacity-0" |
1503 | @click.away="closeNotificationsMenu" | 1521 | @click.away="closeNotificationsMenu" |
1504 | @keydown.escape="closeNotificationsMenu" | 1522 | @keydown.escape="closeNotificationsMenu" |
1505 | 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" | 1523 | 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" |
1506 | > | 1524 | > |
1507 | <li class="flex"> | 1525 | <li class="flex"> |
1508 | <a | 1526 | <a |
1509 | 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" | 1527 | 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" |
1510 | href="{{ route('admin.admin-messages') }}" | 1528 | href="{{ route('admin.admin-messages') }}" |
1511 | > | 1529 | > |
1512 | <span>Сообщения</span> | 1530 | <span>Сообщения</span> |
1513 | @if($MsgCount > 0) | 1531 | @if($MsgCount > 0) |
1514 | <span | 1532 | <span |
1515 | 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" | 1533 | 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" |
1516 | > | 1534 | > |
1517 | 1535 | ||
1518 | {{ $MsgCount }} | 1536 | {{ $MsgCount }} |
1519 | </span> | 1537 | </span> |
1520 | @endif | 1538 | @endif |
1521 | </a> | 1539 | </a> |
1522 | </li> | 1540 | </li> |
1523 | <!--<li class="flex"> | 1541 | <!--<li class="flex"> |
1524 | <a | 1542 | <a |
1525 | 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" | 1543 | 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" |
1526 | href="#" | 1544 | href="#" |
1527 | > | 1545 | > |
1528 | <span>Логи</span> | 1546 | <span>Логи</span> |
1529 | </a> | 1547 | </a> |
1530 | </li>--> | 1548 | </li>--> |
1531 | </ul> | 1549 | </ul> |
1532 | </template> | 1550 | </template> |
1533 | </li> | 1551 | </li> |
1534 | <!-- Profile menu --> | 1552 | <!-- Profile menu --> |
1535 | <li class="relative"> | 1553 | <li class="relative"> |
1536 | <button | 1554 | <button |
1537 | class="align-middle rounded-full focus:shadow-outline-purple focus:outline-none" | 1555 | class="align-middle rounded-full focus:shadow-outline-purple focus:outline-none" |
1538 | @click="toggleProfileMenu" | 1556 | @click="toggleProfileMenu" |
1539 | @keydown.escape="closeProfileMenu" | 1557 | @keydown.escape="closeProfileMenu" |
1540 | aria-label="Account" | 1558 | aria-label="Account" |
1541 | aria-haspopup="true" | 1559 | aria-haspopup="true" |
1542 | > | 1560 | > |
1543 | <img | 1561 | <img |
1544 | class="object-cover w-8 h-8 rounded-full" | 1562 | class="object-cover w-8 h-8 rounded-full" |
1545 | src="{{ asset('assets/img/profile.jpg') }}" | 1563 | src="{{ asset('assets/img/profile.jpg') }}" |
1546 | alt="" | 1564 | alt="" |
1547 | aria-hidden="true" | 1565 | aria-hidden="true" |
1548 | /> | 1566 | /> |
1549 | </button> | 1567 | </button> |
1550 | <template x-if="isProfileMenuOpen"> | 1568 | <template x-if="isProfileMenuOpen"> |
1551 | <ul | 1569 | <ul |
1552 | x-transition:leave="transition ease-in duration-150" | 1570 | x-transition:leave="transition ease-in duration-150" |
1553 | x-transition:leave-start="opacity-100" | 1571 | x-transition:leave-start="opacity-100" |
1554 | x-transition:leave-end="opacity-0" | 1572 | x-transition:leave-end="opacity-0" |
1555 | @click.away="closeProfileMenu" | 1573 | @click.away="closeProfileMenu" |
1556 | @keydown.escape="closeProfileMenu" | 1574 | @keydown.escape="closeProfileMenu" |
1557 | 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" | 1575 | 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" |
1558 | aria-label="submenu" | 1576 | aria-label="submenu" |
1559 | > | 1577 | > |
1560 | <li class="flex"> | 1578 | <li class="flex"> |
1561 | <a | 1579 | <a |
1562 | 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" | 1580 | 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" |
1563 | href="{{ route('admin.profile') }}" | 1581 | href="{{ route('admin.profile') }}" |
1564 | > | 1582 | > |
1565 | <svg | 1583 | <svg |
1566 | class="w-4 h-4 mr-3" | 1584 | class="w-4 h-4 mr-3" |
1567 | aria-hidden="true" | 1585 | aria-hidden="true" |
1568 | fill="none" | 1586 | fill="none" |
1569 | stroke-linecap="round" | 1587 | stroke-linecap="round" |
1570 | stroke-linejoin="round" | 1588 | stroke-linejoin="round" |
1571 | stroke-width="2" | 1589 | stroke-width="2" |
1572 | viewBox="0 0 24 24" | 1590 | viewBox="0 0 24 24" |
1573 | stroke="currentColor" | 1591 | stroke="currentColor" |
1574 | > | 1592 | > |
1575 | <path | 1593 | <path |
1576 | d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" | 1594 | d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" |
1577 | ></path> | 1595 | ></path> |
1578 | </svg> | 1596 | </svg> |
1579 | <span>Профиль</span> | 1597 | <span>Профиль</span> |
1580 | </a> | 1598 | </a> |
1581 | </li> | 1599 | </li> |
1582 | <li class="flex"> | 1600 | <li class="flex"> |
1583 | <a | 1601 | <a |
1584 | 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" | 1602 | 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" |
1585 | href="{{ route('admin.config') }}" | 1603 | href="{{ route('admin.config') }}" |
1586 | > | 1604 | > |
1587 | <svg | 1605 | <svg |
1588 | class="w-4 h-4 mr-3" | 1606 | class="w-4 h-4 mr-3" |
1589 | aria-hidden="true" | 1607 | aria-hidden="true" |
1590 | fill="none" | 1608 | fill="none" |
1591 | stroke-linecap="round" | 1609 | stroke-linecap="round" |
1592 | stroke-linejoin="round" | 1610 | stroke-linejoin="round" |
1593 | stroke-width="2" | 1611 | stroke-width="2" |
1594 | viewBox="0 0 24 24" | 1612 | viewBox="0 0 24 24" |
1595 | stroke="currentColor" | 1613 | stroke="currentColor" |
1596 | > | 1614 | > |
1597 | <path | 1615 | <path |
1598 | 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" | 1616 | 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" |
1599 | ></path> | 1617 | ></path> |
1600 | <path d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path> | 1618 | <path d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path> |
1601 | </svg> | 1619 | </svg> |
1602 | <span>Настройки</span> | 1620 | <span>Настройки</span> |
1603 | </a> | 1621 | </a> |
1604 | </li> | 1622 | </li> |
1605 | <li class="flex"> | 1623 | <li class="flex"> |
1606 | <a | 1624 | <a |
1607 | 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" | 1625 | 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" |
1608 | href="{{ route('admin.logout') }}" | 1626 | href="{{ route('admin.logout') }}" |
1609 | > | 1627 | > |
1610 | <svg | 1628 | <svg |
1611 | class="w-4 h-4 mr-3" | 1629 | class="w-4 h-4 mr-3" |
1612 | aria-hidden="true" | 1630 | aria-hidden="true" |
1613 | fill="none" | 1631 | fill="none" |
1614 | stroke-linecap="round" | 1632 | stroke-linecap="round" |
1615 | stroke-linejoin="round" | 1633 | stroke-linejoin="round" |
1616 | stroke-width="2" | 1634 | stroke-width="2" |
1617 | viewBox="0 0 24 24" | 1635 | viewBox="0 0 24 24" |
1618 | stroke="currentColor" | 1636 | stroke="currentColor" |
1619 | > | 1637 | > |
1620 | <path | 1638 | <path |
1621 | 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" | 1639 | 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" |
1622 | ></path> | 1640 | ></path> |
1623 | </svg> | 1641 | </svg> |
1624 | <span>Выход</span> | 1642 | <span>Выход</span> |
1625 | </a> | 1643 | </a> |
1626 | </li> | 1644 | </li> |
1627 | </ul> | 1645 | </ul> |
1628 | </template> | 1646 | </template> |
1629 | </li> | 1647 | </li> |
1630 | </ul> | 1648 | </ul> |
1631 | </div> | 1649 | </div> |
1632 | </header> | 1650 | </header> |
1633 | <main class="h-full overflow-y-auto"> | 1651 | <main class="h-full overflow-y-auto"> |
1634 | <div class="container px-6 mx-auto grid"> | 1652 | <div class="container px-6 mx-auto grid"> |
1635 | <h2 | 1653 | <h2 |
1636 | class="my-6 text-2xl font-semibold text-gray-700 dark:text-gray-200" | 1654 | class="my-6 text-2xl font-semibold text-gray-700 dark:text-gray-200" |
1637 | > | 1655 | > |
1638 | {{$title}} | 1656 | {{$title}} |
1639 | </h2> | 1657 | </h2> |
1640 | <!-- CTA --> | 1658 | <!-- CTA --> |
1641 | <a | 1659 | <a |
1642 | 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" | 1660 | 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" |
1643 | href="{{ route('admin.admin-users') }}" | 1661 | href="{{ route('admin.admin-users') }}" |
1644 | > | 1662 | > |
1645 | <div class="flex items-center"> | 1663 | <div class="flex items-center"> |
1646 | <svg | 1664 | <svg |
1647 | class="w-5 h-5 mr-2" | 1665 | class="w-5 h-5 mr-2" |
1648 | fill="currentColor" | 1666 | fill="currentColor" |
1649 | viewBox="0 0 20 20" | 1667 | viewBox="0 0 20 20" |
1650 | > | 1668 | > |
1651 | <path | 1669 | <path |
1652 | 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" | 1670 | 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" |
1653 | ></path> | 1671 | ></path> |
1654 | </svg> | 1672 | </svg> |
1655 | <span>Контент для админов</span> | 1673 | <span>Контент для админов</span> |
1656 | </div> | 1674 | </div> |
1657 | <span>Список админов →</span> | 1675 | <span>Список админов →</span> |
1658 | </a> | 1676 | </a> |
1659 | 1677 | ||
1660 | @if ($message = Session::get('success')) | 1678 | @if ($message = Session::get('success')) |
1661 | <section> | 1679 | <section> |
1662 | <div class="alert alert-success alert-dismissible mt-0" role="alert"> | 1680 | <div class="alert alert-success alert-dismissible mt-0" role="alert"> |
1663 | <button type="button" class="close" data-dismiss="alert" aria-label="Закрыть"> | 1681 | <button type="button" class="close" data-dismiss="alert" aria-label="Закрыть"> |
1664 | <span aria-hidden="true">×</span> | 1682 | <span aria-hidden="true">×</span> |
1665 | </button> | 1683 | </button> |
1666 | {{ $message }} | 1684 | {{ $message }} |
1667 | </div> | 1685 | </div> |
1668 | </section> | 1686 | </section> |
1669 | @endif | 1687 | @endif |
1670 | 1688 | ||
1671 | @if ($errors->any()) | 1689 | @if ($errors->any()) |
1672 | <section> | 1690 | <section> |
1673 | <div class="alert alert-danger alert-dismissible mt-4" role="alert"> | 1691 | <div class="alert alert-danger alert-dismissible mt-4" role="alert"> |
1674 | <button type="button" class="close" data-dismiss="alert" aria-label="Закрыть"> | 1692 | <button type="button" class="close" data-dismiss="alert" aria-label="Закрыть"> |
1675 | <span aria-hidden="true">×</span> | 1693 | <span aria-hidden="true">×</span> |
1676 | </button> | 1694 | </button> |
1677 | <ul class="mb-0"> | 1695 | <ul class="mb-0"> |
1678 | @foreach ($errors->all() as $error) | 1696 | @foreach ($errors->all() as $error) |
1679 | <li>{{ $error }}</li> | 1697 | <li>{{ $error }}</li> |
1680 | @endforeach | 1698 | @endforeach |
1681 | </ul> | 1699 | </ul> |
1682 | </div> | 1700 | </div> |
1683 | </section> | 1701 | </section> |
1684 | @endif | 1702 | @endif |
1685 | 1703 | ||
1686 | @yield('content') | 1704 | @yield('content') |
1687 | 1705 | ||
1688 | <!-- Cards | 1706 | <!-- Cards |
1689 | <div class="grid gap-6 mb-8 md:grid-cols-2 xl:grid-cols-4"> | 1707 | <div class="grid gap-6 mb-8 md:grid-cols-2 xl:grid-cols-4"> |
1690 | 1708 | ||
1691 | <div | 1709 | <div |
1692 | class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800" | 1710 | class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800" |
1693 | > | 1711 | > |
1694 | <div | 1712 | <div |
1695 | class="p-3 mr-4 text-orange-500 bg-orange-100 rounded-full dark:text-orange-100 dark:bg-orange-500" | 1713 | class="p-3 mr-4 text-orange-500 bg-orange-100 rounded-full dark:text-orange-100 dark:bg-orange-500" |
1696 | > | 1714 | > |
1697 | <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> | 1715 | <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> |
1698 | <path | 1716 | <path |
1699 | 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" | 1717 | 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" |
1700 | ></path> | 1718 | ></path> |
1701 | </svg> | 1719 | </svg> |
1702 | </div> | 1720 | </div> |
1703 | <div> | 1721 | <div> |
1704 | <p | 1722 | <p |
1705 | class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400" | 1723 | class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400" |
1706 | > | 1724 | > |
1707 | Total clients | 1725 | Total clients |
1708 | </p> | 1726 | </p> |
1709 | <p | 1727 | <p |
1710 | class="text-lg font-semibold text-gray-700 dark:text-gray-200" | 1728 | class="text-lg font-semibold text-gray-700 dark:text-gray-200" |
1711 | > | 1729 | > |
1712 | 6389 | 1730 | 6389 |
1713 | </p> | 1731 | </p> |
1714 | </div> | 1732 | </div> |
1715 | </div> | 1733 | </div> |
1716 | 1734 | ||
1717 | <div | 1735 | <div |
1718 | class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800" | 1736 | class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800" |
1719 | > | 1737 | > |
1720 | <div | 1738 | <div |
1721 | class="p-3 mr-4 text-green-500 bg-green-100 rounded-full dark:text-green-100 dark:bg-green-500" | 1739 | class="p-3 mr-4 text-green-500 bg-green-100 rounded-full dark:text-green-100 dark:bg-green-500" |
1722 | > | 1740 | > |
1723 | <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> | 1741 | <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> |
1724 | <path | 1742 | <path |
1725 | fill-rule="evenodd" | 1743 | fill-rule="evenodd" |
1726 | 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" | 1744 | 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" |
1727 | clip-rule="evenodd" | 1745 | clip-rule="evenodd" |
1728 | ></path> | 1746 | ></path> |
1729 | </svg> | 1747 | </svg> |
1730 | </div> | 1748 | </div> |
1731 | <div> | 1749 | <div> |
1732 | <p | 1750 | <p |
1733 | class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400" | 1751 | class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400" |
1734 | > | 1752 | > |
1735 | Account balance | 1753 | Account balance |
1736 | </p> | 1754 | </p> |
1737 | <p | 1755 | <p |
1738 | class="text-lg font-semibold text-gray-700 dark:text-gray-200" | 1756 | class="text-lg font-semibold text-gray-700 dark:text-gray-200" |
1739 | > | 1757 | > |
1740 | $ 46,760.89 | 1758 | $ 46,760.89 |
1741 | </p> | 1759 | </p> |
1742 | </div> | 1760 | </div> |
1743 | </div> | 1761 | </div> |
1744 | 1762 | ||
1745 | <div | 1763 | <div |
1746 | class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800" | 1764 | class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800" |
1747 | > | 1765 | > |
1748 | <div | 1766 | <div |
1749 | class="p-3 mr-4 text-blue-500 bg-blue-100 rounded-full dark:text-blue-100 dark:bg-blue-500" | 1767 | class="p-3 mr-4 text-blue-500 bg-blue-100 rounded-full dark:text-blue-100 dark:bg-blue-500" |
1750 | > | 1768 | > |
1751 | <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> | 1769 | <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> |
1752 | <path | 1770 | <path |
1753 | 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" | 1771 | 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" |
1754 | ></path> | 1772 | ></path> |
1755 | </svg> | 1773 | </svg> |
1756 | </div> | 1774 | </div> |
1757 | <div> | 1775 | <div> |
1758 | <p | 1776 | <p |
1759 | class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400" | 1777 | class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400" |
1760 | > | 1778 | > |
1761 | New sales | 1779 | New sales |
1762 | </p> | 1780 | </p> |
1763 | <p | 1781 | <p |
1764 | class="text-lg font-semibold text-gray-700 dark:text-gray-200" | 1782 | class="text-lg font-semibold text-gray-700 dark:text-gray-200" |
1765 | > | 1783 | > |
1766 | 376 | 1784 | 376 |
1767 | </p> | 1785 | </p> |
1768 | </div> | 1786 | </div> |
1769 | </div> | 1787 | </div> |
1770 | 1788 | ||
1771 | <div | 1789 | <div |
1772 | class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800" | 1790 | class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800" |
1773 | > | 1791 | > |
1774 | <div | 1792 | <div |
1775 | class="p-3 mr-4 text-teal-500 bg-teal-100 rounded-full dark:text-teal-100 dark:bg-teal-500" | 1793 | class="p-3 mr-4 text-teal-500 bg-teal-100 rounded-full dark:text-teal-100 dark:bg-teal-500" |
1776 | > | 1794 | > |
1777 | <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> | 1795 | <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> |
1778 | <path | 1796 | <path |
1779 | fill-rule="evenodd" | 1797 | fill-rule="evenodd" |
1780 | 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" | 1798 | 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" |
1781 | clip-rule="evenodd" | 1799 | clip-rule="evenodd" |
1782 | ></path> | 1800 | ></path> |
1783 | </svg> | 1801 | </svg> |
1784 | </div> | 1802 | </div> |
1785 | <div> | 1803 | <div> |
1786 | <p | 1804 | <p |
1787 | class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400" | 1805 | class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400" |
1788 | > | 1806 | > |
1789 | Pending contacts | 1807 | Pending contacts |
1790 | </p> | 1808 | </p> |
1791 | <p | 1809 | <p |
1792 | class="text-lg font-semibold text-gray-700 dark:text-gray-200" | 1810 | class="text-lg font-semibold text-gray-700 dark:text-gray-200" |
1793 | > | 1811 | > |
1794 | 35 | 1812 | 35 |
1795 | </p> | 1813 | </p> |
1796 | </div> | 1814 | </div> |
1797 | </div> | 1815 | </div> |
1798 | </div> | 1816 | </div> |
1799 | --> | 1817 | --> |
1800 | <!-- New Table | 1818 | <!-- New Table |
1801 | <div class="w-full overflow-hidden rounded-lg shadow-xs"> | 1819 | <div class="w-full overflow-hidden rounded-lg shadow-xs"> |
1802 | <div class="w-full overflow-x-auto"> | 1820 | <div class="w-full overflow-x-auto"> |
1803 | <table class="w-full whitespace-no-wrap"> | 1821 | <table class="w-full whitespace-no-wrap"> |
1804 | <thead> | 1822 | <thead> |
1805 | <tr | 1823 | <tr |
1806 | 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" | 1824 | 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" |
1807 | > | 1825 | > |
1808 | <th class="px-4 py-3">Client</th> | 1826 | <th class="px-4 py-3">Client</th> |
1809 | <th class="px-4 py-3">Amount</th> | 1827 | <th class="px-4 py-3">Amount</th> |
1810 | <th class="px-4 py-3">Status</th> | 1828 | <th class="px-4 py-3">Status</th> |
1811 | <th class="px-4 py-3">Date</th> | 1829 | <th class="px-4 py-3">Date</th> |
1812 | </tr> | 1830 | </tr> |
1813 | </thead> | 1831 | </thead> |
1814 | <tbody | 1832 | <tbody |
1815 | class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800" | 1833 | class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800" |
1816 | > | 1834 | > |
1817 | <tr class="text-gray-700 dark:text-gray-400"> | 1835 | <tr class="text-gray-700 dark:text-gray-400"> |
1818 | <td class="px-4 py-3"> | 1836 | <td class="px-4 py-3"> |
1819 | <div class="flex items-center text-sm"> | 1837 | <div class="flex items-center text-sm"> |
1820 | 1838 | ||
1821 | <div | 1839 | <div |
1822 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" | 1840 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" |
1823 | > | 1841 | > |
1824 | <img | 1842 | <img |
1825 | class="object-cover w-full h-full rounded-full" | 1843 | class="object-cover w-full h-full rounded-full" |
1826 | 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" | 1844 | 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" |
1827 | alt="" | 1845 | alt="" |
1828 | loading="lazy" | 1846 | loading="lazy" |
1829 | /> | 1847 | /> |
1830 | <div | 1848 | <div |
1831 | class="absolute inset-0 rounded-full shadow-inner" | 1849 | class="absolute inset-0 rounded-full shadow-inner" |
1832 | aria-hidden="true" | 1850 | aria-hidden="true" |
1833 | ></div> | 1851 | ></div> |
1834 | </div> | 1852 | </div> |
1835 | <div> | 1853 | <div> |
1836 | <p class="font-semibold">Hans Burger</p> | 1854 | <p class="font-semibold">Hans Burger</p> |
1837 | <p class="text-xs text-gray-600 dark:text-gray-400"> | 1855 | <p class="text-xs text-gray-600 dark:text-gray-400"> |
1838 | 10x Developer | 1856 | 10x Developer |
1839 | </p> | 1857 | </p> |
1840 | </div> | 1858 | </div> |
1841 | </div> | 1859 | </div> |
1842 | </td> | 1860 | </td> |
1843 | <td class="px-4 py-3 text-sm"> | 1861 | <td class="px-4 py-3 text-sm"> |
1844 | $ 863.45 | 1862 | $ 863.45 |
1845 | </td> | 1863 | </td> |
1846 | <td class="px-4 py-3 text-xs"> | 1864 | <td class="px-4 py-3 text-xs"> |
1847 | <span | 1865 | <span |
1848 | 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" | 1866 | 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" |
1849 | > | 1867 | > |
1850 | Approved | 1868 | Approved |
1851 | </span> | 1869 | </span> |
1852 | </td> | 1870 | </td> |
1853 | <td class="px-4 py-3 text-sm"> | 1871 | <td class="px-4 py-3 text-sm"> |
1854 | 6/10/2020 | 1872 | 6/10/2020 |
1855 | </td> | 1873 | </td> |
1856 | </tr> | 1874 | </tr> |
1857 | 1875 | ||
1858 | <tr class="text-gray-700 dark:text-gray-400"> | 1876 | <tr class="text-gray-700 dark:text-gray-400"> |
1859 | <td class="px-4 py-3"> | 1877 | <td class="px-4 py-3"> |
1860 | <div class="flex items-center text-sm"> | 1878 | <div class="flex items-center text-sm"> |
1861 | 1879 | ||
1862 | <div | 1880 | <div |
1863 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" | 1881 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" |
1864 | > | 1882 | > |
1865 | <img | 1883 | <img |
1866 | class="object-cover w-full h-full rounded-full" | 1884 | class="object-cover w-full h-full rounded-full" |
1867 | 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" | 1885 | 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" |
1868 | alt="" | 1886 | alt="" |
1869 | loading="lazy" | 1887 | loading="lazy" |
1870 | /> | 1888 | /> |
1871 | <div | 1889 | <div |
1872 | class="absolute inset-0 rounded-full shadow-inner" | 1890 | class="absolute inset-0 rounded-full shadow-inner" |
1873 | aria-hidden="true" | 1891 | aria-hidden="true" |
1874 | ></div> | 1892 | ></div> |
1875 | </div> | 1893 | </div> |
1876 | <div> | 1894 | <div> |
1877 | <p class="font-semibold">Jolina Angelie</p> | 1895 | <p class="font-semibold">Jolina Angelie</p> |
1878 | <p class="text-xs text-gray-600 dark:text-gray-400"> | 1896 | <p class="text-xs text-gray-600 dark:text-gray-400"> |
1879 | Unemployed | 1897 | Unemployed |
1880 | </p> | 1898 | </p> |
1881 | </div> | 1899 | </div> |
1882 | </div> | 1900 | </div> |
1883 | </td> | 1901 | </td> |
1884 | <td class="px-4 py-3 text-sm"> | 1902 | <td class="px-4 py-3 text-sm"> |
1885 | $ 369.95 | 1903 | $ 369.95 |
1886 | </td> | 1904 | </td> |
1887 | <td class="px-4 py-3 text-xs"> | 1905 | <td class="px-4 py-3 text-xs"> |
1888 | <span | 1906 | <span |
1889 | class="px-2 py-1 font-semibold leading-tight text-orange-700 bg-orange-100 rounded-full dark:text-white dark:bg-orange-600" | 1907 | class="px-2 py-1 font-semibold leading-tight text-orange-700 bg-orange-100 rounded-full dark:text-white dark:bg-orange-600" |
1890 | > | 1908 | > |
1891 | Pending | 1909 | Pending |
1892 | </span> | 1910 | </span> |
1893 | </td> | 1911 | </td> |
1894 | <td class="px-4 py-3 text-sm"> | 1912 | <td class="px-4 py-3 text-sm"> |
1895 | 6/10/2020 | 1913 | 6/10/2020 |
1896 | </td> | 1914 | </td> |
1897 | </tr> | 1915 | </tr> |
1898 | 1916 | ||
1899 | <tr class="text-gray-700 dark:text-gray-400"> | 1917 | <tr class="text-gray-700 dark:text-gray-400"> |
1900 | <td class="px-4 py-3"> | 1918 | <td class="px-4 py-3"> |
1901 | <div class="flex items-center text-sm"> | 1919 | <div class="flex items-center text-sm"> |
1902 | 1920 | ||
1903 | <div | 1921 | <div |
1904 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" | 1922 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" |
1905 | > | 1923 | > |
1906 | <img | 1924 | <img |
1907 | class="object-cover w-full h-full rounded-full" | 1925 | class="object-cover w-full h-full rounded-full" |
1908 | 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" | 1926 | 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" |
1909 | alt="" | 1927 | alt="" |
1910 | loading="lazy" | 1928 | loading="lazy" |
1911 | /> | 1929 | /> |
1912 | <div | 1930 | <div |
1913 | class="absolute inset-0 rounded-full shadow-inner" | 1931 | class="absolute inset-0 rounded-full shadow-inner" |
1914 | aria-hidden="true" | 1932 | aria-hidden="true" |
1915 | ></div> | 1933 | ></div> |
1916 | </div> | 1934 | </div> |
1917 | <div> | 1935 | <div> |
1918 | <p class="font-semibold">Sarah Curry</p> | 1936 | <p class="font-semibold">Sarah Curry</p> |
1919 | <p class="text-xs text-gray-600 dark:text-gray-400"> | 1937 | <p class="text-xs text-gray-600 dark:text-gray-400"> |
1920 | Designer | 1938 | Designer |
1921 | </p> | 1939 | </p> |
1922 | </div> | 1940 | </div> |
1923 | </div> | 1941 | </div> |
1924 | </td> | 1942 | </td> |
1925 | <td class="px-4 py-3 text-sm"> | 1943 | <td class="px-4 py-3 text-sm"> |
1926 | $ 86.00 | 1944 | $ 86.00 |
1927 | </td> | 1945 | </td> |
1928 | <td class="px-4 py-3 text-xs"> | 1946 | <td class="px-4 py-3 text-xs"> |
1929 | <span | 1947 | <span |
1930 | 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" | 1948 | 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" |
1931 | > | 1949 | > |
1932 | Denied | 1950 | Denied |
1933 | </span> | 1951 | </span> |
1934 | </td> | 1952 | </td> |
1935 | <td class="px-4 py-3 text-sm"> | 1953 | <td class="px-4 py-3 text-sm"> |
1936 | 6/10/2020 | 1954 | 6/10/2020 |
1937 | </td> | 1955 | </td> |
1938 | </tr> | 1956 | </tr> |
1939 | 1957 | ||
1940 | <tr class="text-gray-700 dark:text-gray-400"> | 1958 | <tr class="text-gray-700 dark:text-gray-400"> |
1941 | <td class="px-4 py-3"> | 1959 | <td class="px-4 py-3"> |
1942 | <div class="flex items-center text-sm"> | 1960 | <div class="flex items-center text-sm"> |
1943 | 1961 | ||
1944 | <div | 1962 | <div |
1945 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" | 1963 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" |
1946 | > | 1964 | > |
1947 | <img | 1965 | <img |
1948 | class="object-cover w-full h-full rounded-full" | 1966 | class="object-cover w-full h-full rounded-full" |
1949 | 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" | 1967 | 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" |
1950 | alt="" | 1968 | alt="" |
1951 | loading="lazy" | 1969 | loading="lazy" |
1952 | /> | 1970 | /> |
1953 | <div | 1971 | <div |
1954 | class="absolute inset-0 rounded-full shadow-inner" | 1972 | class="absolute inset-0 rounded-full shadow-inner" |
1955 | aria-hidden="true" | 1973 | aria-hidden="true" |
1956 | ></div> | 1974 | ></div> |
1957 | </div> | 1975 | </div> |
1958 | <div> | 1976 | <div> |
1959 | <p class="font-semibold">Rulia Joberts</p> | 1977 | <p class="font-semibold">Rulia Joberts</p> |
1960 | <p class="text-xs text-gray-600 dark:text-gray-400"> | 1978 | <p class="text-xs text-gray-600 dark:text-gray-400"> |
1961 | Actress | 1979 | Actress |
1962 | </p> | 1980 | </p> |
1963 | </div> | 1981 | </div> |
1964 | </div> | 1982 | </div> |
1965 | </td> | 1983 | </td> |
1966 | <td class="px-4 py-3 text-sm"> | 1984 | <td class="px-4 py-3 text-sm"> |
1967 | $ 1276.45 | 1985 | $ 1276.45 |
1968 | </td> | 1986 | </td> |
1969 | <td class="px-4 py-3 text-xs"> | 1987 | <td class="px-4 py-3 text-xs"> |
1970 | <span | 1988 | <span |
1971 | 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" | 1989 | 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" |
1972 | > | 1990 | > |
1973 | Approved | 1991 | Approved |
1974 | </span> | 1992 | </span> |
1975 | </td> | 1993 | </td> |
1976 | <td class="px-4 py-3 text-sm"> | 1994 | <td class="px-4 py-3 text-sm"> |
1977 | 6/10/2020 | 1995 | 6/10/2020 |
1978 | </td> | 1996 | </td> |
1979 | </tr> | 1997 | </tr> |
1980 | 1998 | ||
1981 | <tr class="text-gray-700 dark:text-gray-400"> | 1999 | <tr class="text-gray-700 dark:text-gray-400"> |
1982 | <td class="px-4 py-3"> | 2000 | <td class="px-4 py-3"> |
1983 | <div class="flex items-center text-sm"> | 2001 | <div class="flex items-center text-sm"> |
1984 | 2002 | ||
1985 | <div | 2003 | <div |
1986 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" | 2004 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" |
1987 | > | 2005 | > |
1988 | <img | 2006 | <img |
1989 | class="object-cover w-full h-full rounded-full" | 2007 | class="object-cover w-full h-full rounded-full" |
1990 | 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" | 2008 | 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" |
1991 | alt="" | 2009 | alt="" |
1992 | loading="lazy" | 2010 | loading="lazy" |
1993 | /> | 2011 | /> |
1994 | <div | 2012 | <div |
1995 | class="absolute inset-0 rounded-full shadow-inner" | 2013 | class="absolute inset-0 rounded-full shadow-inner" |
1996 | aria-hidden="true" | 2014 | aria-hidden="true" |
1997 | ></div> | 2015 | ></div> |
1998 | </div> | 2016 | </div> |
1999 | <div> | 2017 | <div> |
2000 | <p class="font-semibold">Wenzel Dashington</p> | 2018 | <p class="font-semibold">Wenzel Dashington</p> |
2001 | <p class="text-xs text-gray-600 dark:text-gray-400"> | 2019 | <p class="text-xs text-gray-600 dark:text-gray-400"> |
2002 | Actor | 2020 | Actor |
2003 | </p> | 2021 | </p> |
2004 | </div> | 2022 | </div> |
2005 | </div> | 2023 | </div> |
2006 | </td> | 2024 | </td> |
2007 | <td class="px-4 py-3 text-sm"> | 2025 | <td class="px-4 py-3 text-sm"> |
2008 | $ 863.45 | 2026 | $ 863.45 |
2009 | </td> | 2027 | </td> |
2010 | <td class="px-4 py-3 text-xs"> | 2028 | <td class="px-4 py-3 text-xs"> |
2011 | <span | 2029 | <span |
2012 | 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" | 2030 | 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" |
2013 | > | 2031 | > |
2014 | Expired | 2032 | Expired |
2015 | </span> | 2033 | </span> |
2016 | </td> | 2034 | </td> |
2017 | <td class="px-4 py-3 text-sm"> | 2035 | <td class="px-4 py-3 text-sm"> |
2018 | 6/10/2020 | 2036 | 6/10/2020 |
2019 | </td> | 2037 | </td> |
2020 | </tr> | 2038 | </tr> |
2021 | 2039 | ||
2022 | <tr class="text-gray-700 dark:text-gray-400"> | 2040 | <tr class="text-gray-700 dark:text-gray-400"> |
2023 | <td class="px-4 py-3"> | 2041 | <td class="px-4 py-3"> |
2024 | <div class="flex items-center text-sm"> | 2042 | <div class="flex items-center text-sm"> |
2025 | 2043 | ||
2026 | <div | 2044 | <div |
2027 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" | 2045 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" |
2028 | > | 2046 | > |
2029 | <img | 2047 | <img |
2030 | class="object-cover w-full h-full rounded-full" | 2048 | class="object-cover w-full h-full rounded-full" |
2031 | 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" | 2049 | 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" |
2032 | alt="" | 2050 | alt="" |
2033 | loading="lazy" | 2051 | loading="lazy" |
2034 | /> | 2052 | /> |
2035 | <div | 2053 | <div |
2036 | class="absolute inset-0 rounded-full shadow-inner" | 2054 | class="absolute inset-0 rounded-full shadow-inner" |
2037 | aria-hidden="true" | 2055 | aria-hidden="true" |
2038 | ></div> | 2056 | ></div> |
2039 | </div> | 2057 | </div> |
2040 | <div> | 2058 | <div> |
2041 | <p class="font-semibold">Dave Li</p> | 2059 | <p class="font-semibold">Dave Li</p> |
2042 | <p class="text-xs text-gray-600 dark:text-gray-400"> | 2060 | <p class="text-xs text-gray-600 dark:text-gray-400"> |
2043 | Influencer | 2061 | Influencer |
2044 | </p> | 2062 | </p> |
2045 | </div> | 2063 | </div> |
2046 | </div> | 2064 | </div> |
2047 | </td> | 2065 | </td> |
2048 | <td class="px-4 py-3 text-sm"> | 2066 | <td class="px-4 py-3 text-sm"> |
2049 | $ 863.45 | 2067 | $ 863.45 |
2050 | </td> | 2068 | </td> |
2051 | <td class="px-4 py-3 text-xs"> | 2069 | <td class="px-4 py-3 text-xs"> |
2052 | <span | 2070 | <span |
2053 | 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" | 2071 | 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" |
2054 | > | 2072 | > |
2055 | Approved | 2073 | Approved |
2056 | </span> | 2074 | </span> |
2057 | </td> | 2075 | </td> |
2058 | <td class="px-4 py-3 text-sm"> | 2076 | <td class="px-4 py-3 text-sm"> |
2059 | 6/10/2020 | 2077 | 6/10/2020 |
2060 | </td> | 2078 | </td> |
2061 | </tr> | 2079 | </tr> |
2062 | 2080 | ||
2063 | <tr class="text-gray-700 dark:text-gray-400"> | 2081 | <tr class="text-gray-700 dark:text-gray-400"> |
2064 | <td class="px-4 py-3"> | 2082 | <td class="px-4 py-3"> |
2065 | <div class="flex items-center text-sm"> | 2083 | <div class="flex items-center text-sm"> |
2066 | 2084 | ||
2067 | <div | 2085 | <div |
2068 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" | 2086 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" |
2069 | > | 2087 | > |
2070 | <img | 2088 | <img |
2071 | class="object-cover w-full h-full rounded-full" | 2089 | class="object-cover w-full h-full rounded-full" |
2072 | src="https://images.unsplash.com/photo-1531746020798-e6953c6e8e04?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&ixid=eyJhcHBfaWQiOjE3Nzg0fQ" | 2090 | src="https://images.unsplash.com/photo-1531746020798-e6953c6e8e04?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&ixid=eyJhcHBfaWQiOjE3Nzg0fQ" |
2073 | alt="" | 2091 | alt="" |
2074 | loading="lazy" | 2092 | loading="lazy" |
2075 | /> | 2093 | /> |
2076 | <div | 2094 | <div |
2077 | class="absolute inset-0 rounded-full shadow-inner" | 2095 | class="absolute inset-0 rounded-full shadow-inner" |
2078 | aria-hidden="true" | 2096 | aria-hidden="true" |
2079 | ></div> | 2097 | ></div> |
2080 | </div> | 2098 | </div> |
2081 | <div> | 2099 | <div> |
2082 | <p class="font-semibold">Maria Ramovic</p> | 2100 | <p class="font-semibold">Maria Ramovic</p> |
2083 | <p class="text-xs text-gray-600 dark:text-gray-400"> | 2101 | <p class="text-xs text-gray-600 dark:text-gray-400"> |
2084 | Runner | 2102 | Runner |
2085 | </p> | 2103 | </p> |
2086 | </div> | 2104 | </div> |
2087 | </div> | 2105 | </div> |
2088 | </td> | 2106 | </td> |
2089 | <td class="px-4 py-3 text-sm"> | 2107 | <td class="px-4 py-3 text-sm"> |
2090 | $ 863.45 | 2108 | $ 863.45 |
2091 | </td> | 2109 | </td> |
2092 | <td class="px-4 py-3 text-xs"> | 2110 | <td class="px-4 py-3 text-xs"> |
2093 | <span | 2111 | <span |
2094 | 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" | 2112 | 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" |
2095 | > | 2113 | > |
2096 | Approved | 2114 | Approved |
2097 | </span> | 2115 | </span> |
2098 | </td> | 2116 | </td> |
2099 | <td class="px-4 py-3 text-sm"> | 2117 | <td class="px-4 py-3 text-sm"> |
2100 | 6/10/2020 | 2118 | 6/10/2020 |
2101 | </td> | 2119 | </td> |
2102 | </tr> | 2120 | </tr> |
2103 | 2121 | ||
2104 | <tr class="text-gray-700 dark:text-gray-400"> | 2122 | <tr class="text-gray-700 dark:text-gray-400"> |
2105 | <td class="px-4 py-3"> | 2123 | <td class="px-4 py-3"> |
2106 | <div class="flex items-center text-sm"> | 2124 | <div class="flex items-center text-sm"> |
2107 | 2125 | ||
2108 | <div | 2126 | <div |
2109 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" | 2127 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" |
2110 | > | 2128 | > |
2111 | <img | 2129 | <img |
2112 | class="object-cover w-full h-full rounded-full" | 2130 | class="object-cover w-full h-full rounded-full" |
2113 | src="https://images.unsplash.com/photo-1566411520896-01e7ca4726af?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&ixid=eyJhcHBfaWQiOjE3Nzg0fQ" | 2131 | src="https://images.unsplash.com/photo-1566411520896-01e7ca4726af?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&ixid=eyJhcHBfaWQiOjE3Nzg0fQ" |
2114 | alt="" | 2132 | alt="" |
2115 | loading="lazy" | 2133 | loading="lazy" |
2116 | /> | 2134 | /> |
2117 | <div | 2135 | <div |
2118 | class="absolute inset-0 rounded-full shadow-inner" | 2136 | class="absolute inset-0 rounded-full shadow-inner" |
2119 | aria-hidden="true" | 2137 | aria-hidden="true" |
2120 | ></div> | 2138 | ></div> |
2121 | </div> | 2139 | </div> |
2122 | <div> | 2140 | <div> |
2123 | <p class="font-semibold">Hitney Wouston</p> | 2141 | <p class="font-semibold">Hitney Wouston</p> |
2124 | <p class="text-xs text-gray-600 dark:text-gray-400"> | 2142 | <p class="text-xs text-gray-600 dark:text-gray-400"> |
2125 | Singer | 2143 | Singer |
2126 | </p> | 2144 | </p> |
2127 | </div> | 2145 | </div> |
2128 | </div> | 2146 | </div> |
2129 | </td> | 2147 | </td> |
2130 | <td class="px-4 py-3 text-sm"> | 2148 | <td class="px-4 py-3 text-sm"> |
2131 | $ 863.45 | 2149 | $ 863.45 |
2132 | </td> | 2150 | </td> |
2133 | <td class="px-4 py-3 text-xs"> | 2151 | <td class="px-4 py-3 text-xs"> |
2134 | <span | 2152 | <span |
2135 | 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" | 2153 | 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" |
2136 | > | 2154 | > |
2137 | Approved | 2155 | Approved |
2138 | </span> | 2156 | </span> |
2139 | </td> | 2157 | </td> |
2140 | <td class="px-4 py-3 text-sm"> | 2158 | <td class="px-4 py-3 text-sm"> |
2141 | 6/10/2020 | 2159 | 6/10/2020 |
2142 | </td> | 2160 | </td> |
2143 | </tr> | 2161 | </tr> |
2144 | 2162 | ||
2145 | <tr class="text-gray-700 dark:text-gray-400"> | 2163 | <tr class="text-gray-700 dark:text-gray-400"> |
2146 | <td class="px-4 py-3"> | 2164 | <td class="px-4 py-3"> |
2147 | <div class="flex items-center text-sm"> | 2165 | <div class="flex items-center text-sm"> |
2148 | 2166 | ||
2149 | <div | 2167 | <div |
2150 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" | 2168 | class="relative hidden w-8 h-8 mr-3 rounded-full md:block" |
2151 | > | 2169 | > |
2152 | <img | 2170 | <img |
2153 | class="object-cover w-full h-full rounded-full" | 2171 | class="object-cover w-full h-full rounded-full" |
2154 | 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" | 2172 | 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" |
2155 | alt="" | 2173 | alt="" |
2156 | loading="lazy" | 2174 | loading="lazy" |
2157 | /> | 2175 | /> |
2158 | <div | 2176 | <div |
2159 | class="absolute inset-0 rounded-full shadow-inner" | 2177 | class="absolute inset-0 rounded-full shadow-inner" |
2160 | aria-hidden="true" | 2178 | aria-hidden="true" |
2161 | ></div> | 2179 | ></div> |
2162 | </div> | 2180 | </div> |
2163 | <div> | 2181 | <div> |
2164 | <p class="font-semibold">Hans Burger</p> | 2182 | <p class="font-semibold">Hans Burger</p> |
2165 | <p class="text-xs text-gray-600 dark:text-gray-400"> | 2183 | <p class="text-xs text-gray-600 dark:text-gray-400"> |
2166 | 10x Developer | 2184 | 10x Developer |
2167 | </p> | 2185 | </p> |
2168 | </div> | 2186 | </div> |
2169 | </div> | 2187 | </div> |
2170 | </td> | 2188 | </td> |
2171 | <td class="px-4 py-3 text-sm"> | 2189 | <td class="px-4 py-3 text-sm"> |
2172 | $ 863.45 | 2190 | $ 863.45 |
2173 | </td> | 2191 | </td> |
2174 | <td class="px-4 py-3 text-xs"> | 2192 | <td class="px-4 py-3 text-xs"> |
2175 | <span | 2193 | <span |
2176 | 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" | 2194 | 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" |
2177 | > | 2195 | > |
2178 | Approved | 2196 | Approved |
2179 | </span> | 2197 | </span> |
2180 | </td> | 2198 | </td> |
2181 | <td class="px-4 py-3 text-sm"> | 2199 | <td class="px-4 py-3 text-sm"> |
2182 | 6/10/2020 | 2200 | 6/10/2020 |
2183 | </td> | 2201 | </td> |
2184 | </tr> | 2202 | </tr> |
2185 | </tbody> | 2203 | </tbody> |
2186 | </table> | 2204 | </table> |
2187 | </div> | 2205 | </div> |
2188 | <div | 2206 | <div |
2189 | 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" | 2207 | 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" |
2190 | > | 2208 | > |
2191 | <span class="flex items-center col-span-3"> | 2209 | <span class="flex items-center col-span-3"> |
2192 | Showing 21-30 of 100 | 2210 | Showing 21-30 of 100 |
2193 | </span> | 2211 | </span> |
2194 | <span class="col-span-2"></span> | 2212 | <span class="col-span-2"></span> |
2195 | 2213 | ||
2196 | <span class="flex col-span-4 mt-2 sm:mt-auto sm:justify-end"> | 2214 | <span class="flex col-span-4 mt-2 sm:mt-auto sm:justify-end"> |
2197 | <nav aria-label="Table navigation"> | 2215 | <nav aria-label="Table navigation"> |
2198 | <ul class="inline-flex items-center"> | 2216 | <ul class="inline-flex items-center"> |
2199 | <li> | 2217 | <li> |
2200 | <button | 2218 | <button |
2201 | class="px-3 py-1 rounded-md rounded-l-lg focus:outline-none focus:shadow-outline-purple" | 2219 | class="px-3 py-1 rounded-md rounded-l-lg focus:outline-none focus:shadow-outline-purple" |
2202 | aria-label="Previous" | 2220 | aria-label="Previous" |
2203 | > | 2221 | > |
2204 | <svg | 2222 | <svg |
2205 | aria-hidden="true" | 2223 | aria-hidden="true" |
2206 | class="w-4 h-4 fill-current" | 2224 | class="w-4 h-4 fill-current" |
2207 | viewBox="0 0 20 20" | 2225 | viewBox="0 0 20 20" |
2208 | > | 2226 | > |
2209 | <path | 2227 | <path |
2210 | d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" | 2228 | d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" |
2211 | clip-rule="evenodd" | 2229 | clip-rule="evenodd" |
2212 | fill-rule="evenodd" | 2230 | fill-rule="evenodd" |
2213 | ></path> | 2231 | ></path> |
2214 | </svg> | 2232 | </svg> |
2215 | </button> | 2233 | </button> |
2216 | </li> | 2234 | </li> |
2217 | <li> | 2235 | <li> |
2218 | <button | 2236 | <button |
2219 | class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple" | 2237 | class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple" |
2220 | > | 2238 | > |
2221 | 1 | 2239 | 1 |
2222 | </button> | 2240 | </button> |
2223 | </li> | 2241 | </li> |
2224 | <li> | 2242 | <li> |
2225 | <button | 2243 | <button |
2226 | class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple" | 2244 | class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple" |
2227 | > | 2245 | > |
2228 | 2 | 2246 | 2 |
2229 | </button> | 2247 | </button> |
2230 | </li> | 2248 | </li> |
2231 | <li> | 2249 | <li> |
2232 | <button | 2250 | <button |
2233 | class="px-3 py-1 text-white transition-colors duration-150 bg-purple-600 border border-r-0 border-purple-600 rounded-md focus:outline-none focus:shadow-outline-purple" | 2251 | class="px-3 py-1 text-white transition-colors duration-150 bg-purple-600 border border-r-0 border-purple-600 rounded-md focus:outline-none focus:shadow-outline-purple" |
2234 | > | 2252 | > |
2235 | 3 | 2253 | 3 |
2236 | </button> | 2254 | </button> |
2237 | </li> | 2255 | </li> |
2238 | <li> | 2256 | <li> |
2239 | <button | 2257 | <button |
2240 | class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple" | 2258 | class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple" |
2241 | > | 2259 | > |
2242 | 4 | 2260 | 4 |
2243 | </button> | 2261 | </button> |
2244 | </li> | 2262 | </li> |
2245 | <li> | 2263 | <li> |
2246 | <span class="px-3 py-1">...</span> | 2264 | <span class="px-3 py-1">...</span> |
2247 | </li> | 2265 | </li> |
2248 | <li> | 2266 | <li> |
2249 | <button | 2267 | <button |
2250 | class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple" | 2268 | class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple" |
2251 | > | 2269 | > |
2252 | 8 | 2270 | 8 |
2253 | </button> | 2271 | </button> |
2254 | </li> | 2272 | </li> |
2255 | <li> | 2273 | <li> |
2256 | <button | 2274 | <button |
2257 | class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple" | 2275 | class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple" |
2258 | > | 2276 | > |
2259 | 9 | 2277 | 9 |
2260 | </button> | 2278 | </button> |
2261 | </li> | 2279 | </li> |
2262 | <li> | 2280 | <li> |
2263 | <button | 2281 | <button |
2264 | class="px-3 py-1 rounded-md rounded-r-lg focus:outline-none focus:shadow-outline-purple" | 2282 | class="px-3 py-1 rounded-md rounded-r-lg focus:outline-none focus:shadow-outline-purple" |
2265 | aria-label="Next" | 2283 | aria-label="Next" |
2266 | > | 2284 | > |
2267 | <svg | 2285 | <svg |
2268 | class="w-4 h-4 fill-current" | 2286 | class="w-4 h-4 fill-current" |
2269 | aria-hidden="true" | 2287 | aria-hidden="true" |
2270 | viewBox="0 0 20 20" | 2288 | viewBox="0 0 20 20" |
2271 | > | 2289 | > |
2272 | <path | 2290 | <path |
2273 | d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" | 2291 | d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" |
2274 | clip-rule="evenodd" | 2292 | clip-rule="evenodd" |
2275 | fill-rule="evenodd" | 2293 | fill-rule="evenodd" |
2276 | ></path> | 2294 | ></path> |
2277 | </svg> | 2295 | </svg> |
2278 | </button> | 2296 | </button> |
2279 | </li> | 2297 | </li> |
2280 | </ul> | 2298 | </ul> |
2281 | </nav> | 2299 | </nav> |
2282 | </span> | 2300 | </span> |
2283 | </div> | 2301 | </div> |
2284 | </div> | 2302 | </div> |
2285 | --> | 2303 | --> |
2286 | <!-- Charts --> | 2304 | <!-- Charts --> |
2287 | <!-- | 2305 | <!-- |
2288 | <h2 class="my-6 text-2xl font-semibold text-gray-700 dark:text-gray-200"> | 2306 | <h2 class="my-6 text-2xl font-semibold text-gray-700 dark:text-gray-200"> |
2289 | Графики | 2307 | Графики |
2290 | </h2> | 2308 | </h2> |
2291 | <div class="grid gap-6 mb-8 md:grid-cols-2"> | 2309 | <div class="grid gap-6 mb-8 md:grid-cols-2"> |
2292 | <div | 2310 | <div |
2293 | class="min-w-0 p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800" | 2311 | class="min-w-0 p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800" |
2294 | > | 2312 | > |
2295 | <h4 class="mb-4 font-semibold text-gray-800 dark:text-gray-300"> | 2313 | <h4 class="mb-4 font-semibold text-gray-800 dark:text-gray-300"> |
2296 | Revenue | 2314 | Revenue |
2297 | </h4> | 2315 | </h4> |
2298 | <canvas id="pie"></canvas> | 2316 | <canvas id="pie"></canvas> |
2299 | <div | 2317 | <div |
2300 | class="flex justify-center mt-4 space-x-3 text-sm text-gray-600 dark:text-gray-400" | 2318 | class="flex justify-center mt-4 space-x-3 text-sm text-gray-600 dark:text-gray-400" |
2301 | > | 2319 | > |
2302 | 2320 | ||
2303 | <div class="flex items-center"> | 2321 | <div class="flex items-center"> |
2304 | <span | 2322 | <span |
2305 | class="inline-block w-3 h-3 mr-1 bg-blue-500 rounded-full" | 2323 | class="inline-block w-3 h-3 mr-1 bg-blue-500 rounded-full" |
2306 | ></span> | 2324 | ></span> |
2307 | <span>Shirts</span> | 2325 | <span>Shirts</span> |
2308 | </div> | 2326 | </div> |
2309 | <div class="flex items-center"> | 2327 | <div class="flex items-center"> |
2310 | <span | 2328 | <span |
2311 | class="inline-block w-3 h-3 mr-1 bg-teal-600 rounded-full" | 2329 | class="inline-block w-3 h-3 mr-1 bg-teal-600 rounded-full" |
2312 | ></span> | 2330 | ></span> |
2313 | <span>Shoes</span> | 2331 | <span>Shoes</span> |
2314 | </div> | 2332 | </div> |
2315 | <div class="flex items-center"> | 2333 | <div class="flex items-center"> |
2316 | <span | 2334 | <span |
2317 | class="inline-block w-3 h-3 mr-1 bg-purple-600 rounded-full" | 2335 | class="inline-block w-3 h-3 mr-1 bg-purple-600 rounded-full" |
2318 | ></span> | 2336 | ></span> |
2319 | <span>Bags</span> | 2337 | <span>Bags</span> |
2320 | </div> | 2338 | </div> |
2321 | </div> | 2339 | </div> |
2322 | </div> | 2340 | </div> |
2323 | <div | 2341 | <div |
2324 | class="min-w-0 p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800" | 2342 | class="min-w-0 p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800" |
2325 | > | 2343 | > |
2326 | <h4 class="mb-4 font-semibold text-gray-800 dark:text-gray-300"> | 2344 | <h4 class="mb-4 font-semibold text-gray-800 dark:text-gray-300"> |
2327 | Traffic | 2345 | Traffic |
2328 | </h4> | 2346 | </h4> |
2329 | <canvas id="line"></canvas> | 2347 | <canvas id="line"></canvas> |
2330 | <div | 2348 | <div |
2331 | class="flex justify-center mt-4 space-x-3 text-sm text-gray-600 dark:text-gray-400" | 2349 | class="flex justify-center mt-4 space-x-3 text-sm text-gray-600 dark:text-gray-400" |
2332 | > | 2350 | > |
2333 | 2351 | ||
2334 | <div class="flex items-center"> | 2352 | <div class="flex items-center"> |
2335 | <span | 2353 | <span |
2336 | class="inline-block w-3 h-3 mr-1 bg-teal-600 rounded-full" | 2354 | class="inline-block w-3 h-3 mr-1 bg-teal-600 rounded-full" |
2337 | ></span> | 2355 | ></span> |
2338 | <span>Organic</span> | 2356 | <span>Organic</span> |
2339 | </div> | 2357 | </div> |
2340 | <div class="flex items-center"> | 2358 | <div class="flex items-center"> |
2341 | <span | 2359 | <span |
2342 | class="inline-block w-3 h-3 mr-1 bg-purple-600 rounded-full" | 2360 | class="inline-block w-3 h-3 mr-1 bg-purple-600 rounded-full" |
2343 | ></span> | 2361 | ></span> |
2344 | <span>Paid</span> | 2362 | <span>Paid</span> |
2345 | </div> | 2363 | </div> |
2346 | </div> | 2364 | </div> |
2347 | </div> | 2365 | </div> |
2348 | </div> | 2366 | </div> |
2349 | --> | 2367 | --> |
2350 | </div> | 2368 | </div> |
2351 | </main> | 2369 | </main> |
2352 | </div> | 2370 | </div> |
2353 | </div> | 2371 | </div> |
2354 | @yield('modal') | 2372 | @yield('modal') |
2355 | </body> | 2373 | </body> |
2356 | @yield('script') | 2374 | @yield('script') |
2357 | </html> | 2375 | </html> |
2358 | 2376 |
routes/web.php
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | use App\Http\Controllers\Ad_jobsController; | 3 | use App\Http\Controllers\Ad_jobsController; |
4 | use App\Http\Controllers\AdEmployerController; | 4 | use App\Http\Controllers\AdEmployerController; |
5 | use App\Http\Controllers\Admin\AdminController; | 5 | use App\Http\Controllers\Admin\AdminController; |
6 | use App\Http\Controllers\Admin\CategoryController; | 6 | use App\Http\Controllers\Admin\CategoryController; |
7 | use App\Http\Controllers\Admin\CategoryEmpController; | 7 | use App\Http\Controllers\Admin\CategoryEmpController; |
8 | use App\Http\Controllers\Admin\EducationController; | 8 | use App\Http\Controllers\Admin\EducationController; |
9 | use App\Http\Controllers\EducationController as EducationFrontController; | 9 | use App\Http\Controllers\EducationController as EducationFrontController; |
10 | use App\Http\Controllers\Admin\EmployersController; | 10 | use App\Http\Controllers\Admin\EmployersController; |
11 | use App\Http\Controllers\EmployerController as FrontEmployersController; | 11 | use App\Http\Controllers\EmployerController as FrontEmployersController; |
12 | use App\Http\Controllers\Admin\InfoBloksController; | 12 | use App\Http\Controllers\Admin\InfoBloksController; |
13 | use App\Http\Controllers\Admin\JobTitlesController; | 13 | use App\Http\Controllers\Admin\JobTitlesController; |
14 | use App\Http\Controllers\Admin\UsersController; | 14 | use App\Http\Controllers\Admin\UsersController; |
15 | use App\Http\Controllers\Admin\WorkersController; | 15 | use App\Http\Controllers\Admin\WorkersController; |
16 | use App\Http\Controllers\Auth\ForgotPasswordController; | 16 | use App\Http\Controllers\Auth\ForgotPasswordController; |
17 | use App\Http\Controllers\Auth\LoginController; | 17 | use App\Http\Controllers\Auth\LoginController; |
18 | use App\Http\Controllers\Auth\RegisterController; | 18 | use App\Http\Controllers\Auth\RegisterController; |
19 | use App\Http\Controllers\CKEditorController; | 19 | use App\Http\Controllers\CKEditorController; |
20 | use App\Http\Controllers\FaqController; | ||
20 | use App\Http\Controllers\MediaController; | 21 | use App\Http\Controllers\MediaController; |
21 | use App\Http\Controllers\WorkerController; | 22 | use App\Http\Controllers\WorkerController; |
22 | use App\Models\Ad_jobs; | 23 | use App\Models\Ad_jobs; |
23 | use App\Models\User; | 24 | use App\Models\User; |
24 | use App\Http\Controllers\MainController; | 25 | use App\Http\Controllers\MainController; |
25 | use App\Http\Controllers\HomeController; | 26 | use App\Http\Controllers\HomeController; |
26 | use Illuminate\Support\Facades\Route; | 27 | use Illuminate\Support\Facades\Route; |
27 | use App\Http\Controllers\Admin\CompanyController; | 28 | use App\Http\Controllers\Admin\CompanyController; |
28 | use App\Http\Controllers\Admin\Ad_EmployersController; | 29 | use App\Http\Controllers\Admin\Ad_EmployersController; |
29 | use App\Http\Controllers\Admin\MsgAnswersController; | 30 | use App\Http\Controllers\Admin\MsgAnswersController; |
30 | use App\Http\Controllers\Admin\GroupsController; | 31 | use App\Http\Controllers\Admin\GroupsController; |
31 | use App\Http\Controllers\PagesController; | 32 | use App\Http\Controllers\PagesController; |
32 | use Illuminate\Support\Facades\Storage; | 33 | use Illuminate\Support\Facades\Storage; |
33 | use App\Http\Controllers\EmployerController; | 34 | use App\Http\Controllers\EmployerController; |
34 | use App\Http\Controllers\CompanyController as FrontCompanyController; | 35 | use App\Http\Controllers\CompanyController as FrontCompanyController; |
35 | 36 | ||
36 | 37 | ||
37 | /* | 38 | /* |
38 | |-------------------------------------------------------------------------- | 39 | |-------------------------------------------------------------------------- |
39 | | Web Routes | 40 | | Web Routes |
40 | |-------------------------------------------------------------------------- | 41 | |-------------------------------------------------------------------------- |
41 | | | 42 | | |
42 | | Here is where you can register web routes for your application. These | 43 | | Here is where you can register web routes for your application. These |
43 | | routes are loaded by the RouteServiceProvider within a group which | 44 | | routes are loaded by the RouteServiceProvider within a group which |
44 | | contains the "web" middleware group. Now create something great! | 45 | | contains the "web" middleware group. Now create something great! |
45 | | | 46 | | |
46 | */ | 47 | */ |
47 | /* | 48 | /* |
48 | Route::get('/', function () { | 49 | Route::get('/', function () { |
49 | return view('welcome'); | 50 | return view('welcome'); |
50 | })->name('index'); | 51 | })->name('index'); |
51 | */ | 52 | */ |
52 | 53 | ||
53 | Route::get('/', [MainController::class, 'index'])->name('index'); | 54 | Route::get('/', [MainController::class, 'index'])->name('index'); |
54 | 55 | ||
55 | //Роуты авторизации, регистрации, восстановления, аутентификации | 56 | //Роуты авторизации, регистрации, восстановления, аутентификации |
56 | Auth::routes(['verify' => true]); | 57 | Auth::routes(['verify' => true]); |
57 | 58 | ||
58 | // роуты регистрации, авторизации, восстановления пароля, верификации почты | 59 | // роуты регистрации, авторизации, восстановления пароля, верификации почты |
59 | /*Route::group([ | 60 | /*Route::group([ |
60 | 'as' => 'auth.', //имя маршрута, например auth.index | 61 | 'as' => 'auth.', //имя маршрута, например auth.index |
61 | 'prefix' => 'auth', // префикс маршрута, например, auth/index | 62 | 'prefix' => 'auth', // префикс маршрута, например, auth/index |
62 | ], function () { | 63 | ], function () { |
63 | //форма регистрации | 64 | //форма регистрации |
64 | Route::get('register', [RegisterController::class, 'register'])->name('register'); | 65 | Route::get('register', [RegisterController::class, 'register'])->name('register'); |
65 | 66 | ||
66 | //создание пользователя | 67 | //создание пользователя |
67 | Route::post('register', [RegisterController::class, 'create'])->name('create'); | 68 | Route::post('register', [RegisterController::class, 'create'])->name('create'); |
68 | 69 | ||
69 | //форма входа авторизации | 70 | //форма входа авторизации |
70 | Route::get('login', [LoginController::class, 'login'])->name('login'); | 71 | Route::get('login', [LoginController::class, 'login'])->name('login'); |
71 | 72 | ||
72 | //аутентификация | 73 | //аутентификация |
73 | Route::post('login', [LoginController::class, 'authenticate'])->name('auth'); | 74 | Route::post('login', [LoginController::class, 'authenticate'])->name('auth'); |
74 | 75 | ||
75 | //выход | 76 | //выход |
76 | Route::get('logout', [LoginController::class, 'logout'])->name('logout'); | 77 | Route::get('logout', [LoginController::class, 'logout'])->name('logout'); |
77 | 78 | ||
78 | //форма ввода адреса почты | 79 | //форма ввода адреса почты |
79 | Route::get('forgot-password', [ForgotPasswordController::class, 'form'])->name('forgot-form'); | 80 | Route::get('forgot-password', [ForgotPasswordController::class, 'form'])->name('forgot-form'); |
80 | 81 | ||
81 | //письмо на почту | 82 | //письмо на почту |
82 | Route::post('forgot-password', [ForgotPasswordController::class, 'mail'])->name('forgot-mail'); | 83 | Route::post('forgot-password', [ForgotPasswordController::class, 'mail'])->name('forgot-mail'); |
83 | 84 | ||
84 | //форма восстановления пароля | 85 | //форма восстановления пароля |
85 | Route::get('reset-password/token/{token}/email/{email}', | 86 | Route::get('reset-password/token/{token}/email/{email}', |
86 | [ResetPasswordController::class, 'form'] | 87 | [ResetPasswordController::class, 'form'] |
87 | )->name('reset-form'); | 88 | )->name('reset-form'); |
88 | 89 | ||
89 | //восстановление пароля | 90 | //восстановление пароля |
90 | Route::post('reset-password', | 91 | Route::post('reset-password', |
91 | [ResetPasswordController::class, 'reset'] | 92 | [ResetPasswordController::class, 'reset'] |
92 | )->name('reset-password'); | 93 | )->name('reset-password'); |
93 | 94 | ||
94 | //сообщение о необходимости проверки адреса почты | 95 | //сообщение о необходимости проверки адреса почты |
95 | Route::get('verify-message', [VerifyEmailController::class, 'message'])->name('verify-message'); | 96 | Route::get('verify-message', [VerifyEmailController::class, 'message'])->name('verify-message'); |
96 | 97 | ||
97 | //подтверждение адреса почты нового пользователя | 98 | //подтверждение адреса почты нового пользователя |
98 | Route::get('verify-email/token/{token}/id/{id}', [VerifyEmailController::class, 'verify']) | 99 | Route::get('verify-email/token/{token}/id/{id}', [VerifyEmailController::class, 'verify']) |
99 | ->where('token', '[a-f0-9]{32}') | 100 | ->where('token', '[a-f0-9]{32}') |
100 | ->where('id', '[0-9]+') | 101 | ->where('id', '[0-9]+') |
101 | ->name('verify-email'); | 102 | ->name('verify-email'); |
102 | });*/ | 103 | });*/ |
103 | 104 | ||
104 | //Личный кабинет пользователя | 105 | //Личный кабинет пользователя |
105 | Route::get('/home', [HomeController::class, 'index'])->name('home'); | 106 | Route::get('/home', [HomeController::class, 'index'])->name('home'); |
106 | 107 | ||
107 | /* | 108 | /* |
108 | Route::post('resend/verification-email', function (\Illuminate\Http\Request $request) { | 109 | Route::post('resend/verification-email', function (\Illuminate\Http\Request $request) { |
109 | $user = User::where('email',$request->input('email'))->first(); | 110 | $user = User::where('email',$request->input('email'))->first(); |
110 | 111 | ||
111 | $user->sendEmailVerificationNotification(); | 112 | $user->sendEmailVerificationNotification(); |
112 | 113 | ||
113 | return 'your response'; | 114 | return 'your response'; |
114 | })->middleware('throttle:6,1')->name('verification.resend'); | 115 | })->middleware('throttle:6,1')->name('verification.resend'); |
115 | */ | 116 | */ |
116 | 117 | ||
117 | // Авторизация, регистрация в админку | 118 | // Авторизация, регистрация в админку |
118 | Route::group([ | 119 | Route::group([ |
119 | 'as' => 'admin.', // имя маршрута, например auth.index | 120 | 'as' => 'admin.', // имя маршрута, например auth.index |
120 | 'prefix' => 'admin', // префикс маршрута, например auth/index | 121 | 'prefix' => 'admin', // префикс маршрута, например auth/index |
121 | 'middleware' => ['guest'], | 122 | 'middleware' => ['guest'], |
122 | ], function () { | 123 | ], function () { |
123 | // Форма регистрации | 124 | // Форма регистрации |
124 | Route::get('register', [AdminController::class, 'register'])->name('register'); | 125 | Route::get('register', [AdminController::class, 'register'])->name('register'); |
125 | // Создание пользователя | 126 | // Создание пользователя |
126 | Route::post('register', [AdminController::class, 'create'])->name('create'); | 127 | Route::post('register', [AdminController::class, 'create'])->name('create'); |
127 | 128 | ||
128 | //Форма входа | 129 | //Форма входа |
129 | Route::get('login', [AdminController::class, 'login'])->name('login'); | 130 | Route::get('login', [AdminController::class, 'login'])->name('login'); |
130 | 131 | ||
131 | // аутентификация | 132 | // аутентификация |
132 | Route::post('login', [AdminController::class, 'autenticate'])->name('auth'); | 133 | Route::post('login', [AdminController::class, 'autenticate'])->name('auth'); |
133 | 134 | ||
134 | }); | 135 | }); |
135 | 136 | ||
136 | // Личный кабинет админки | 137 | // Личный кабинет админки |
137 | Route::group([ | 138 | Route::group([ |
138 | 'as' => 'admin.', // имя маршрута, например auth.index | 139 | 'as' => 'admin.', // имя маршрута, например auth.index |
139 | 'prefix' => 'admin', // префикс маршрута, например auth/index | 140 | 'prefix' => 'admin', // префикс маршрута, например auth/index |
140 | 'middleware' => ['auth', 'admin'], | 141 | 'middleware' => ['auth', 'admin'], |
141 | ], function() { | 142 | ], function() { |
142 | 143 | ||
143 | // выход | 144 | // выход |
144 | Route::get('logout', [AdminController::class, 'logout'])->name('logout'); | 145 | Route::get('logout', [AdminController::class, 'logout'])->name('logout'); |
145 | 146 | ||
146 | // кабинет главная страница | 147 | // кабинет главная страница |
147 | Route::get('cabinet', [AdminController::class, 'index'])->name('index'); | 148 | Route::get('cabinet', [AdminController::class, 'index'])->name('index'); |
148 | 149 | ||
149 | // кабинет профиль админа - форма | 150 | // кабинет профиль админа - форма |
150 | Route::get('profile', [AdminController::class, 'profile'])->name('profile'); | 151 | Route::get('profile', [AdminController::class, 'profile'])->name('profile'); |
151 | // кабинет профиль админа - сохранение формы | 152 | // кабинет профиль админа - сохранение формы |
152 | Route::post('profile', [AdminController::class, 'store_profile'])->name('store_profile'); | 153 | Route::post('profile', [AdminController::class, 'store_profile'])->name('store_profile'); |
153 | 154 | ||
154 | //кабинет сообщения админа | 155 | //кабинет сообщения админа |
155 | //Route::get('messages', [AdminController::class, 'profile'])->name('profile'); | 156 | //Route::get('messages', [AdminController::class, 'profile'])->name('profile'); |
156 | 157 | ||
157 | 158 | ||
158 | // кабинет профиль - форма пароли | 159 | // кабинет профиль - форма пароли |
159 | Route::get('password', [AdminController::class, 'profile_password'])->name('password'); | 160 | Route::get('password', [AdminController::class, 'profile_password'])->name('password'); |
160 | // кабинет профиль - сохранение формы пароля | 161 | // кабинет профиль - сохранение формы пароля |
161 | Route::post('password', [AdminController::class, 'profile_password_new'])->name('password'); | 162 | Route::post('password', [AdminController::class, 'profile_password_new'])->name('password'); |
162 | 163 | ||
163 | 164 | ||
164 | // кабинет профиль пользователя - форма | 165 | // кабинет профиль пользователя - форма |
165 | Route::get('user-profile/{user}', [AdminController::class, 'profile_user'])->name('user-profile'); | 166 | Route::get('user-profile/{user}', [AdminController::class, 'profile_user'])->name('user-profile'); |
166 | // кабинет профиль пользователя - сохранение формы | 167 | // кабинет профиль пользователя - сохранение формы |
167 | Route::post('user-profile/{user}', [AdminController::class, 'store_profile_user'])->name('user-store_profile'); | 168 | Route::post('user-profile/{user}', [AdminController::class, 'store_profile_user'])->name('user-store_profile'); |
168 | 169 | ||
169 | // кабинет профиль работодатель - форма | 170 | // кабинет профиль работодатель - форма |
170 | Route::get('employer-profile/{employer}', [EmployersController::class, 'form_update_employer'])->name('employer-profile'); | 171 | Route::get('employer-profile/{employer}', [EmployersController::class, 'form_update_employer'])->name('employer-profile'); |
171 | // кабинет профиль работодатель - сохранение формы | 172 | // кабинет профиль работодатель - сохранение формы |
172 | Route::post('employer-profile/{employer}', [EmployersController::class, 'update_employer'])->name('update-employer-profile'); | 173 | Route::post('employer-profile/{employer}', [EmployersController::class, 'update_employer'])->name('update-employer-profile'); |
173 | // кабинет удаление профиль работодателя и юзера | 174 | // кабинет удаление профиль работодателя и юзера |
174 | Route::delete('employers/delete/{employer}/{user}', [EmployersController::class, 'delete_employer'])->name('delete-employer'); | 175 | Route::delete('employers/delete/{employer}/{user}', [EmployersController::class, 'delete_employer'])->name('delete-employer'); |
175 | 176 | ||
176 | // кабинет профиль работник - форма | 177 | // кабинет профиль работник - форма |
177 | Route::get('worker-profile/add/{user}', [WorkersController::class, 'form_add_worker'])->name('worker-profile-add'); | 178 | Route::get('worker-profile/add/{user}', [WorkersController::class, 'form_add_worker'])->name('worker-profile-add'); |
178 | Route::post('worker-profile/add/{user}', [WorkersController::class, 'form_store_worker'])->name('worker-profile-store'); | 179 | Route::post('worker-profile/add/{user}', [WorkersController::class, 'form_store_worker'])->name('worker-profile-store'); |
179 | Route::get('worker-profile/{worker}', [WorkersController::class, 'form_edit_worker'])->name('worker-profile-edit'); | 180 | Route::get('worker-profile/{worker}', [WorkersController::class, 'form_edit_worker'])->name('worker-profile-edit'); |
180 | // кабинет профиль работник - сохранение формы | 181 | // кабинет профиль работник - сохранение формы |
181 | Route::post('worker-profile/{worker}', [WorkersController::class, 'form_update_worker'])->name('worker-profile-update'); | 182 | Route::post('worker-profile/{worker}', [WorkersController::class, 'form_update_worker'])->name('worker-profile-update'); |
182 | 183 | ||
183 | // Медиа | 184 | // Медиа |
184 | Route::get('media', [MediaController::class, 'index'])->name('media'); | 185 | Route::get('media', [MediaController::class, 'index'])->name('media'); |
185 | Route::delete('media/{media}', [MediaController::class, 'delete'])->name('delete-media'); | 186 | Route::delete('media/{media}', [MediaController::class, 'delete'])->name('delete-media'); |
186 | 187 | ||
187 | // кабинет настройки сайта - форма | 188 | // кабинет настройки сайта - форма |
188 | Route::get('config', [AdminController::class, 'config_form'])->name('config'); | 189 | Route::get('config', [AdminController::class, 'config_form'])->name('config'); |
189 | // кабинет настройки сайта сохранение формы | 190 | // кабинет настройки сайта сохранение формы |
190 | Route::post('config', [AdminController::class, 'store_config'])->name('store_config'); | 191 | Route::post('config', [AdminController::class, 'store_config'])->name('store_config'); |
191 | 192 | ||
192 | // кабинет - новости | 193 | // кабинет - новости |
193 | Route::get('news-list', [AdminController::class, 'news_admin'])->name('news_admin'); | 194 | Route::get('news-list', [AdminController::class, 'news_admin'])->name('news_admin'); |
194 | Route::get('news/add', [AdminController::class, 'new_admin_add'])->name('new_admin_add'); | 195 | Route::get('news/add', [AdminController::class, 'new_admin_add'])->name('new_admin_add'); |
195 | Route::post('news/add', [AdminController::class, 'new_admin_add_save'])->name('new_admin_save_add'); | 196 | Route::post('news/add', [AdminController::class, 'new_admin_add_save'])->name('new_admin_save_add'); |
196 | Route::get('news/edit/{new}', [AdminController::class, 'new_admin_edit'])->name('new_admin_edit'); | 197 | Route::get('news/edit/{new}', [AdminController::class, 'new_admin_edit'])->name('new_admin_edit'); |
197 | Route::post('news/edit/{new}', [AdminController::class, 'new_admin_update_save'])->name('new_admin_update'); | 198 | Route::post('news/edit/{new}', [AdminController::class, 'new_admin_update_save'])->name('new_admin_update'); |
198 | Route::get('news/delete/{new}', [AdminController::class, 'new_admin_delete'])->name('new_admin_delete'); | 199 | Route::get('news/delete/{new}', [AdminController::class, 'new_admin_delete'])->name('new_admin_delete'); |
199 | 200 | ||
200 | // кабинет - пользователи | 201 | // кабинет - пользователи |
201 | Route::get('users', [UsersController::class, 'index'])->name('users'); | 202 | Route::get('users', [UsersController::class, 'index'])->name('users'); |
202 | Route::get('user-delete/{user}', [UsersController::class, 'user_delete'])->name('user_delete'); | 203 | Route::get('user-delete/{user}', [UsersController::class, 'user_delete'])->name('user_delete'); |
203 | 204 | ||
204 | // кабинет - пользователи | 205 | // кабинет - пользователи |
205 | Route::get('admin-users', [AdminController::class, 'index_admin'])->name('admin-users'); | 206 | Route::get('admin-users', [AdminController::class, 'index_admin'])->name('admin-users'); |
206 | 207 | ||
207 | // кабинет - работодатели | 208 | // кабинет - работодатели |
208 | Route::get('employers', [EmployersController::class, 'index'])->name('employers'); | 209 | Route::get('employers', [EmployersController::class, 'index'])->name('employers'); |
209 | 210 | ||
210 | Route::get('employers/comment/{employer}', [EmployersController::class, 'comment_read'])->name('comment-employer'); | 211 | Route::get('employers/comment/{employer}', [EmployersController::class, 'comment_read'])->name('comment-employer'); |
211 | 212 | ||
212 | Route::get('flot/add/{employer}', [EmployersController::class, 'add_flot'])->name('flot_add'); | 213 | Route::get('flot/add/{employer}', [EmployersController::class, 'add_flot'])->name('flot_add'); |
213 | Route::post('flot/add', [EmployersController::class, 'save_add_flot'])->name('flot_add_save'); | 214 | Route::post('flot/add', [EmployersController::class, 'save_add_flot'])->name('flot_add_save'); |
214 | Route::get('flot/{flot}/{employer}', [EmployersController::class, 'edit_flot'])->name('flot'); | 215 | Route::get('flot/{flot}/{employer}', [EmployersController::class, 'edit_flot'])->name('flot'); |
215 | Route::put('flot/{flot}', [EmployersController::class, 'edit_save_flot'])->name('flot_edit'); | 216 | Route::put('flot/{flot}', [EmployersController::class, 'edit_save_flot'])->name('flot_edit'); |
216 | Route::get('flot/{flot}/{employer_id}/delete', [EmployersController::class, 'delete_flot'])->name('flot_delete'); | 217 | Route::get('flot/{flot}/{employer_id}/delete', [EmployersController::class, 'delete_flot'])->name('flot_delete'); |
217 | 218 | ||
218 | // кабинет - соискатели | 219 | // кабинет - соискатели |
219 | Route::get('workers', [WorkersController::class, 'index'])->name('workers'); | 220 | Route::get('workers', [WorkersController::class, 'index'])->name('workers'); |
220 | 221 | ||
221 | // кабинет - база данных | 222 | // кабинет - база данных |
222 | Route::get('basedata', [UsersController::class, 'index_bd'])->name('basedata'); | 223 | Route::get('basedata', [UsersController::class, 'index_bd'])->name('basedata'); |
223 | Route::get('basedata/add', [UsersController::class, 'add_bd'])->name('add-basedata'); | 224 | Route::get('basedata/add', [UsersController::class, 'add_bd'])->name('add-basedata'); |
224 | Route::post('basedata/add', [UsersController::class, 'add_store_bd'])->name('add-store-basedata'); | 225 | Route::post('basedata/add', [UsersController::class, 'add_store_bd'])->name('add-store-basedata'); |
225 | Route::get('basedata/edit/{user}', [UsersController::class, 'edit_bd'])->name('edit-basedata'); | 226 | Route::get('basedata/edit/{user}', [UsersController::class, 'edit_bd'])->name('edit-basedata'); |
226 | Route::put('basedata/edit/{user}', [UsersController::class, 'update_bd'])->name('update-basedata'); | 227 | Route::put('basedata/edit/{user}', [UsersController::class, 'update_bd'])->name('update-basedata'); |
227 | Route::delete('basedata/delete/{user}', [UsersController::class, 'destroy_bd'])->name('delete-basedata'); | 228 | Route::delete('basedata/delete/{user}', [UsersController::class, 'destroy_bd'])->name('delete-basedata'); |
228 | Route::get('basedata/doc/{user}', [UsersController::class, 'doc_bd'])->name('doc-basedata'); | 229 | Route::get('basedata/doc/{user}', [UsersController::class, 'doc_bd'])->name('doc-basedata'); |
229 | 230 | ||
230 | // кабинет - вакансии | 231 | // кабинет - вакансии |
231 | Route::get('ad-employers', [Ad_EmployersController::class, 'index'])->name('ad-employers'); | 232 | Route::get('ad-employers', [Ad_EmployersController::class, 'index'])->name('ad-employers'); |
232 | Route::get('ad-employers/add', [Ad_EmployersController::class, 'create'])->name('add-ad-employers'); | 233 | Route::get('ad-employers/add', [Ad_EmployersController::class, 'create'])->name('add-ad-employers'); |
233 | Route::post('ad-employers/add', [Ad_EmployersController::class, 'store'])->name('store-ad-employers'); | 234 | Route::post('ad-employers/add', [Ad_EmployersController::class, 'store'])->name('store-ad-employers'); |
234 | Route::get('ad-employers/edit/{ad_employer}', [Ad_EmployersController::class, 'edit'])->name('edit-ad-employers'); | 235 | Route::get('ad-employers/edit/{ad_employer}', [Ad_EmployersController::class, 'edit'])->name('edit-ad-employers'); |
235 | Route::post('ad-employers/edit/{ad_employer}', [Ad_EmployersController::class, 'update'])->name('update-ad-employers'); | 236 | Route::post('ad-employers/edit/{ad_employer}', [Ad_EmployersController::class, 'update'])->name('update-ad-employers'); |
236 | Route::delete('ad-employers/delete/{ad_employer}', [Ad_EmployersController::class, 'destroy'])->name('delete-ad-employer'); | 237 | Route::delete('ad-employers/delete/{ad_employer}', [Ad_EmployersController::class, 'destroy'])->name('delete-ad-employer'); |
237 | 238 | ||
238 | // Редактирование должности в вакансии | 239 | // Редактирование должности в вакансии |
239 | Route::put('update-jobs/{ad_jobs}', [Ad_EmployersController::class, 'update_ad_jobs'])->name('update_jobs'); | 240 | Route::put('update-jobs/{ad_jobs}', [Ad_EmployersController::class, 'update_ad_jobs'])->name('update_jobs'); |
240 | Route::get('edit-jobs/{ad_jobs}', [Ad_EmployersController::class, 'edit_jobs'])->name('edit_jobs'); | 241 | Route::get('edit-jobs/{ad_jobs}', [Ad_EmployersController::class, 'edit_jobs'])->name('edit_jobs'); |
241 | 242 | ||
242 | 243 | ||
243 | // кабинет - категории | 244 | // кабинет - категории |
244 | //Route::get('categories', [AdminController::class, 'index'])->name('categories'); | 245 | //Route::get('categories', [AdminController::class, 'index'])->name('categories'); |
245 | 246 | ||
246 | // СRUD-операции над Справочником Категории | 247 | // СRUD-операции над Справочником Категории |
247 | 248 | ||
248 | Route::resource('categories', CategoryController::class, ['except' => ['show']]); | 249 | Route::resource('categories', CategoryController::class, ['except' => ['show']]); |
249 | 250 | ||
250 | // CRUD-операции над справочником Категории для работодателей | 251 | // CRUD-операции над справочником Категории для работодателей |
251 | Route::resource('category-emp', CategoryEmpController::class, ['except' => ['show']]); | 252 | Route::resource('category-emp', CategoryEmpController::class, ['except' => ['show']]); |
252 | 253 | ||
253 | // CRUD-операции над справочником Образование | 254 | // CRUD-операции над справочником Образование |
254 | Route::resource('education', EducationController::class, ['except' => ['show']]); | 255 | Route::resource('education', EducationController::class, ['except' => ['show']]); |
255 | 256 | ||
256 | Route::get('rename-program-education', [EducationController::class, 'rename_program'])->name('rename-program-education'); | 257 | Route::get('rename-program-education', [EducationController::class, 'rename_program'])->name('rename-program-education'); |
257 | Route::get('program-education', [EducationController::class, 'add_program'])->name('add-program-education'); | 258 | Route::get('program-education', [EducationController::class, 'add_program'])->name('add-program-education'); |
258 | Route::post('program-education', [EducationController::class, 'store_program'])->name('store-program-education'); | 259 | Route::post('program-education', [EducationController::class, 'store_program'])->name('store-program-education'); |
259 | 260 | ||
260 | Route::get('program-education/edit/{program}/{education}', [EducationController::class, 'edit_program'])->name('edit-program-education'); | 261 | Route::get('program-education/edit/{program}/{education}', [EducationController::class, 'edit_program'])->name('edit-program-education'); |
261 | Route::post('program-education/edit/{program}/{education}', [EducationController::class, 'update_program'])->name('update-program-education'); | 262 | Route::post('program-education/edit/{program}/{education}', [EducationController::class, 'update_program'])->name('update-program-education'); |
262 | 263 | ||
263 | Route::get('program-education/delete/{program}/{education}', [EducationController::class, 'delete_program'])->name('delete-program-education'); | 264 | Route::get('program-education/delete/{program}/{education}', [EducationController::class, 'delete_program'])->name('delete-program-education'); |
264 | 265 | ||
265 | //Route::get('job-titles', [AdminController::class, 'index'])->name('job-titles'); | 266 | //Route::get('job-titles', [AdminController::class, 'index'])->name('job-titles'); |
266 | /* | 267 | /* |
267 | * кабинет - CRUD-операции по справочнику должности | 268 | * кабинет - CRUD-операции по справочнику должности |
268 | * | 269 | * |
269 | */ | 270 | */ |
270 | Route::resource('job-titles', JobTitlesController::class, ['except' => ['show']]); | 271 | Route::resource('job-titles', JobTitlesController::class, ['except' => ['show']]); |
271 | 272 | ||
272 | // кабинет - сообщения (чтение чужих) | 273 | // кабинет - сообщения (чтение чужих) |
273 | Route::get('messages', [MsgAnswersController::class, 'messages'])->name('messages'); | 274 | Route::get('messages', [MsgAnswersController::class, 'messages'])->name('messages'); |
274 | // кабинет - просмотр сообщения чужого (чтение) | 275 | // кабинет - просмотр сообщения чужого (чтение) |
275 | Route::get('messages/{message}', [MsgAnswersController::class, 'read_message'])->name('read-message'); | 276 | Route::get('messages/{message}', [MsgAnswersController::class, 'read_message'])->name('read-message'); |
276 | 277 | ||
277 | // кабинет - сообщения (админские) | 278 | // кабинет - сообщения (админские) |
278 | Route::get('admin-messages', [MsgAnswersController::class, 'admin_messages'])->name('admin-messages'); | 279 | Route::get('admin-messages', [MsgAnswersController::class, 'admin_messages'])->name('admin-messages'); |
279 | // кабинет - сообщения (админские) | 280 | // кабинет - сообщения (админские) |
280 | Route::post('admin-messages', [MsgAnswersController::class, 'admin_messages_post'])->name('admin-messages-post'); | 281 | Route::post('admin-messages', [MsgAnswersController::class, 'admin_messages_post'])->name('admin-messages-post'); |
281 | // кабинет - sql - конструкция запросов | 282 | // кабинет - sql - конструкция запросов |
282 | Route::get('messages-sql', [MsgAnswersController::class, 'messages_sql'])->name('messages-sql'); | 283 | Route::get('messages-sql', [MsgAnswersController::class, 'messages_sql'])->name('messages-sql'); |
283 | 284 | ||
284 | Route::post('admin-reject-message', [MsgAnswersController::class, 'reject_message'])->name('reject_message'); | 285 | Route::post('admin-reject-message', [MsgAnswersController::class, 'reject_message'])->name('reject_message'); |
285 | Route::post('admin-send-message', [MsgAnswersController::class, 'send_message'])->name('send_message'); | 286 | Route::post('admin-send-message', [MsgAnswersController::class, 'send_message'])->name('send_message'); |
286 | 287 | ||
287 | /* | 288 | /* |
288 | * Расписанный подход в описании каждой директорий групп пользователей. | 289 | * Расписанный подход в описании каждой директорий групп пользователей. |
289 | */ | 290 | */ |
290 | // кабинет - группы пользователей | 291 | // кабинет - группы пользователей |
291 | Route::get('groups', [GroupsController::class, 'index'])->name('groups'); | 292 | Route::get('groups', [GroupsController::class, 'index'])->name('groups'); |
292 | // кабинет - добавление форма группы пользователей | 293 | // кабинет - добавление форма группы пользователей |
293 | Route::get('groups/add', [GroupsController::class, 'add'])->name('add-group'); | 294 | Route::get('groups/add', [GroupsController::class, 'add'])->name('add-group'); |
294 | // кабинет - сохранение формы группы пользователей | 295 | // кабинет - сохранение формы группы пользователей |
295 | Route::post('groups/add', [GroupsController::class, 'store'])->name('add-group-store'); | 296 | Route::post('groups/add', [GroupsController::class, 'store'])->name('add-group-store'); |
296 | // кабинет - редактирование форма группы пользователей | 297 | // кабинет - редактирование форма группы пользователей |
297 | Route::get('groups/edit/{group}', [GroupsController::class, 'edit'])->name('edit-group'); | 298 | Route::get('groups/edit/{group}', [GroupsController::class, 'edit'])->name('edit-group'); |
298 | // кабинет - сохранение редактированной формы группы пользователей | 299 | // кабинет - сохранение редактированной формы группы пользователей |
299 | Route::post('groups/edit/{group}', [GroupsController::class, 'update'])->name('update-group'); | 300 | Route::post('groups/edit/{group}', [GroupsController::class, 'update'])->name('update-group'); |
300 | // кабинет - удаление группы пользователей | 301 | // кабинет - удаление группы пользователей |
301 | Route::delete('groups/delete/{group}', [GroupsController::class, 'destroy'])->name('delete-group'); | 302 | Route::delete('groups/delete/{group}', [GroupsController::class, 'destroy'])->name('delete-group'); |
302 | 303 | ||
303 | 304 | ||
304 | // кабинет - список админов | 305 | // кабинет - список админов |
305 | Route::get('group-admin', [AdminController::class, 'index'])->name('group-admin'); | 306 | Route::get('group-admin', [AdminController::class, 'index'])->name('group-admin'); |
306 | 307 | ||
307 | // справочник Позиции | 308 | // справочник Позиции |
308 | Route::get('positions', [AdminController::class, 'position'])->name('position'); | 309 | Route::get('positions', [AdminController::class, 'position'])->name('position'); |
309 | Route::get('positions/add', [AdminController::class, 'position_add'])->name('add-position'); | 310 | Route::get('positions/add', [AdminController::class, 'position_add'])->name('add-position'); |
310 | Route::post('positions/add', [AdminController::class, 'position_add_save'])->name('add-save-position'); | 311 | Route::post('positions/add', [AdminController::class, 'position_add_save'])->name('add-save-position'); |
311 | Route::get('positions/edit/{position}', [AdminController::class, 'position_edit'])->name('edit-position'); | 312 | Route::get('positions/edit/{position}', [AdminController::class, 'position_edit'])->name('edit-position'); |
312 | Route::post('position/edit/{position}', [AdminController::class, 'position_update'])->name('update-position'); | 313 | Route::post('position/edit/{position}', [AdminController::class, 'position_update'])->name('update-position'); |
313 | Route::get('position/delete/{position}', [AdminController::class, 'position_delete'])->name('delete-position'); | 314 | Route::get('position/delete/{position}', [AdminController::class, 'position_delete'])->name('delete-position'); |
314 | 315 | ||
315 | /////редактор////// кабинет - редактор сайта//////////////////////// | 316 | /////редактор////// кабинет - редактор сайта//////////////////////// |
316 | Route::get('editor-site', function() { | 317 | Route::get('editor-site', function() { |
317 | return view('admin.editor.index'); | 318 | return view('admin.editor.index'); |
318 | })->name('editor-site'); | 319 | })->name('editor-site'); |
319 | 320 | ||
320 | 321 | ||
321 | // кабинет - редактор шапки-футера сайта | 322 | // кабинет - редактор шапки-футера сайта |
322 | Route::get('edit-blocks', [CompanyController::class, 'editblocks'])->name('edit-blocks'); | 323 | Route::get('edit-blocks', [CompanyController::class, 'editblocks'])->name('edit-blocks'); |
323 | Route::get('edit-bloks/add', [CompanyController::class, 'editblock_add'])->name('add-block'); | 324 | Route::get('edit-bloks/add', [CompanyController::class, 'editblock_add'])->name('add-block'); |
324 | Route::post('edit-bloks/add', [CompanyController::class, 'editblock_store'])->name('add-block-store'); | 325 | Route::post('edit-bloks/add', [CompanyController::class, 'editblock_store'])->name('add-block-store'); |
325 | Route::get('edit-bloks/ajax', [CompanyController::class, 'editblock_ajax'])->name('ajax.block'); | 326 | Route::get('edit-bloks/ajax', [CompanyController::class, 'editblock_ajax'])->name('ajax.block'); |
326 | Route::get('edit-bloks/edit/{block}', [CompanyController::class, 'editblock_edit'])->name('edit-block'); | 327 | Route::get('edit-bloks/edit/{block}', [CompanyController::class, 'editblock_edit'])->name('edit-block'); |
327 | Route::put('edit-bloks/edit/{block}', [CompanyController::class, 'editblock_update'])->name('update-block'); | 328 | Route::put('edit-bloks/edit/{block}', [CompanyController::class, 'editblock_update'])->name('update-block'); |
328 | Route::delete('edit-bloks/delete/{block}', [CompanyController::class, 'editblock_destroy'])->name('delete-block'); | 329 | Route::delete('edit-bloks/delete/{block}', [CompanyController::class, 'editblock_destroy'])->name('delete-block'); |
329 | 330 | ||
330 | 331 | ||
331 | // кабинет - редактор должности на главной | 332 | // кабинет - редактор должности на главной |
332 | Route::get('job-titles-main', [CompanyController::class, 'job_titles_main'])->name('job-titles-main'); | 333 | Route::get('job-titles-main', [CompanyController::class, 'job_titles_main'])->name('job-titles-main'); |
333 | 334 | ||
334 | // кабинет - счетчики на главной | 335 | // кабинет - счетчики на главной |
335 | Route::get('counters-main', [CompanyController::class, 'counters_main'])->name('counters-main'); | 336 | Route::get('counters-main', [CompanyController::class, 'counters_main'])->name('counters-main'); |
336 | Route::post('counters-main/edit/{name}', [CompanyController::class, 'counters_main_update'])->name('counters-main-update'); | 337 | Route::post('counters-main/edit/{name}', [CompanyController::class, 'counters_main_update'])->name('counters-main-update'); |
337 | 338 | ||
338 | // кабинет - редактор работодатели на главной | 339 | // кабинет - редактор работодатели на главной |
339 | Route::get('employers-main', [CompanyController::class, 'employers_main'])->name('employers-main'); | 340 | Route::get('employers-main', [CompanyController::class, 'employers_main'])->name('employers-main'); |
340 | Route::post('employers-main-add', [CompanyController::class, 'employers_main_add'])->name('employers-main-add'); | 341 | Route::post('employers-main-add', [CompanyController::class, 'employers_main_add'])->name('employers-main-add'); |
341 | Route::post('employers-main-remove', [CompanyController::class, 'employers_main_remove'])->name('employers-main-remove'); | 342 | Route::post('employers-main-remove', [CompanyController::class, 'employers_main_remove'])->name('employers-main-remove'); |
342 | 343 | ||
343 | 344 | ||
344 | // кабинет - редактор seo-сайта | 345 | // кабинет - редактор seo-сайта |
345 | Route::get('editor-seo', [CompanyController::class, 'editor_seo'])->name('editor-seo'); | 346 | Route::get('editor-seo', [CompanyController::class, 'editor_seo'])->name('editor-seo'); |
346 | Route::get('editor-seo/add', [CompanyController::class, 'editor_seo_add'])->name('add-seo'); | 347 | Route::get('editor-seo/add', [CompanyController::class, 'editor_seo_add'])->name('add-seo'); |
347 | Route::post('editor-seo/add', [CompanyController::class, 'editor_seo_store'])->name('add-seo-store'); | 348 | Route::post('editor-seo/add', [CompanyController::class, 'editor_seo_store'])->name('add-seo-store'); |
348 | Route::get('editor-seo/ajax', [CompanyController::class, 'editor_seo_ajax'])->name('ajax.seo'); | 349 | Route::get('editor-seo/ajax', [CompanyController::class, 'editor_seo_ajax'])->name('ajax.seo'); |
349 | Route::get('editor-seo/edit/{page}', [CompanyController::class, 'editor_seo_edit'])->name('edit-seo'); | 350 | Route::get('editor-seo/edit/{page}', [CompanyController::class, 'editor_seo_edit'])->name('edit-seo'); |
350 | Route::put('editor-seo/edit/{page}', [CompanyController::class, 'editor_seo_update'])->name('update-seo'); | 351 | Route::put('editor-seo/edit/{page}', [CompanyController::class, 'editor_seo_update'])->name('update-seo'); |
351 | Route::delete('editor-seo/delete/{page}', [CompanyController::class, 'editor_seo_destroy'])->name('delete-seo'); | 352 | Route::delete('editor-seo/delete/{page}', [CompanyController::class, 'editor_seo_destroy'])->name('delete-seo'); |
352 | 353 | ||
353 | 354 | ||
354 | // кабинет - редактор страниц | 355 | // кабинет - редактор страниц |
355 | Route::get('editor-pages', [CompanyController::class, 'editor_pages'])->name('editor-pages'); | 356 | Route::get('editor-pages', [CompanyController::class, 'editor_pages'])->name('editor-pages'); |
356 | // кабинет - добавление страницы | 357 | // кабинет - добавление страницы |
357 | Route::get('editor-pages/add', [CompanyController::class, 'editor_pages_add'])->name('add-page'); | 358 | Route::get('editor-pages/add', [CompanyController::class, 'editor_pages_add'])->name('add-page'); |
358 | // кабинет - сохранение формы страницы | 359 | // кабинет - сохранение формы страницы |
359 | Route::post('editor-page/add', [CompanyController::class, 'editor_pages_store'])->name('add-page-store'); | 360 | Route::post('editor-page/add', [CompanyController::class, 'editor_pages_store'])->name('add-page-store'); |
360 | // кабинет - редактирование форма страницы | 361 | // кабинет - редактирование форма страницы |
361 | Route::get('editor-pages/edit/{page}', [CompanyController::class, 'editor_pages_edit'])->name('edit-page'); | 362 | Route::get('editor-pages/edit/{page}', [CompanyController::class, 'editor_pages_edit'])->name('edit-page'); |
362 | // кабинет - сохранение редактированной формы страницы | 363 | // кабинет - сохранение редактированной формы страницы |
363 | Route::put('editor-pages/edit/{page}', [CompanyController::class, 'editor_pages_update'])->name('update-page'); | 364 | Route::put('editor-pages/edit/{page}', [CompanyController::class, 'editor_pages_update'])->name('update-page'); |
364 | // кабинет - удаление страницы | 365 | // кабинет - удаление страницы |
365 | Route::delete('editor-pages/delete/{page}', [CompanyController::class, 'editor_pages_destroy'])->name('delete-page'); | 366 | Route::delete('editor-pages/delete/{page}', [CompanyController::class, 'editor_pages_destroy'])->name('delete-page'); |
366 | 367 | ||
367 | 368 | ||
368 | // кабинет - реклама сайта | 369 | // кабинет - реклама сайта |
369 | Route::get('reclames', [CompanyController::class, 'reclames'])->name('reclames'); | 370 | Route::get('reclames', [CompanyController::class, 'reclames'])->name('reclames'); |
370 | Route::get('reclames/add', [CompanyController::class, 'reclames_add'])->name('add-reclames'); | 371 | Route::get('reclames/add', [CompanyController::class, 'reclames_add'])->name('add-reclames'); |
371 | Route::post('reclames/add', [CompanyController::class, 'reclames_store'])->name('add-reclames-store'); | 372 | Route::post('reclames/add', [CompanyController::class, 'reclames_store'])->name('add-reclames-store'); |
372 | Route::get('reclames/edit/{reclame}', [CompanyController::class, 'reclames_edit'])->name('edit-reclames'); | 373 | Route::get('reclames/edit/{reclame}', [CompanyController::class, 'reclames_edit'])->name('edit-reclames'); |
373 | Route::put('reclames/edit/{reclame}', [CompanyController::class, 'reclames_update'])->name('update-reclames'); | 374 | Route::put('reclames/edit/{reclame}', [CompanyController::class, 'reclames_update'])->name('update-reclames'); |
374 | Route::delete('reclames/delete/{reclame}', [CompanyController::class, 'reclames_destroy'])->name('delete-reclames'); | 375 | Route::delete('reclames/delete/{reclame}', [CompanyController::class, 'reclames_destroy'])->name('delete-reclames'); |
375 | //////////////////////////////////////////////////////////////////////// | 376 | //////////////////////////////////////////////////////////////////////// |
376 | 377 | ||
377 | 378 | ||
378 | // кабинет - отзывы о работодателе для модерации | 379 | // кабинет - отзывы о работодателе для модерации |
379 | Route::get('answers', [EmployersController::class, 'answers'])->name('answers'); | 380 | Route::get('answers', [EmployersController::class, 'answers'])->name('answers'); |
380 | 381 | ||
381 | // Общая страница статистики | 382 | // Общая страница статистики |
382 | Route::get('statics', function () { | 383 | Route::get('statics', function () { |
383 | return view('admin.static.index'); | 384 | return view('admin.static.index'); |
384 | })->name('statics'); | 385 | })->name('statics'); |
385 | 386 | ||
386 | // кабинет - статистика работников | 387 | // кабинет - статистика работников |
387 | Route::get('static-workers', [WorkersController::class, 'static_workers'])->name('static-workers'); | 388 | Route::get('static-workers', [WorkersController::class, 'static_workers'])->name('static-workers'); |
388 | 389 | ||
389 | // кабинет - статистика вакансий работодателя | 390 | // кабинет - статистика вакансий работодателя |
390 | Route::get('static-ads', [EmployersController::class, 'static_ads'])->name('static-ads'); | 391 | Route::get('static-ads', [EmployersController::class, 'static_ads'])->name('static-ads'); |
391 | 392 | ||
392 | // кабинет - справочник - блоки информации (дипломы и документы) для резюме работника | 393 | // кабинет - справочник - блоки информации (дипломы и документы) для резюме работника |
393 | /* | 394 | /* |
394 | * CRUD-операции над справочником дипломы и документы | 395 | * CRUD-операции над справочником дипломы и документы |
395 | */ | 396 | */ |
396 | //Route::get('infobloks', [WorkersController::class, 'infobloks'])->name('infobloks'); | 397 | //Route::get('infobloks', [WorkersController::class, 'infobloks'])->name('infobloks'); |
397 | Route::resource('infobloks', InfoBloksController::class, ['except' => ['show']]); | 398 | Route::resource('infobloks', InfoBloksController::class, ['except' => ['show']]); |
398 | 399 | ||
399 | // кабинет - роли пользователя | 400 | // кабинет - роли пользователя |
400 | Route::get('roles', [UsersController::class, 'roles'])->name('roles'); | 401 | Route::get('roles', [UsersController::class, 'roles'])->name('roles'); |
401 | 402 | ||
402 | Route::get('admin_roles', [UsersController::class, 'admin_roles'])->name('admin_roles'); | 403 | Route::get('admin_roles', [UsersController::class, 'admin_roles'])->name('admin_roles'); |
403 | 404 | ||
404 | Route::get('logs', function() { | 405 | Route::get('logs', function() { |
405 | $files = Storage::files('logs/laravel.log'); | 406 | $files = Storage::files('logs/laravel.log'); |
406 | })->name('logs'); | 407 | })->name('logs'); |
408 | |||
409 | Route::prefix('faq')->as('faq.')->group(function () { | ||
410 | Route::middleware('admin')->group(function () { | ||
411 | Route::get('/', [FaqController::class, 'showListForAdmin'])->name('list'); | ||
412 | Route::get('/create', [FaqController::class, 'create'])->name('create'); | ||
413 | Route::post('/create', [FaqController::class, 'store'])->name('store'); | ||
414 | Route::get('/edit/{id}', [FaqController::class, 'edit'])->name('edit'); | ||
415 | Route::put('/edit/{id}', [FaqController::class, 'update'])->name('update'); | ||
416 | Route::get('/destroy/{id}', [FaqController::class, 'destroy'])->name('destroy'); | ||
417 | }); | ||
418 | }); | ||
407 | }); | 419 | }); |
408 | 420 | ||
409 | // Инструментальные страницы | 421 | // Инструментальные страницы |
410 | Route::post('ckeditor/upload', [CKEditorController::class, 'upload'])->name('ckeditor.image-upload'); | 422 | Route::post('ckeditor/upload', [CKEditorController::class, 'upload'])->name('ckeditor.image-upload'); |
411 | 423 | ||
412 | Route::get('redis/', [PagesController::class, 'redis'])->name('redis'); | 424 | Route::get('redis/', [PagesController::class, 'redis'])->name('redis'); |
413 | 425 | ||
414 | Route::get('excel/', [PagesController::class, 'excel'])->name('excel'); | 426 | Route::get('excel/', [PagesController::class, 'excel'])->name('excel'); |
415 | 427 | ||
416 | // Страницы с произвольным контентом | 428 | // Страницы с произвольным контентом |
417 | Route::get('pages/{pages:slug}', [PagesController::class, 'pages'])->name('page'); | 429 | Route::get('pages/{pages:slug}', [PagesController::class, 'pages'])->name('page'); |
418 | 430 | ||
419 | // Форма обратной связи | 431 | // Форма обратной связи |
420 | Route::post('form_feedback', [PagesController::class, 'form_feedback'])->name('form_feedback'); | 432 | Route::post('form_feedback', [PagesController::class, 'form_feedback'])->name('form_feedback'); |
421 | 433 | ||
422 | // Публичные страницы соискателя | 434 | // Публичные страницы соискателя |
423 | Route::get('workers/profile/{worker}', [WorkerController::class, 'profile'])->name('worker_page'); | 435 | Route::get('workers/profile/{worker}', [WorkerController::class, 'profile'])->name('worker_page'); |
424 | 436 | ||
425 | //Страница вакансии | 437 | //Страница вакансии |
426 | Route::get('employer/ad/{ad_employer}', [AdEmployerController::class, 'ad_employer'])->name('ad-employer'); | 438 | Route::get('employer/ad/{ad_employer}', [AdEmployerController::class, 'ad_employer'])->name('ad-employer'); |
427 | 439 | ||
428 | //Вакансии | 440 | //Вакансии |
429 | Route::get('vacancies', [MainController::class, 'vacancies'])->name('vacancies'); | 441 | Route::get('vacancies', [MainController::class, 'vacancies'])->name('vacancies'); |
430 | 442 | ||
431 | //Вакансии поиск на главной | 443 | //Вакансии поиск на главной |
432 | Route::get('search-vacancies', [MainController::class, 'search_vacancies'])->name('search_vacancies'); | 444 | Route::get('search-vacancies', [MainController::class, 'search_vacancies'])->name('search_vacancies'); |
433 | 445 | ||
434 | //Вакансии категория детальная | 446 | //Вакансии категория детальная |
435 | Route::get('list-vacancies/{categories?}', [MainController::class, 'list_vacancies'])->name('list-vacancies'); | 447 | Route::get('list-vacancies/{categories?}', [MainController::class, 'list_vacancies'])->name('list-vacancies'); |
436 | 448 | ||
437 | // Лайк вакансии | 449 | // Лайк вакансии |
438 | Route::get('like-vacancy', [MainController::class, 'like_vacancy'])->name('like-vacancy'); | 450 | Route::get('like-vacancy', [MainController::class, 'like_vacancy'])->name('like-vacancy'); |
439 | 451 | ||
440 | //Детальная страница вакансии - работодателя | 452 | //Детальная страница вакансии - работодателя |
441 | Route::get('vacancie/{vacancy}', [FrontEmployersController::class, 'vacancie'])->name('vacancie'); | 453 | Route::get('vacancie/{vacancy}', [FrontEmployersController::class, 'vacancie'])->name('vacancie'); |
442 | 454 | ||
443 | //Судоходные компании | 455 | //Судоходные компании |
444 | Route::get('shipping-companies', [FrontCompanyController::class, 'shipping_companies'])->name('shipping_companies'); | 456 | Route::get('shipping-companies', [FrontCompanyController::class, 'shipping_companies'])->name('shipping_companies'); |
445 | 457 | ||
446 | //Детальная инфа о компании | 458 | //Детальная инфа о компании |
447 | Route::get('info-company/{company}', [FrontCompanyController::class, 'info_company'])->name('info_company'); | 459 | Route::get('info-company/{company}', [FrontCompanyController::class, 'info_company'])->name('info_company'); |
448 | 460 | ||
449 | //Образование | 461 | //Образование |
450 | Route::get('education', [EducationFrontController::class, 'index'])->name('education'); | 462 | Route::get('education', [EducationFrontController::class, 'index'])->name('education'); |
451 | Route::get('education/{education}', [EducationFrontController::class, 'show'])->name('show_education')->where('education', '[0-9]+');; | 463 | Route::get('education/{education}', [EducationFrontController::class, 'show'])->name('show_education')->where('education', '[0-9]+');; |
452 | 464 | ||
453 | //Новости | 465 | //Новости |
454 | Route::get('news', [MainController::class, 'news'])->name('news'); | 466 | Route::get('news', [MainController::class, 'news'])->name('news'); |
455 | Route::get('detail-new/{new}', [MainController::class, 'detail_new'])->name('detail_new'); | 467 | Route::get('detail-new/{new}', [MainController::class, 'detail_new'])->name('detail_new'); |
456 | 468 | ||
457 | //Контакты | 469 | //Контакты |
458 | Route::get('contacts', [MainController::class, 'contacts'])->name('contacts'); | 470 | Route::get('contacts', [MainController::class, 'contacts'])->name('contacts'); |
459 | 471 | ||
460 | //База резюме | 472 | //База резюме |
461 | Route::get('bd-resume', [WorkerController::class, 'bd_resume'])->name('bd_resume'); | 473 | Route::get('bd-resume', [WorkerController::class, 'bd_resume'])->name('bd_resume'); |
462 | Route::get('bd_resume_danger', function(){ | 474 | Route::get('bd_resume_danger', function(){ |
463 | return view('employers.bd_resume_danger'); | 475 | return view('employers.bd_resume_danger'); |
464 | })->name('bd_resume_danger'); | 476 | })->name('bd_resume_danger'); |
465 | 477 | ||
466 | Route::get('like-resume', [MainController::class, 'like_worker'])->name('like_resume'); | 478 | Route::get('like-resume', [MainController::class, 'like_worker'])->name('like_resume'); |
467 | 479 | ||
468 | //Анкета соискателя | 480 | //Анкета соискателя |
469 | Route::get('resume-profile/{worker}', [WorkerController::class, 'resume_profile'])->name('resume_profile'); | 481 | Route::get('resume-profile/{worker}', [WorkerController::class, 'resume_profile'])->name('resume_profile'); |
470 | 482 | ||
471 | //Скачать резюме | 483 | //Скачать резюме |
472 | Route::get('resume-download/{worker}', [WorkerController::class, 'resume_download'])->name('resume_download'); | 484 | Route::get('resume-download/{worker}', [WorkerController::class, 'resume_download'])->name('resume_download'); |
473 | Route::get('resume-download/all', [WorkerController::class, 'resume_download_all'])->name('resume_download_all2'); | 485 | Route::get('resume-download/all', [WorkerController::class, 'resume_download_all'])->name('resume_download_all2'); |
474 | Route::get('resume-download', [WorkerController::class, 'resume_download_all'])->name('resume_download_all'); | 486 | Route::get('resume-download', [WorkerController::class, 'resume_download_all'])->name('resume_download_all'); |
475 | 487 | ||
476 | 488 | ||
477 | //Вход в кабинет | 489 | //Вход в кабинет |
478 | Route::get('login', [MainController::class, 'input_login'])->name('login'); | 490 | Route::get('login', [MainController::class, 'input_login'])->name('login'); |
479 | 491 | ||
480 | // Выход из кабинета | 492 | // Выход из кабинета |
481 | Route::get('logout', [EmployerController::class, 'logout'])->name('logout'); | 493 | Route::get('logout', [EmployerController::class, 'logout'])->name('logout'); |
482 | 494 | ||
483 | Route::get( 'register_worker', [WorkerController::class, 'register_worker'])->name('register_worker'); | 495 | Route::get( 'register_worker', [WorkerController::class, 'register_worker'])->name('register_worker'); |
484 | Route::get('register_employer', [EmployerController::class, 'register_employer'])->name('register_employer'); | 496 | Route::get('register_employer', [EmployerController::class, 'register_employer'])->name('register_employer'); |
485 | 497 | ||
486 | //восстановление пароля | 498 | //восстановление пароля |
487 | Route::get('repair-password', [MainController::class, 'repair_password'])->name('repair_password'); | 499 | Route::get('repair-password', [MainController::class, 'repair_password'])->name('repair_password'); |
488 | // Звезда сообщения | 500 | // Звезда сообщения |
489 | Route::post('stars-answer', [WorkerController::class, 'stars_answer'])->name('stars_answer'); | 501 | Route::post('stars-answer', [WorkerController::class, 'stars_answer'])->name('stars_answer'); |
490 | 502 | ||
491 | // Борьба | 503 | // Борьба |
492 | Route::get('clear_cookie', function() { | 504 | Route::get('clear_cookie', function() { |
493 | \App\Classes\Cookies_vacancy::clear_vacancy(); | 505 | \App\Classes\Cookies_vacancy::clear_vacancy(); |
494 | return redirect()->route('index'); | 506 | return redirect()->route('index'); |
495 | })->name('clear_cookie'); | 507 | })->name('clear_cookie'); |
496 | 508 | ||
497 | Route::get('cookies', function() { | 509 | Route::get('cookies', function() { |
498 | return view('cookies'); | 510 | return view('cookies'); |
499 | })->name('cookies'); | 511 | })->name('cookies'); |
500 | 512 | ||
501 | // Личный кабинет работник | 513 | // Личный кабинет работник |
502 | Route::group([ | 514 | Route::group([ |
503 | 'as' => 'worker.', // имя маршрута, например auth.index | 515 | 'as' => 'worker.', // имя маршрута, например auth.index |
504 | 'prefix' => 'worker', // префикс маршрута, например auth/index | 516 | 'prefix' => 'worker', // префикс маршрута, например auth/index |
505 | 'middleware' => ['auth', 'is_worker'], | 517 | 'middleware' => ['auth', 'is_worker'], |
506 | ], function() { | 518 | ], function() { |
507 | // Формы редактирования | 519 | // Формы редактирования |
508 | Route::get('cabinet/basic_information', [WorkerController::class, 'basic_information'])->name('basic_information'); | 520 | Route::get('cabinet/basic_information', [WorkerController::class, 'basic_information'])->name('basic_information'); |
509 | Route::get('cabinet/additional_documents', [WorkerController::class, 'additional_documents'])->name('additional_documents'); | 521 | Route::get('cabinet/additional_documents', [WorkerController::class, 'additional_documents'])->name('additional_documents'); |
510 | 522 | ||
511 | // 1 страница - Моя анкета | 523 | // 1 страница - Моя анкета |
512 | Route::get('cabinet', [WorkerController::class, 'cabinet'])->name('cabinet'); | 524 | Route::get('cabinet', [WorkerController::class, 'cabinet'])->name('cabinet'); |
513 | Route::post('cabinet/{worker}', [WorkerController::class, 'cabinet_save'])->name('cabinet_save'); | 525 | Route::post('cabinet/{worker}', [WorkerController::class, 'cabinet_save'])->name('cabinet_save'); |
514 | Route::post('cabinet/cabinet_save_foto/{worker}', [WorkerController::class, 'cabinet_save_foto'])->name('cabinet_save_foto'); | 526 | Route::post('cabinet/cabinet_save_foto/{worker}', [WorkerController::class, 'cabinet_save_foto'])->name('cabinet_save_foto'); |
515 | 527 | ||
516 | 528 | ||
517 | // 2 страница - Сообщения | 529 | // 2 страница - Сообщения |
518 | Route::get('cabinet/messages/{type_message}', [WorkerController::class, 'messages'])->name('messages'); | 530 | Route::get('cabinet/messages/{type_message}', [WorkerController::class, 'messages'])->name('messages'); |
519 | Route::get('cabinet/dialog/{chat}', [WorkerController::class, 'dialog'])->name('dialog'); | 531 | Route::get('cabinet/dialog/{chat}', [WorkerController::class, 'dialog'])->name('dialog'); |
520 | // 3 страница - Избранные вакансии | 532 | // 3 страница - Избранные вакансии |
521 | Route::get('cabinet/favorite', [WorkerController::class, 'favorite'])->name('favorite'); | 533 | Route::get('cabinet/favorite', [WorkerController::class, 'favorite'])->name('favorite'); |
522 | // Продолжение борьбы против колорадов - избранные вакансии | 534 | // Продолжение борьбы против колорадов - избранные вакансии |
523 | Route::get('кабинет/favorite', [WorkerController::class, 'colorado'])->name('colorado'); | 535 | Route::get('кабинет/favorite', [WorkerController::class, 'colorado'])->name('colorado'); |
524 | 536 | ||
525 | // 4 страница - Сменить пароль | 537 | // 4 страница - Сменить пароль |
526 | Route::get('кабинет/new_password', [WorkerController::class, 'new_password'])->name('new_password'); | 538 | Route::get('кабинет/new_password', [WorkerController::class, 'new_password'])->name('new_password'); |
527 | Route::post('кабинет/new_password/save', [WorkerController::class, 'save_new_password'])->name('save_new_password'); | 539 | Route::post('кабинет/new_password/save', [WorkerController::class, 'save_new_password'])->name('save_new_password'); |
528 | 540 | ||
529 | // 5 страница - Удалить профиль | 541 | // 5 страница - Удалить профиль |
530 | Route::get('кабинет/delete_profile', [WorkerController::class, 'delete_profile'])->name('delete_profile'); | 542 | Route::get('кабинет/delete_profile', [WorkerController::class, 'delete_profile'])->name('delete_profile'); |
531 | Route::post('кабинет/delete_profile/delete', [WorkerController::class, 'delete_profile_result'])->name('deleteprofile_result'); | 543 | Route::post('кабинет/delete_profile/delete', [WorkerController::class, 'delete_profile_result'])->name('deleteprofile_result'); |
532 | 544 | ||
533 | // Резюме -pdf | 545 | // Резюме -pdf |
534 | Route::get('кабинет/download/{worker}', [WorkerController::class, 'download'])->name('download'); | 546 | Route::get('кабинет/download/{worker}', [WorkerController::class, 'download'])->name('download'); |
535 | 547 | ||
536 | // Поднятие анкеты | 548 | // Поднятие анкеты |
537 | Route::get('кабинет/up/{worker}', [WorkerController::class, 'up'])->name('up'); | 549 | Route::get('кабинет/up/{worker}', [WorkerController::class, 'up'])->name('up'); |
538 | 550 | ||
539 | Route::post('test123', [WorkerController::class, 'test123'])->name('test123'); | 551 | Route::post('test123', [WorkerController::class, 'test123'])->name('test123'); |
540 | 552 | ||
541 | // Добавление сертификата | 553 | // Добавление сертификата |
542 | Route::get('кабинет/new_sertificate/{worker}', [WorkerController::class, 'new_sertificate'])->name('new_sertificate'); | 554 | Route::get('кабинет/new_sertificate/{worker}', [WorkerController::class, 'new_sertificate'])->name('new_sertificate'); |
543 | Route::post('кабинет/add_sertificate', [WorkerController::class, 'add_serificate'])->name('add_serificate'); | 555 | Route::post('кабинет/add_sertificate', [WorkerController::class, 'add_serificate'])->name('add_serificate'); |
544 | Route::get('кабинет/edit_sertificate/{worker}/{doc}', [WorkerController::class, 'edit_sertificate'])->name('edit_sertificate'); | 556 | Route::get('кабинет/edit_sertificate/{worker}/{doc}', [WorkerController::class, 'edit_sertificate'])->name('edit_sertificate'); |
545 | Route::get('кабинет/edit_sertificate/{doc}', [WorkerController::class, 'update_serificate'])->name('update_serificate'); | 557 | Route::get('кабинет/edit_sertificate/{doc}', [WorkerController::class, 'update_serificate'])->name('update_serificate'); |
546 | Route::get('кабинет/delete_sertificate/{doc}', [WorkerController::class, 'delete_sertificate'])->name('delete_sertificate'); | 558 | Route::get('кабинет/delete_sertificate/{doc}', [WorkerController::class, 'delete_sertificate'])->name('delete_sertificate'); |
547 | 559 | ||
548 | // Добавление предыдущих контактов компании | 560 | // Добавление предыдущих контактов компании |
549 | Route::get('кабинет/prev_company/{worker}', [WorkerController::class, 'new_prev_company'])->name('new_prev_company'); | 561 | Route::get('кабинет/prev_company/{worker}', [WorkerController::class, 'new_prev_company'])->name('new_prev_company'); |
550 | Route::post('кабинет/add_prev_company', [WorkerController::class, 'add_prev_company'])->name('add_prev_company'); | 562 | Route::post('кабинет/add_prev_company', [WorkerController::class, 'add_prev_company'])->name('add_prev_company'); |
551 | Route::get('кабинет/edit_prev_company/{doc}/{worker}', [WorkerController::class, 'edit_prev_company'])->name('edit_prev_company'); | 563 | Route::get('кабинет/edit_prev_company/{doc}/{worker}', [WorkerController::class, 'edit_prev_company'])->name('edit_prev_company'); |
552 | Route::post('кабинет/update_prev_company/{doc}', [WorkerController::class, 'update_prev_company'])->name('update_prev_company'); | 564 | Route::post('кабинет/update_prev_company/{doc}', [WorkerController::class, 'update_prev_company'])->name('update_prev_company'); |
553 | Route::get('кабинет/delete_prev_company/{doc}', [WorkerController::class, 'delete_prev_company'])->name('delete_prev_company'); | 565 | Route::get('кабинет/delete_prev_company/{doc}', [WorkerController::class, 'delete_prev_company'])->name('delete_prev_company'); |
554 | 566 | ||
555 | // Добавление документа-диплома | 567 | // Добавление документа-диплома |
556 | Route::get('кабинет/add_diplom/{worker}', [WorkerController::class, 'add_diplom'])->name('add_diplom'); | 568 | Route::get('кабинет/add_diplom/{worker}', [WorkerController::class, 'add_diplom'])->name('add_diplom'); |
557 | Route::post('кабинет/add_diplom', [WorkerController::class, 'add_diplom_save'])->name('dop_info_save'); | 569 | Route::post('кабинет/add_diplom', [WorkerController::class, 'add_diplom_save'])->name('dop_info_save'); |
558 | Route::put('кабинет/edit_diploms/{worker}', [WorkerController::class, 'edit_diploms'])->name('edit_diploms'); | 570 | Route::put('кабинет/edit_diploms/{worker}', [WorkerController::class, 'edit_diploms'])->name('edit_diploms'); |
559 | Route::get('кабинет/delete_ad_diplom/{worker}', [WorkerController::class, 'delete_add_diplom'])->name('delete_add_diplom'); | 571 | Route::get('кабинет/delete_ad_diplom/{worker}', [WorkerController::class, 'delete_add_diplom'])->name('delete_add_diplom'); |
560 | 572 | ||
561 | // Добавление стандартного диплома | 573 | // Добавление стандартного диплома |
562 | Route::get('кабинет/add_document/{worker}', [WorkerController::class, 'add_document'])->name('add_document'); | 574 | Route::get('кабинет/add_document/{worker}', [WorkerController::class, 'add_document'])->name('add_document'); |
563 | Route::post('кабинет/add_document/', [WorkerController::class, 'add_document_save'])->name('add_document_save'); | 575 | Route::post('кабинет/add_document/', [WorkerController::class, 'add_document_save'])->name('add_document_save'); |
564 | Route::get('кабинет/edit_document/{doc}/{worker}', [WorkerController::class, 'edit_document'])->name('edit_document'); | 576 | Route::get('кабинет/edit_document/{doc}/{worker}', [WorkerController::class, 'edit_document'])->name('edit_document'); |
565 | Route::post('кабинет/edit_document/{doc}', [WorkerController::class, 'edit_document_save'])->name('edit_document_save'); | 577 | Route::post('кабинет/edit_document/{doc}', [WorkerController::class, 'edit_document_save'])->name('edit_document_save'); |
566 | Route::get('кабинет/delete_document/{doc}', [WorkerController::class, 'delete_document'])->name('delete_document'); | 578 | Route::get('кабинет/delete_document/{doc}', [WorkerController::class, 'delete_document'])->name('delete_document'); |
567 | 579 | ||
568 | // Отправка сообщения работодателю от соискателя | 580 | // Отправка сообщения работодателю от соискателя |
569 | Route::post('сообщение/', [WorkerController::class, 'new_message'])->name('new_message'); | 581 | Route::post('сообщение/', [WorkerController::class, 'new_message'])->name('new_message'); |
570 | }); | 582 | }); |
571 | 583 | ||
572 | // Личный кабинет работодателя | 584 | // Личный кабинет работодателя |
573 | Route::group([ | 585 | Route::group([ |
574 | 'as' => 'employer.', // имя маршрута, например auth.index | 586 | 'as' => 'employer.', // имя маршрута, например auth.index |
575 | 'prefix' => 'employer', // префикс маршрута, например auth/index | 587 | 'prefix' => 'employer', // префикс маршрута, например auth/index |
576 | 'middleware' => ['auth', 'is_employer'], | 588 | 'middleware' => ['auth', 'is_employer'], |
577 | ], function() { | 589 | ], function() { |
578 | // 0 страница - Личные данные работодателя | 590 | // 0 страница - Личные данные работодателя |
579 | Route::get('cabinet/employer_info', [EmployerController::class, 'employer_info'])->name('employer_info'); | 591 | Route::get('cabinet/employer_info', [EmployerController::class, 'employer_info'])->name('employer_info'); |
580 | Route::post('cabinet/employer_info/{user}', [EmployerController::class, 'employer_info_save'])->name('employer_info_save'); | 592 | Route::post('cabinet/employer_info/{user}', [EmployerController::class, 'employer_info_save'])->name('employer_info_save'); |
581 | 593 | ||
582 | // 1 страница - Профиль | 594 | // 1 страница - Профиль |
583 | Route::get('cabinet', [EmployerController::class, 'cabinet'])->name('cabinet'); | 595 | Route::get('cabinet', [EmployerController::class, 'cabinet'])->name('cabinet'); |
584 | Route::post('cabinet/{Employer}', [EmployerController::class, 'cabinet_save'])->name('cabinet_save'); | 596 | Route::post('cabinet/{Employer}', [EmployerController::class, 'cabinet_save'])->name('cabinet_save'); |
585 | Route::post('flot_add_ajax', [EmployerController::class, 'save_add_flot'])->name('save_add_flot'); | 597 | Route::post('flot_add_ajax', [EmployerController::class, 'save_add_flot'])->name('save_add_flot'); |
586 | Route::get('flot_delete_ajax/{Flot}', [EmployerController::class, 'delete_flot'])->name('delete_flot'); | 598 | Route::get('flot_delete_ajax/{Flot}', [EmployerController::class, 'delete_flot'])->name('delete_flot'); |
587 | Route::get('cabinet/flot_edit/{Flot}/{Employer}', [EmployerController::class, 'edit_flot'])->name('edit_flot'); | 599 | Route::get('cabinet/flot_edit/{Flot}/{Employer}', [EmployerController::class, 'edit_flot'])->name('edit_flot'); |
588 | Route::post('cabinet/flot_edit/{Flot}', [EmployerController::class, 'update_flot'])->name('update_flot_save'); | 600 | Route::post('cabinet/flot_edit/{Flot}', [EmployerController::class, 'update_flot'])->name('update_flot_save'); |
589 | Route::get('cabinet/flot', [EmployerController::class, 'slider_flot'])->name('slider_flot'); | 601 | Route::get('cabinet/flot', [EmployerController::class, 'slider_flot'])->name('slider_flot'); |
590 | 602 | ||
591 | // 2 страница - Добавление вакансий | 603 | // 2 страница - Добавление вакансий |
592 | Route::get('cabinet/vacancie', [EmployerController::class, 'cabinet_vacancie'])->name('cabinet_vacancie'); | 604 | Route::get('cabinet/vacancie', [EmployerController::class, 'cabinet_vacancie'])->name('cabinet_vacancie'); |
593 | Route::post('vacancie', [EmployerController::class, 'cabinet_vacancy_save1'])->name('vac_save'); | 605 | Route::post('vacancie', [EmployerController::class, 'cabinet_vacancy_save1'])->name('vac_save'); |
594 | //Route::get('selected_people', [EmployerController::class, 'selected_people'])->name('selected_people'); | 606 | //Route::get('selected_people', [EmployerController::class, 'selected_people'])->name('selected_people'); |
595 | 607 | ||
596 | Route::get('cabinet/vacancie_danger', [EmployerController::class, 'cabinet_vacancie_danger'])->name('cabinet_vacancie_danger'); | 608 | Route::get('cabinet/vacancie_danger', [EmployerController::class, 'cabinet_vacancie_danger'])->name('cabinet_vacancie_danger'); |
597 | 609 | ||
598 | 610 | ||
599 | 611 | ||
600 | Route::get('selected_people', [EmployerController::class, 'selected_people'])->name('selected_people'); | 612 | Route::get('selected_people', [EmployerController::class, 'selected_people'])->name('selected_people'); |
601 | 613 | ||
602 | // 3 страница - Мои вакансии | 614 | // 3 страница - Мои вакансии |
603 | Route::get('cabinet/vacancy_list', [EmployerController::class, 'vacancy_list'])->name('vacancy_list'); | 615 | Route::get('cabinet/vacancy_list', [EmployerController::class, 'vacancy_list'])->name('vacancy_list'); |
604 | Route::get('cabinet/vacancy/{ad_employer}', [EmployerController::class, 'vacancy_edit'])->name('vacancy_edit'); | 616 | Route::get('cabinet/vacancy/{ad_employer}', [EmployerController::class, 'vacancy_edit'])->name('vacancy_edit'); |
605 | Route::get('cabinet/vacancy-delete/{ad_employer}', [EmployerController::class, 'vacancy_delete'])->name('vacancy_delete'); | 617 | Route::get('cabinet/vacancy-delete/{ad_employer}', [EmployerController::class, 'vacancy_delete'])->name('vacancy_delete'); |
606 | Route::get('cabinet/vacancy-up/{ad_employer}', [EmployerController::class, 'vacancy_up'])->name('vacancy_up'); | 618 | Route::get('cabinet/vacancy-up/{ad_employer}', [EmployerController::class, 'vacancy_up'])->name('vacancy_up'); |
607 | Route::get('cabinet/vacancy-eye/{ad_employer}/{status}', [EmployerController::class, 'vacancy_eye'])->name('vacancy_eye'); | 619 | Route::get('cabinet/vacancy-eye/{ad_employer}/{status}', [EmployerController::class, 'vacancy_eye'])->name('vacancy_eye'); |
608 | Route::get('cabinet/vacancy-edit/{ad_employer}', [EmployerController::class, 'vacancy_edit'])->name('vacancy_edit'); | 620 | Route::get('cabinet/vacancy-edit/{ad_employer}', [EmployerController::class, 'vacancy_edit'])->name('vacancy_edit'); |
609 | Route::post('cabinet/vacancy-edit/{ad_employer}', [EmployerController::class, 'vacancy_save_me'])->name('vacancy_save_me'); | 621 | Route::post('cabinet/vacancy-edit/{ad_employer}', [EmployerController::class, 'vacancy_save_me'])->name('vacancy_save_me'); |
610 | 622 | ||
611 | // 4.1Ю. | 623 | // 4.1Ю. |
612 | Route::get('cabinet/ad_jobs/create/{ad_employer}', [Ad_jobsController::class, 'add_job_in_vac'])->name('add_job_in_vac'); | 624 | Route::get('cabinet/ad_jobs/create/{ad_employer}', [Ad_jobsController::class, 'add_job_in_vac'])->name('add_job_in_vac'); |
613 | Route::post('cabinet/ad_jobs/create', [Ad_jobsController::class, 'add_job_in_vac_save'])->name('add_job_in_vac_save'); | 625 | Route::post('cabinet/ad_jobs/create', [Ad_jobsController::class, 'add_job_in_vac_save'])->name('add_job_in_vac_save'); |
614 | Route::get('cabinet/ad_jobs/edit/{ad_job}/{ad_employer}', [Ad_jobsController::class, 'edit_job_in_vac'])->name('edit_job_in_vac'); | 626 | Route::get('cabinet/ad_jobs/edit/{ad_job}/{ad_employer}', [Ad_jobsController::class, 'edit_job_in_vac'])->name('edit_job_in_vac'); |
615 | Route::post('cabinet/ad_jobs/edit/{ad_job}', [Ad_jobsController::class, 'edit_job_in_vac_save'])->name('edit_job_in_vac_save'); | 627 | Route::post('cabinet/ad_jobs/edit/{ad_job}', [Ad_jobsController::class, 'edit_job_in_vac_save'])->name('edit_job_in_vac_save'); |
616 | Route::get('cabinet/ad_jobs/delete/{ad_job}', [Ad_jobsController::class, 'delete_job_in_vac'])->name('delete_job_in_vac'); | 628 | Route::get('cabinet/ad_jobs/delete/{ad_job}', [Ad_jobsController::class, 'delete_job_in_vac'])->name('delete_job_in_vac'); |
617 | 629 | ||
618 | // 4 страница - Отклики на вакансии | 630 | // 4 страница - Отклики на вакансии |
619 | Route::get('cabinet/answers/{employer}', [EmployerController::class, 'answers'])->name('answers'); | 631 | Route::get('cabinet/answers/{employer}', [EmployerController::class, 'answers'])->name('answers'); |
620 | Route::get('cabinet/status/{employer}', [EmployerController::class, 'supple_status2'])->name('supple'); | 632 | Route::get('cabinet/status/{employer}', [EmployerController::class, 'supple_status2'])->name('supple'); |
621 | Route::get('status/{employer}/{ad_response}/{flag}', [EmployerController::class, 'supple_status'])->name('status_msg'); | 633 | Route::get('status/{employer}/{ad_response}/{flag}', [EmployerController::class, 'supple_status'])->name('status_msg'); |
622 | 634 | ||
623 | // 5 страница - Сообщения | 635 | // 5 страница - Сообщения |
624 | Route::get('cabinet/messages/{type_message}', [EmployerController::class, 'messages'])->name('messages'); | 636 | Route::get('cabinet/messages/{type_message}', [EmployerController::class, 'messages'])->name('messages'); |
625 | Route::get('cabinet/dialog/{chat}', [EmployerController::class, 'dialog'])->name('dialog'); | 637 | Route::get('cabinet/dialog/{chat}', [EmployerController::class, 'dialog'])->name('dialog'); |
626 | Route::post('cabinet/send-message', [EmployerController::class, 'send_message'])->name('send_message'); | 638 | Route::post('cabinet/send-message', [EmployerController::class, 'send_message'])->name('send_message'); |
627 | Route::post('test123', [EmployerController::class, 'test123'])->name('test123'); | 639 | Route::post('test123', [EmployerController::class, 'test123'])->name('test123'); |
628 | 640 | ||
629 | // 6 страница - Избранный | 641 | // 6 страница - Избранный |
630 | Route::get('cabinet/favorites', [EmployerController::class, 'favorites'])->name('favorites'); | 642 | Route::get('cabinet/favorites', [EmployerController::class, 'favorites'])->name('favorites'); |
631 | 643 | ||
632 | //7 страница - База данных | 644 | //7 страница - База данных |
633 | Route::get('cabinet/bd', [EmployerController::class, 'bd'])->name('bd'); | 645 | Route::get('cabinet/bd', [EmployerController::class, 'bd'])->name('bd'); |
634 | 646 | ||
635 | //8 страница - База резюме | 647 | //8 страница - База резюме |
636 | Route::get('cabinet/bd-tupe', [EmployerController::class, 'bd_tupe'])->name('bd-tupe'); | 648 | Route::get('cabinet/bd-tupe', [EmployerController::class, 'bd_tupe'])->name('bd-tupe'); |
637 | 649 | ||
638 | // 9 рассылка сообщений | 650 | // 9 рассылка сообщений |
639 | Route::get('cabinet/send-all-messages', [EmployerController::class, 'send_all_messages'])->name('send_all_messages'); | 651 | Route::get('cabinet/send-all-messages', [EmployerController::class, 'send_all_messages'])->name('send_all_messages'); |
640 | Route::post('cabinet/send-all-messages/send', [EmployerController::class, 'send_all_post'])->name('send_all_post'); | 652 | Route::post('cabinet/send-all-messages/send', [EmployerController::class, 'send_all_post'])->name('send_all_post'); |
641 | 653 | ||
642 | // 10 страница FAQ вопросы | 654 | // 10 страница FAQ вопрос |
643 | Route::get('cabinet/faq', [EmployerController::class, 'faq'])->name('faq'); | 655 | Route::get('cabinet/faq', [FaqController::class, 'showListForUser'])->name('faq'); |
644 | 656 | ||
645 | // 11 страница - Настройка уведомлений | 657 | // 11 страница - Настройка уведомлений |
646 | Route::get('cabinet/subscribe', [EmployerController::class, 'subscribe'])->name('subscribe'); | 658 | Route::get('cabinet/subscribe', [EmployerController::class, 'subscribe'])->name('subscribe'); |
647 | Route::get('cabinet/subscribe/save', [EmployerController::class, 'save_subscribe'])->name('save_subscribe'); | 659 | Route::get('cabinet/subscribe/save', [EmployerController::class, 'save_subscribe'])->name('save_subscribe'); |
648 | 660 | ||
649 | // 12 страница - Сменить пароль | 661 | // 12 страница - Сменить пароль |
650 | Route::get('cabinet/password-reset', [EmployerController::class, 'password_reset'])->name('password_reset'); | 662 | Route::get('cabinet/password-reset', [EmployerController::class, 'password_reset'])->name('password_reset'); |
651 | Route::get('cabinet/password-reset/new', [EmployerController::class, 'new_password'])->name('new_password'); | 663 | Route::get('cabinet/password-reset/new', [EmployerController::class, 'new_password'])->name('new_password'); |
652 | 664 | ||
653 | // 13 страница - Удаление профиля | 665 | // 13 страница - Удаление профиля |
654 | Route::get('cabinet/delete-people', [EmployerController::class, 'delete_people'])->name('delete_people'); | 666 | Route::get('cabinet/delete-people', [EmployerController::class, 'delete_people'])->name('delete_people'); |
655 | Route::get('cabinet/action-delete-people', [EmployerController::class, 'action_delete_user'])->name('action_delete_user'); | 667 | Route::get('cabinet/action-delete-people', [EmployerController::class, 'action_delete_user'])->name('action_delete_user'); |
656 | Route::get('cabinet/action-ajax-delete-people', [EmployerController::class, 'ajax_delete_user'])->name('ajax_delete_user'); | 668 | Route::get('cabinet/action-ajax-delete-people', [EmployerController::class, 'ajax_delete_user'])->name('ajax_delete_user'); |
657 | 669 | ||
658 | // Отправил сообщение | 670 | // Отправил сообщение |
659 | Route::post('сообщение/', [EmployerController::class, 'new_message'])->name('new_message'); | 671 | Route::post('сообщение/', [EmployerController::class, 'new_message'])->name('new_message'); |
660 | 672 | ||
661 | Route::post('pin_chat/', [EmployerController::class, 'pin_chat'])->name('pin_chat'); | 673 | Route::post('pin_chat/', [EmployerController::class, 'pin_chat'])->name('pin_chat'); |
662 | Route::post('remove_chat/', [EmployerController::class, 'remove_chat'])->name('remove_chat'); | 674 | Route::post('remove_chat/', [EmployerController::class, 'remove_chat'])->name('remove_chat'); |
663 | }); | 675 | }); |
664 | 676 | ||
665 | Route::get('TestWorker', [WorkerController::class, 'TestWorker'])->name('TestWorker'); | 677 | Route::get('TestWorker', [WorkerController::class, 'TestWorker'])->name('TestWorker'); |
666 | 678 | ||
667 | Route::post('send_message', [HomeController::class, 'send_message'])->name('send_message'); | 679 | Route::post('send_message', [HomeController::class, 'send_message'])->name('send_message'); |
668 | 680 | ||
669 | 681 |