Commit 8e71d994af8fcb2a13d89c41fd3396dfd36b0757
1 parent
b7b5bcec32
Exists in
master
and in
1 other branch
Обновление главной страницы
Showing 2 changed files with 9 additions and 2 deletions Inline Diff
resources/views/index.blade.php
1 | @extends('layout.frontend', ['title' => 'Главная страница РекаМоре']) | 1 | @extends('layout.frontend', ['title' => 'Главная страница РекаМоре']) |
2 | 2 | ||
3 | @section('scripts') | 3 | @section('scripts') |
4 | 4 | ||
5 | @endsection | 5 | @endsection |
6 | 6 | ||
7 | @section('content') | 7 | @section('content') |
8 | <section class="work"> | 8 | <section class="work"> |
9 | <div class="container"> | 9 | <div class="container"> |
10 | <img src="{{ asset('images/1.png') }}" alt="" class="work__pic"> | 10 | <img src="{{ asset('images/1.png') }}" alt="" class="work__pic"> |
11 | <div class="work__body"> | 11 | <div class="work__body"> |
12 | <div class="work__title"> | 12 | <div class="work__title"> |
13 | <h4>Работа в море / | 13 | <h4>Работа в море / |
14 | <span class="br">Работа на реке</span></h4> | 14 | <span class="br">Работа на реке</span></h4> |
15 | </div> | 15 | </div> |
16 | <div class="work__text">Профессиональная сеть морского сообщества «RekaMore.su» приветствует вас — | 16 | <div class="work__text">Профессиональная сеть морского сообщества «RekaMore.su» приветствует вас — |
17 | тех, кто не представляет себе жизнь без моря, тех, кто готов связать свою жизнь с работой в | 17 | тех, кто не представляет себе жизнь без моря, тех, кто готов связать свою жизнь с работой в |
18 | сложных, но очень интересных условиях. </div> | 18 | сложных, но очень интересных условиях. </div> |
19 | <div class="work__list"> | 19 | <div class="work__list"> |
20 | <div>Тысячи соискателей увидят Ваше объявление</div> | 20 | <div>Тысячи соискателей увидят Ваше объявление</div> |
21 | <div>Десятки компаний выкладывают объявления каждый день</div> | 21 | <div>Десятки компаний выкладывают объявления каждый день</div> |
22 | </div> | 22 | </div> |
23 | <form class="search work__form" action="{{ route('search_vacancies') }}" method="GET"> | 23 | <form class="search work__form" action="{{ route('search_vacancies') }}" method="GET"> |
24 | <input type="search" id="search" name="search" class="input" placeholder="Желаемая должность" required> | 24 | <input type="search" id="search" name="search" class="input" placeholder="Желаемая должность" required> |
25 | <button type="submit" class="button button_light">Посмотреть вакансии</button> | 25 | <button type="submit" class="button button_light">Посмотреть вакансии</button> |
26 | <span> | 26 | <span> |
27 | <svg> | 27 | <svg> |
28 | <use xlink:href="{{ asset('images/sprite.svg#search') }}"></use> | 28 | <use xlink:href="{{ asset('images/sprite.svg#search') }}"></use> |
29 | </svg> | 29 | </svg> |
30 | </span> | 30 | </span> |
31 | </form> | 31 | </form> |
32 | <a href="{{ route('bd_resume') }}" class="button work__search">Я ищу сотрудника</a> | 32 | <a href="{{ route('bd_resume') }}" class="button work__search">Я ищу сотрудника</a> |
33 | <div class="work__get"> | 33 | <div class="work__get"> |
34 | <b>Скачать приложение</b> | 34 | <b>Скачать приложение</b> |
35 | <a href=""> | 35 | <a href=""> |
36 | <img src="{{ asset('images/google.svg') }}" alt=""> | 36 | <img src="{{ asset('images/google.svg') }}" alt=""> |
37 | </a> | 37 | </a> |
38 | <a href=""> | 38 | <a href=""> |
39 | <img src="{{ asset('images/apple.svg') }}" alt=""> | 39 | <img src="{{ asset('images/apple.svg') }}" alt=""> |
40 | </a> | 40 | </a> |
41 | </div> | 41 | </div> |
42 | </div> | 42 | </div> |
43 | </div> | 43 | </div> |
44 | </section> | 44 | </section> |
45 | <section class="numbers"> | 45 | <section class="numbers"> |
46 | <div class="container"> | 46 | <div class="container"> |
47 | <div class="numbers__body"> | 47 | <div class="numbers__body"> |
48 | <div class="numbers__item"> | 48 | <div class="numbers__item"> |
49 | <b>500+</b> | 49 | <b>500+</b> |
50 | <span>Резюме</span> | 50 | <span>Резюме</span> |
51 | Банальные, но неопровержимые выводы, а также элементы политического процесса лишь добавляют | 51 | Банальные, но неопровержимые выводы, а также элементы политического процесса лишь добавляют |
52 | фракционных разногласий и призваны к ответу. | 52 | фракционных разногласий и призваны к ответу. |
53 | </div> | 53 | </div> |
54 | <div class="numbers__item"> | 54 | <div class="numbers__item"> |
55 | <b>1 000+</b> | 55 | <b>1 000+</b> |
56 | <span>Вакансий</span> | 56 | <span>Вакансий</span> |
57 | В рамках спецификации современных стандартов, диаграммы связей заблокированы в рамках своих | 57 | В рамках спецификации современных стандартов, диаграммы связей заблокированы в рамках своих |
58 | собственных рациональных ограничений. | 58 | собственных рациональных ограничений. |
59 | </div> | 59 | </div> |
60 | <div class="numbers__item"> | 60 | <div class="numbers__item"> |
61 | <b>265</b> | 61 | <b>265</b> |
62 | <span>Компаний</span> | 62 | <span>Компаний</span> |
63 | Но сторонники тоталитаризма в науке заблокированы в рамках своих собственных рациональных | 63 | Но сторонники тоталитаризма в науке заблокированы в рамках своих собственных рациональных |
64 | ограничений. | 64 | ограничений. |
65 | </div> | 65 | </div> |
66 | </div> | 66 | </div> |
67 | </div> | 67 | </div> |
68 | </section> | 68 | </section> |
69 | <section class="vacancies"> | 69 | <section class="vacancies"> |
70 | <div class="container"> | 70 | <div class="container"> |
71 | <div class="title"><h4>Новые вакансии</h4></div> | 71 | <div class="title"><h4>Новые вакансии</h4></div> |
72 | <div class="vacancies__body"> | 72 | <div class="vacancies__body"> |
73 | <a class="vacancies__more button button_light js-parent-toggle" href="{{ route('vacancies') }}">Все должности</a> | 73 | <a class="vacancies__more button button_light js-parent-toggle" href="{{ route('vacancies') }}">Все должности</a> |
74 | <div class="vacancies__list"> | 74 | <div class="vacancies__list"> |
75 | @if ($categories->count()) | 75 | @if ($categories->count()) |
76 | @foreach ($categories as $cat) | 76 | @foreach ($categories as $cat) |
77 | <a href="#" class="vacancies__item"> | 77 | <a href="#" class="vacancies__item"> |
78 | <span style="border-color:#F4C4C2"> | 78 | <span style="border-color:#F4C4C2"> |
79 | <b>{{ $cat->name }}</b> | 79 | <b>{{ $cat->name }}</b> |
80 | <i>Вакансий: <span>{{ $cat->cnt }}</span></i> | 80 | <i>Вакансий: <span>{{ $cat->cnt }}</span></i> |
81 | </span> | 81 | </span> |
82 | </a> | 82 | </a> |
83 | @endforeach | 83 | @endforeach |
84 | @else | 84 | @else |
85 | Тут пока нет никаких вакансий | 85 | Тут пока нет никаких вакансий |
86 | @endif | 86 | @endif |
87 | </div> | 87 | </div> |
88 | </div> | 88 | </div> |
89 | </div> | 89 | </div> |
90 | </section> | 90 | </section> |
91 | <section class="employer"> | 91 | <section class="employer"> |
92 | <div class="container"> | 92 | <div class="container"> |
93 | <div class="title"><h4>Работодатели</h4></div> | 93 | <div class="title"><h4>Работодатели</h4></div> |
94 | <div class="swiper js-employer-swiper"> | 94 | <div class="swiper js-employer-swiper"> |
95 | <div class="swiper-wrapper"> | 95 | <div class="swiper-wrapper"> |
96 | 96 | ||
97 | @if ($employers->count()) | 97 | @if ($employers->count()) |
98 | @php | 98 | @php |
99 | $rec = 0; | 99 | $rec = 0; |
100 | $count = $employers->count(); | 100 | $count = $employers->count(); |
101 | @endphp | 101 | @endphp |
102 | @foreach($employers as $emp) | 102 | @foreach($employers as $emp) |
103 | @php $rec++ @endphp | 103 | @php $rec++ @endphp |
104 | @if (($rec==1) || ($rec==5) || ($rec==9) || ($rec==13) || ($rec==17)) | 104 | @if (($rec==1) || ($rec==5) || ($rec==9) || ($rec==13) || ($rec==17)) |
105 | <div class="swiper-slide"> | 105 | <div class="swiper-slide"> |
106 | <div class="employer__item"> | 106 | <div class="employer__item"> |
107 | @endif | 107 | @endif |
108 | @if (!empty($emp->logo)) | 108 | @if (!empty($emp->logo)) |
109 | <a href="{{ route('ad-employer', ['ad_employer' => $emp->id]) }}"> | 109 | <a href="{{ route('ad-employer', ['ad_employer' => $emp->id]) }}"> |
110 | <img src="{{ asset(Storage::url($emp->logo)) }}" alt="{{ $emp->name_company }}"> | 110 | <img src="{{ asset(Storage::url($emp->logo)) }}" alt="{{ $emp->name_company }}"> |
111 | </a> | 111 | </a> |
112 | @else | 112 | @else |
113 | <a href="{{ route('ad-employer', ['ad_employer' => $emp->id]) }}"> | 113 | <a href="{{ route('ad-employer', ['ad_employer' => $emp->id]) }}"> |
114 | <img src="{{ asset('images/logo_emp.png') }}" alt="{{ $emp->name_company }}"> | 114 | <img src="{{ asset('images/logo_emp.png') }}" alt="{{ $emp->name_company }}"> |
115 | </a> | 115 | </a> |
116 | @endif | 116 | @endif |
117 | @if (($rec==4) || ($rec==8) || ($rec==12) || ($rec==16) || ($rec==20) || ($rec == $count)) | 117 | @if (($rec==4) || ($rec==8) || ($rec==12) || ($rec==16) || ($rec==20) || ($rec == $count)) |
118 | </div> | 118 | </div> |
119 | </div> | 119 | </div> |
120 | @endif | 120 | @endif |
121 | @endforeach | 121 | @endforeach |
122 | @else | 122 | @else |
123 | <h5>Тут нет никаких записей</h5> | 123 | <h5>Тут нет никаких записей</h5> |
124 | @endif | 124 | @endif |
125 | </div> | 125 | </div> |
126 | <div class="swiper-pagination"></div> | 126 | <div class="swiper-pagination"></div> |
127 | </div> | 127 | </div> |
128 | <a href="{{ route('shipping_companies') }}" class="employer__more button button_light">Все работодатели</a> | 128 | <a href="{{ route('shipping_companies') }}" class="employer__more button button_light">Все работодатели</a> |
129 | </div> | 129 | </div> |
130 | </section> | 130 | </section> |
131 | <section class="about"> | 131 | <section class="about"> |
132 | <div class="container"> | 132 | <div class="container"> |
133 | <div class="about__wrapper"> | 133 | <div class="about__wrapper"> |
134 | <div class="title about__title"><h4>О нас</h4></div> | 134 | <div class="title about__title"><h4>О нас</h4></div> |
135 | <div class="about__body"> | 135 | <div class="about__body"> |
136 | <div class="about__line"></div> | 136 | <div class="about__line"></div> |
137 | <div class="about__item"> | 137 | <div class="about__item"> |
138 | <b>Для работодателей</b> | 138 | <b>Для работодателей</b> |
139 | <span>Наш ресурс позволит Вам за демократичную цену найти нужных специалистов в кратчайшие | 139 | <span>Наш ресурс позволит Вам за демократичную цену найти нужных специалистов в кратчайшие |
140 | сроки, подробнее об условиях можно узнать <a href="{{ route('page', ['pages' => 'Stoimost-razmescheniya']) }}">здесь</a>.</span> | 140 | сроки, подробнее об условиях можно узнать <a href="{{ route('page', ['pages' => 'Stoimost-razmescheniya']) }}">здесь</a>.</span> |
141 | <a class="about__button button button_whited" style="text-decoration: none" href="{{ route('bd_resume') }}">Поиск сотрудников</a> | 141 | <a class="about__button button button_whited" style="text-decoration: none" href="{{ route('bd_resume') }}">Поиск сотрудников</a> |
142 | </div> | 142 | </div> |
143 | <div class="about__item"> | 143 | <div class="about__item"> |
144 | <b>Для сотрудников</b> | 144 | <b>Для сотрудников</b> |
145 | <span>Наше преимущество — это большой объем вакансий, более 70 судоходных компаний России и | 145 | <span>Наше преимущество — это большой объем вакансий, более 70 судоходных компаний России и |
146 | СНГ ищут сотрудников через наши ресурсы</span> | 146 | СНГ ищут сотрудников через наши ресурсы</span> |
147 | <a class="about__button button button_whited" style="text-decoration: none" href="{{ route('vacancies') }}">Ищу работу</a> | 147 | <a class="about__button button button_whited" style="text-decoration: none" href="{{ route('vacancies') }}">Ищу работу</a> |
148 | </div> | 148 | </div> |
149 | </div> | 149 | </div> |
150 | </div> | 150 | </div> |
151 | </div> | 151 | </div> |
152 | </section> | 152 | </section> |
153 | |||
154 | @if ($news->count()) | ||
153 | <section class="news"> | 155 | <section class="news"> |
154 | <div class="container"> | 156 | <div class="container"> |
155 | <div class="news__toper"> | 157 | <div class="news__toper"> |
156 | <div class="title"><h4>Новости и статьи</h4></div> | 158 | <div class="title"><h4>Новости и статьи</h4></div> |
157 | <div class="navs"> | 159 | <div class="navs"> |
158 | <button class="js-news-swiper-button-prev"> | 160 | <button class="js-news-swiper-button-prev"> |
159 | <svg class="rotate180"> | 161 | <svg class="rotate180"> |
160 | <use xlink:href="{{ asset('images/sprite.svg#arrow') }}"></use> | 162 | <use xlink:href="{{ asset('images/sprite.svg#arrow') }}"></use> |
161 | </svg> | 163 | </svg> |
162 | </button> | 164 | </button> |
163 | <button class="js-news-swiper-button-next"> | 165 | <button class="js-news-swiper-button-next"> |
164 | <svg> | 166 | <svg> |
165 | <use xlink:href="{{ asset('images/sprite.svg#arrow') }}"></use> | 167 | <use xlink:href="{{ asset('images/sprite.svg#arrow') }}"></use> |
166 | </svg> | 168 | </svg> |
167 | </button> | 169 | </button> |
168 | </div> | 170 | </div> |
169 | </div> | 171 | </div> |
172 | |||
170 | <div class="swiper js-news-swiper"> | 173 | <div class="swiper js-news-swiper"> |
171 | <div class="swiper-wrapper"> | 174 | <div class="swiper-wrapper"> |
172 | @if ($news->count()) | 175 | |
173 | @foreach ($news as $new) | 176 | @foreach ($news as $new) |
174 | <div class="swiper-slide"> | 177 | <div class="swiper-slide"> |
175 | <div class="news__item"> | 178 | <div class="news__item"> |
176 | <img src="{{ asset(Storage::url($new->image)) }}" alt="" class="news__item-pic"> | 179 | <img src="{{ asset(Storage::url($new->image)) }}" alt="" class="news__item-pic"> |
177 | <div class="news__item-body"> | 180 | <div class="news__item-body"> |
178 | <time datetime="2023-05-01" class="news__item-date">{{ $new->created_at }}</time> | 181 | <time datetime="2023-05-01" class="news__item-date">{{ $new->created_at }}</time> |
179 | <span class="news__item-title">{{ $new->title }}</span> | 182 | <span class="news__item-title">{{ $new->title }}</span> |
180 | <span class="news__item-text">{{ mb_strimwidth($new->text, 0, 100) }}</span> | 183 | <span class="news__item-text">{{ mb_strimwidth($new->text, 0, 100) }}</span> |
181 | <a href="{{ route('detail_new', ['new' => $new->id]) }}" class="news__item-more button button_light">Читать далее</a> | 184 | <a href="{{ route('detail_new', ['new' => $new->id]) }}" class="news__item-more button button_light">Читать далее</a> |
182 | </div> | 185 | </div> |
183 | </div> | 186 | </div> |
184 | </div> | 187 | </div> |
185 | @endforeach | 188 | @endforeach |
186 | @endif | 189 | |
187 | </div> | 190 | </div> |
188 | <div class="swiper-pagination"></div> | 191 | <div class="swiper-pagination"></div> |
189 | </div> | 192 | </div> |
190 | <a href="{{ route('news') }}" class="news__all button button_light">Все новости</a> | 193 | <a href="{{ route('news') }}" class="news__all button button_light">Все новости</a> |
194 | |||
191 | </div> | 195 | </div> |
192 | </section> | 196 | </section> |
197 | @endif | ||
198 | |||
193 | <section class="info"> | 199 | <section class="info"> |
194 | <div class="container"> | 200 | <div class="container"> |
195 | <img src="images/5.png" alt="" class="info__pic"> | 201 | <img src="images/5.png" alt="" class="info__pic"> |
196 | <div class="info__body"> | 202 | <div class="info__body"> |
197 | <div class="title info__title"><h4>Мы в социальных сетях</h4></div> | 203 | <div class="title info__title"><h4>Мы в социальных сетях</h4></div> |
198 | <div class="info__item"> | 204 | <div class="info__item"> |
199 | <div class="info__text">Телеграм — Подпишитесь на наш телеграм канал и получайте уведомления о | 205 | <div class="info__text">Телеграм — Подпишитесь на наш телеграм канал и получайте уведомления о |
200 | новых вакансиях прямо на свой смартфон</div> | 206 | новых вакансиях прямо на свой смартфон</div> |
201 | <a href="{{ $companies[0]->telegram }}" class="info__link" style="background:#20A0E1"> | 207 | <a href="{{ $companies[0]->telegram }}" class="info__link" style="background:#20A0E1"> |
202 | <svg> | 208 | <svg> |
203 | <use xlink:href="{{ asset('images/sprite.svg#tg') }}"></use> | 209 | <use xlink:href="{{ asset('images/sprite.svg#tg') }}"></use> |
204 | </svg> | 210 | </svg> |
205 | Телеграм | 211 | Телеграм |
206 | </a> | 212 | </a> |
207 | </div> | 213 | </div> |
208 | <div class="info__item"> | 214 | <div class="info__item"> |
209 | <div class="info__text">ВКонтакте — Лучшие вакансии за неделю выкладываем именно тут, информация | 215 | <div class="info__text">ВКонтакте — Лучшие вакансии за неделю выкладываем именно тут, информация |
210 | о судоходных компаниях, инструкции по работе с сайтом, конкурсы и многое другое</div> | 216 | о судоходных компаниях, инструкции по работе с сайтом, конкурсы и многое другое</div> |
211 | <a href="{{ $companies[0]->vkontact }}" class="info__link" style="background:#2787F5"> | 217 | <a href="{{ $companies[0]->vkontact }}" class="info__link" style="background:#2787F5"> |
212 | <svg> | 218 | <svg> |
213 | <use xlink:href="{{ asset('images/sprite.svg#vk') }}"></use> | 219 | <use xlink:href="{{ asset('images/sprite.svg#vk') }}"></use> |
214 | </svg> | 220 | </svg> |
215 | ВКонтакте | 221 | ВКонтакте |
216 | </a> | 222 | </a> |
217 | </div> | 223 | </div> |
218 | </div> | 224 | </div> |
219 | </div> | 225 | </div> |
220 | </section> | 226 | </section> |
221 | @endsection | 227 | @endsection |
222 | 228 |
routes/web.php
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | use App\Http\Controllers\AdEmployerController; | 3 | use App\Http\Controllers\AdEmployerController; |
4 | use App\Http\Controllers\Admin\AdminController; | 4 | use App\Http\Controllers\Admin\AdminController; |
5 | use App\Http\Controllers\Admin\CategoryController; | 5 | use App\Http\Controllers\Admin\CategoryController; |
6 | use App\Http\Controllers\Admin\CategoryEmpController; | 6 | use App\Http\Controllers\Admin\CategoryEmpController; |
7 | use App\Http\Controllers\Admin\EducationController; | 7 | use App\Http\Controllers\Admin\EducationController; |
8 | use App\Http\Controllers\Admin\EmployersController; | 8 | use App\Http\Controllers\Admin\EmployersController; |
9 | use App\Http\Controllers\EmployerController as FrontEmployersController; | 9 | use App\Http\Controllers\EmployerController as FrontEmployersController; |
10 | use App\Http\Controllers\Admin\InfoBloksController; | 10 | use App\Http\Controllers\Admin\InfoBloksController; |
11 | use App\Http\Controllers\Admin\JobTitlesController; | 11 | use App\Http\Controllers\Admin\JobTitlesController; |
12 | use App\Http\Controllers\Admin\UsersController; | 12 | use App\Http\Controllers\Admin\UsersController; |
13 | use App\Http\Controllers\Admin\WorkersController; | 13 | use App\Http\Controllers\Admin\WorkersController; |
14 | use App\Http\Controllers\Auth\ForgotPasswordController; | 14 | use App\Http\Controllers\Auth\ForgotPasswordController; |
15 | use App\Http\Controllers\Auth\LoginController; | 15 | use App\Http\Controllers\Auth\LoginController; |
16 | use App\Http\Controllers\Auth\RegisterController; | 16 | use App\Http\Controllers\Auth\RegisterController; |
17 | use App\Http\Controllers\CKEditorController; | 17 | use App\Http\Controllers\CKEditorController; |
18 | use App\Http\Controllers\MediaController; | 18 | use App\Http\Controllers\MediaController; |
19 | use App\Http\Controllers\WorkerController; | 19 | use App\Http\Controllers\WorkerController; |
20 | use App\Models\User; | 20 | use App\Models\User; |
21 | use App\Http\Controllers\MainController; | 21 | use App\Http\Controllers\MainController; |
22 | use App\Http\Controllers\HomeController; | 22 | use App\Http\Controllers\HomeController; |
23 | use Illuminate\Support\Facades\Route; | 23 | use Illuminate\Support\Facades\Route; |
24 | use App\Http\Controllers\Admin\CompanyController; | 24 | use App\Http\Controllers\Admin\CompanyController; |
25 | use App\Http\Controllers\Admin\Ad_EmployersController; | 25 | use App\Http\Controllers\Admin\Ad_EmployersController; |
26 | use App\Http\Controllers\Admin\MsgAnswersController; | 26 | use App\Http\Controllers\Admin\MsgAnswersController; |
27 | use App\Http\Controllers\Admin\GroupsController; | 27 | use App\Http\Controllers\Admin\GroupsController; |
28 | use App\Http\Controllers\PagesController; | 28 | use App\Http\Controllers\PagesController; |
29 | use Illuminate\Support\Facades\Storage; | 29 | use Illuminate\Support\Facades\Storage; |
30 | use App\Http\Controllers\EmployerController; | 30 | use App\Http\Controllers\EmployerController; |
31 | use App\Http\Controllers\CompanyController as FrontCompanyController; | 31 | use App\Http\Controllers\CompanyController as FrontCompanyController; |
32 | 32 | ||
33 | 33 | ||
34 | /* | 34 | /* |
35 | |-------------------------------------------------------------------------- | 35 | |-------------------------------------------------------------------------- |
36 | | Web Routes | 36 | | Web Routes |
37 | |-------------------------------------------------------------------------- | 37 | |-------------------------------------------------------------------------- |
38 | | | 38 | | |
39 | | Here is where you can register web routes for your application. These | 39 | | Here is where you can register web routes for your application. These |
40 | | routes are loaded by the RouteServiceProvider within a group which | 40 | | routes are loaded by the RouteServiceProvider within a group which |
41 | | contains the "web" middleware group. Now create something great! | 41 | | contains the "web" middleware group. Now create something great! |
42 | | | 42 | | |
43 | */ | 43 | */ |
44 | /* | 44 | /* |
45 | Route::get('/', function () { | 45 | Route::get('/', function () { |
46 | return view('welcome'); | 46 | return view('welcome'); |
47 | })->name('index'); | 47 | })->name('index'); |
48 | */ | 48 | */ |
49 | |||
49 | Route::get('/', [MainController::class, 'index'])->name('index'); | 50 | Route::get('/', [MainController::class, 'index'])->name('index'); |
50 | 51 | ||
51 | //Роуты авторизации, регистрации, восстановления, аутентификации | 52 | //Роуты авторизации, регистрации, восстановления, аутентификации |
52 | Auth::routes(['verify' => true]); | 53 | Auth::routes(['verify' => true]); |
53 | 54 | ||
54 | // роуты регистрации, авторизации, восстановления пароля, верификации почты | 55 | // роуты регистрации, авторизации, восстановления пароля, верификации почты |
55 | /*Route::group([ | 56 | /*Route::group([ |
56 | 'as' => 'auth.', //имя маршрута, например auth.index | 57 | 'as' => 'auth.', //имя маршрута, например auth.index |
57 | 'prefix' => 'auth', // префикс маршрута, например, auth/index | 58 | 'prefix' => 'auth', // префикс маршрута, например, auth/index |
58 | ], function () { | 59 | ], function () { |
59 | //форма регистрации | 60 | //форма регистрации |
60 | Route::get('register', [RegisterController::class, 'register'])->name('register'); | 61 | Route::get('register', [RegisterController::class, 'register'])->name('register'); |
61 | 62 | ||
62 | //создание пользователя | 63 | //создание пользователя |
63 | Route::post('register', [RegisterController::class, 'create'])->name('create'); | 64 | Route::post('register', [RegisterController::class, 'create'])->name('create'); |
64 | 65 | ||
65 | //форма входа авторизации | 66 | //форма входа авторизации |
66 | Route::get('login', [LoginController::class, 'login'])->name('login'); | 67 | Route::get('login', [LoginController::class, 'login'])->name('login'); |
67 | 68 | ||
68 | //аутентификация | 69 | //аутентификация |
69 | Route::post('login', [LoginController::class, 'authenticate'])->name('auth'); | 70 | Route::post('login', [LoginController::class, 'authenticate'])->name('auth'); |
70 | 71 | ||
71 | //выход | 72 | //выход |
72 | Route::get('logout', [LoginController::class, 'logout'])->name('logout'); | 73 | Route::get('logout', [LoginController::class, 'logout'])->name('logout'); |
73 | 74 | ||
74 | //форма ввода адреса почты | 75 | //форма ввода адреса почты |
75 | Route::get('forgot-password', [ForgotPasswordController::class, 'form'])->name('forgot-form'); | 76 | Route::get('forgot-password', [ForgotPasswordController::class, 'form'])->name('forgot-form'); |
76 | 77 | ||
77 | //письмо на почту | 78 | //письмо на почту |
78 | Route::post('forgot-password', [ForgotPasswordController::class, 'mail'])->name('forgot-mail'); | 79 | Route::post('forgot-password', [ForgotPasswordController::class, 'mail'])->name('forgot-mail'); |
79 | 80 | ||
80 | //форма восстановления пароля | 81 | //форма восстановления пароля |
81 | Route::get('reset-password/token/{token}/email/{email}', | 82 | Route::get('reset-password/token/{token}/email/{email}', |
82 | [ResetPasswordController::class, 'form'] | 83 | [ResetPasswordController::class, 'form'] |
83 | )->name('reset-form'); | 84 | )->name('reset-form'); |
84 | 85 | ||
85 | //восстановление пароля | 86 | //восстановление пароля |
86 | Route::post('reset-password', | 87 | Route::post('reset-password', |
87 | [ResetPasswordController::class, 'reset'] | 88 | [ResetPasswordController::class, 'reset'] |
88 | )->name('reset-password'); | 89 | )->name('reset-password'); |
89 | 90 | ||
90 | //сообщение о необходимости проверки адреса почты | 91 | //сообщение о необходимости проверки адреса почты |
91 | Route::get('verify-message', [VerifyEmailController::class, 'message'])->name('verify-message'); | 92 | Route::get('verify-message', [VerifyEmailController::class, 'message'])->name('verify-message'); |
92 | 93 | ||
93 | //подтверждение адреса почты нового пользователя | 94 | //подтверждение адреса почты нового пользователя |
94 | Route::get('verify-email/token/{token}/id/{id}', [VerifyEmailController::class, 'verify']) | 95 | Route::get('verify-email/token/{token}/id/{id}', [VerifyEmailController::class, 'verify']) |
95 | ->where('token', '[a-f0-9]{32}') | 96 | ->where('token', '[a-f0-9]{32}') |
96 | ->where('id', '[0-9]+') | 97 | ->where('id', '[0-9]+') |
97 | ->name('verify-email'); | 98 | ->name('verify-email'); |
98 | });*/ | 99 | });*/ |
99 | 100 | ||
100 | //Личный кабинет пользователя | 101 | //Личный кабинет пользователя |
101 | Route::get('/home', [HomeController::class, 'index'])->name('home'); | 102 | Route::get('/home', [HomeController::class, 'index'])->name('home'); |
102 | 103 | ||
103 | /* | 104 | /* |
104 | Route::post('resend/verification-email', function (\Illuminate\Http\Request $request) { | 105 | Route::post('resend/verification-email', function (\Illuminate\Http\Request $request) { |
105 | $user = User::where('email',$request->input('email'))->first(); | 106 | $user = User::where('email',$request->input('email'))->first(); |
106 | 107 | ||
107 | $user->sendEmailVerificationNotification(); | 108 | $user->sendEmailVerificationNotification(); |
108 | 109 | ||
109 | return 'your response'; | 110 | return 'your response'; |
110 | })->middleware('throttle:6,1')->name('verification.resend'); | 111 | })->middleware('throttle:6,1')->name('verification.resend'); |
111 | */ | 112 | */ |
112 | 113 | ||
113 | // Авторизация, регистрация в админку | 114 | // Авторизация, регистрация в админку |
114 | Route::group([ | 115 | Route::group([ |
115 | 'as' => 'admin.', // имя маршрута, например auth.index | 116 | 'as' => 'admin.', // имя маршрута, например auth.index |
116 | 'prefix' => 'admin', // префикс маршрута, например auth/index | 117 | 'prefix' => 'admin', // префикс маршрута, например auth/index |
117 | 'middleware' => ['guest'], | 118 | 'middleware' => ['guest'], |
118 | ], function () { | 119 | ], function () { |
119 | // Форма регистрации | 120 | // Форма регистрации |
120 | Route::get('register', [AdminController::class, 'register'])->name('register'); | 121 | Route::get('register', [AdminController::class, 'register'])->name('register'); |
121 | // Создание пользователя | 122 | // Создание пользователя |
122 | Route::post('register', [AdminController::class, 'create'])->name('create'); | 123 | Route::post('register', [AdminController::class, 'create'])->name('create'); |
123 | 124 | ||
124 | //Форма входа | 125 | //Форма входа |
125 | Route::get('login', [AdminController::class, 'login'])->name('login'); | 126 | Route::get('login', [AdminController::class, 'login'])->name('login'); |
126 | 127 | ||
127 | // аутентификация | 128 | // аутентификация |
128 | Route::post('login', [AdminController::class, 'autenticate'])->name('auth'); | 129 | Route::post('login', [AdminController::class, 'autenticate'])->name('auth'); |
129 | 130 | ||
130 | }); | 131 | }); |
131 | 132 | ||
132 | // Личный кабинет админки | 133 | // Личный кабинет админки |
133 | Route::group([ | 134 | Route::group([ |
134 | 'as' => 'admin.', // имя маршрута, например auth.index | 135 | 'as' => 'admin.', // имя маршрута, например auth.index |
135 | 'prefix' => 'admin', // префикс маршрута, например auth/index | 136 | 'prefix' => 'admin', // префикс маршрута, например auth/index |
136 | 'middleware' => ['auth'], ['admin'], | 137 | 'middleware' => ['auth'], ['admin'], |
137 | ], function() { | 138 | ], function() { |
138 | 139 | ||
139 | // выход | 140 | // выход |
140 | Route::get('logout', [AdminController::class, 'logout'])->name('logout'); | 141 | Route::get('logout', [AdminController::class, 'logout'])->name('logout'); |
141 | 142 | ||
142 | // кабинет главная страница | 143 | // кабинет главная страница |
143 | Route::get('cabinet', [AdminController::class, 'index'])->name('index'); | 144 | Route::get('cabinet', [AdminController::class, 'index'])->name('index'); |
144 | 145 | ||
145 | // кабинет профиль админа - форма | 146 | // кабинет профиль админа - форма |
146 | Route::get('profile', [AdminController::class, 'profile'])->name('profile'); | 147 | Route::get('profile', [AdminController::class, 'profile'])->name('profile'); |
147 | // кабинет профиль админа - сохранение формы | 148 | // кабинет профиль админа - сохранение формы |
148 | Route::post('profile', [AdminController::class, 'store_profile'])->name('store_profile'); | 149 | Route::post('profile', [AdminController::class, 'store_profile'])->name('store_profile'); |
149 | 150 | ||
150 | //кабинет сообщения админа | 151 | //кабинет сообщения админа |
151 | //Route::get('messages', [AdminController::class, 'profile'])->name('profile'); | 152 | //Route::get('messages', [AdminController::class, 'profile'])->name('profile'); |
152 | 153 | ||
153 | 154 | ||
154 | // кабинет профиль - форма пароли | 155 | // кабинет профиль - форма пароли |
155 | Route::get('password', [AdminController::class, 'profile_password'])->name('password'); | 156 | Route::get('password', [AdminController::class, 'profile_password'])->name('password'); |
156 | // кабинет профиль - сохранение формы пароля | 157 | // кабинет профиль - сохранение формы пароля |
157 | Route::post('password', [AdminController::class, 'profile_password_new'])->name('password'); | 158 | Route::post('password', [AdminController::class, 'profile_password_new'])->name('password'); |
158 | 159 | ||
159 | 160 | ||
160 | // кабинет профиль пользователя - форма | 161 | // кабинет профиль пользователя - форма |
161 | Route::get('user-profile/{user}', [AdminController::class, 'profile_user'])->name('user-profile'); | 162 | Route::get('user-profile/{user}', [AdminController::class, 'profile_user'])->name('user-profile'); |
162 | // кабинет профиль пользователя - сохранение формы | 163 | // кабинет профиль пользователя - сохранение формы |
163 | Route::post('user-profile/{user}', [AdminController::class, 'store_profile_user'])->name('user-store_profile'); | 164 | Route::post('user-profile/{user}', [AdminController::class, 'store_profile_user'])->name('user-store_profile'); |
164 | 165 | ||
165 | // кабинет профиль работодатель - форма | 166 | // кабинет профиль работодатель - форма |
166 | Route::get('employer-profile/{employer}', [EmployersController::class, 'form_update_employer'])->name('employer-profile'); | 167 | Route::get('employer-profile/{employer}', [EmployersController::class, 'form_update_employer'])->name('employer-profile'); |
167 | // кабинет профиль работодатель - сохранение формы | 168 | // кабинет профиль работодатель - сохранение формы |
168 | Route::post('employer-profile/{employer}', [EmployersController::class, 'update_employer'])->name('update-employer-profile'); | 169 | Route::post('employer-profile/{employer}', [EmployersController::class, 'update_employer'])->name('update-employer-profile'); |
169 | // кабинет удаление профиль работодателя и юзера | 170 | // кабинет удаление профиль работодателя и юзера |
170 | Route::delete('employers/delete/{employer}/{user}', [EmployersController::class, 'delete_employer'])->name('delete-employer'); | 171 | Route::delete('employers/delete/{employer}/{user}', [EmployersController::class, 'delete_employer'])->name('delete-employer'); |
171 | 172 | ||
172 | // кабинет профиль работник - форма | 173 | // кабинет профиль работник - форма |
173 | Route::get('worker-profile/add/{user}', [WorkersController::class, 'form_add_worker'])->name('worker-profile-add'); | 174 | Route::get('worker-profile/add/{user}', [WorkersController::class, 'form_add_worker'])->name('worker-profile-add'); |
174 | Route::post('worker-profile/add/{user}', [WorkersController::class, 'form_store_worker'])->name('worker-profile-store'); | 175 | Route::post('worker-profile/add/{user}', [WorkersController::class, 'form_store_worker'])->name('worker-profile-store'); |
175 | Route::get('worker-profile/{worker}', [WorkersController::class, 'form_edit_worker'])->name('worker-profile-edit'); | 176 | Route::get('worker-profile/{worker}', [WorkersController::class, 'form_edit_worker'])->name('worker-profile-edit'); |
176 | // кабинет профиль работник - сохранение формы | 177 | // кабинет профиль работник - сохранение формы |
177 | Route::post('worker-profile/{worker}', [WorkersController::class, 'form_update_worker'])->name('worker-profile-update'); | 178 | Route::post('worker-profile/{worker}', [WorkersController::class, 'form_update_worker'])->name('worker-profile-update'); |
178 | 179 | ||
179 | // Медиа | 180 | // Медиа |
180 | Route::get('media', [MediaController::class, 'index'])->name('media'); | 181 | Route::get('media', [MediaController::class, 'index'])->name('media'); |
181 | Route::delete('media/{media}', [MediaController::class, 'delete'])->name('delete-media'); | 182 | Route::delete('media/{media}', [MediaController::class, 'delete'])->name('delete-media'); |
182 | 183 | ||
183 | // кабинет настройки сайта - форма | 184 | // кабинет настройки сайта - форма |
184 | Route::get('config', [AdminController::class, 'config_form'])->name('config'); | 185 | Route::get('config', [AdminController::class, 'config_form'])->name('config'); |
185 | // кабинет настройки сайта сохранение формы | 186 | // кабинет настройки сайта сохранение формы |
186 | Route::post('config', [AdminController::class, 'store_config'])->name('store_config'); | 187 | Route::post('config', [AdminController::class, 'store_config'])->name('store_config'); |
187 | 188 | ||
188 | // кабинет - пользователи | 189 | // кабинет - пользователи |
189 | Route::get('users', [UsersController::class, 'index'])->name('users'); | 190 | Route::get('users', [UsersController::class, 'index'])->name('users'); |
190 | 191 | ||
191 | // кабинет - пользователи | 192 | // кабинет - пользователи |
192 | Route::get('admin-users', [AdminController::class, 'index_admin'])->name('admin-users'); | 193 | Route::get('admin-users', [AdminController::class, 'index_admin'])->name('admin-users'); |
193 | 194 | ||
194 | // кабинет - работодатели | 195 | // кабинет - работодатели |
195 | Route::get('employers', [EmployersController::class, 'index'])->name('employers'); | 196 | Route::get('employers', [EmployersController::class, 'index'])->name('employers'); |
196 | 197 | ||
197 | Route::get('employers/comment/{employer}', [EmployersController::class, 'comment_read'])->name('comment-employer'); | 198 | Route::get('employers/comment/{employer}', [EmployersController::class, 'comment_read'])->name('comment-employer'); |
198 | 199 | ||
199 | Route::get('flot/add/{employer}', [EmployersController::class, 'add_flot'])->name('flot_add'); | 200 | Route::get('flot/add/{employer}', [EmployersController::class, 'add_flot'])->name('flot_add'); |
200 | Route::post('flot/add', [EmployersController::class, 'save_add_flot'])->name('flot_add_save'); | 201 | Route::post('flot/add', [EmployersController::class, 'save_add_flot'])->name('flot_add_save'); |
201 | Route::get('flot/{flot}/{employer}', [EmployersController::class, 'edit_flot'])->name('flot'); | 202 | Route::get('flot/{flot}/{employer}', [EmployersController::class, 'edit_flot'])->name('flot'); |
202 | Route::put('flot/{flot}', [EmployersController::class, 'edit_save_flot'])->name('flot_edit'); | 203 | Route::put('flot/{flot}', [EmployersController::class, 'edit_save_flot'])->name('flot_edit'); |
203 | Route::get('flot/{flot}/{employer_id}/delete', [EmployersController::class, 'delete_flot'])->name('flot_delete'); | 204 | Route::get('flot/{flot}/{employer_id}/delete', [EmployersController::class, 'delete_flot'])->name('flot_delete'); |
204 | 205 | ||
205 | // кабинет - соискатели | 206 | // кабинет - соискатели |
206 | Route::get('workers', [WorkersController::class, 'index'])->name('workers'); | 207 | Route::get('workers', [WorkersController::class, 'index'])->name('workers'); |
207 | 208 | ||
208 | // кабинет - база данных | 209 | // кабинет - база данных |
209 | Route::get('basedata', [UsersController::class, 'index_bd'])->name('basedata'); | 210 | Route::get('basedata', [UsersController::class, 'index_bd'])->name('basedata'); |
210 | Route::get('basedata/add', [UsersController::class, 'add_bd'])->name('add-basedata'); | 211 | Route::get('basedata/add', [UsersController::class, 'add_bd'])->name('add-basedata'); |
211 | Route::post('basedata/add', [UsersController::class, 'add_store_bd'])->name('add-store-basedata'); | 212 | Route::post('basedata/add', [UsersController::class, 'add_store_bd'])->name('add-store-basedata'); |
212 | Route::get('basedata/edit/{user}', [UsersController::class, 'edit_bd'])->name('edit-basedata'); | 213 | Route::get('basedata/edit/{user}', [UsersController::class, 'edit_bd'])->name('edit-basedata'); |
213 | Route::put('basedata/edit/{user}', [UsersController::class, 'update_bd'])->name('update-basedata'); | 214 | Route::put('basedata/edit/{user}', [UsersController::class, 'update_bd'])->name('update-basedata'); |
214 | Route::delete('basedata/delete/{user}', [UsersController::class, 'destroy_bd'])->name('delete-basedata'); | 215 | Route::delete('basedata/delete/{user}', [UsersController::class, 'destroy_bd'])->name('delete-basedata'); |
215 | Route::get('basedata/doc/{user}', [UsersController::class, 'doc_bd'])->name('doc-basedata'); | 216 | Route::get('basedata/doc/{user}', [UsersController::class, 'doc_bd'])->name('doc-basedata'); |
216 | 217 | ||
217 | // кабинет - вакансии | 218 | // кабинет - вакансии |
218 | Route::get('ad-employers', [Ad_EmployersController::class, 'index'])->name('ad-employers'); | 219 | Route::get('ad-employers', [Ad_EmployersController::class, 'index'])->name('ad-employers'); |
219 | Route::get('ad-employers/add', [Ad_EmployersController::class, 'create'])->name('add-ad-employers'); | 220 | Route::get('ad-employers/add', [Ad_EmployersController::class, 'create'])->name('add-ad-employers'); |
220 | Route::post('ad-employers/add', [Ad_EmployersController::class, 'store'])->name('store-ad-employers'); | 221 | Route::post('ad-employers/add', [Ad_EmployersController::class, 'store'])->name('store-ad-employers'); |
221 | Route::get('ad-employers/edit/{ad_employer}', [Ad_EmployersController::class, 'edit'])->name('edit-ad-employers'); | 222 | Route::get('ad-employers/edit/{ad_employer}', [Ad_EmployersController::class, 'edit'])->name('edit-ad-employers'); |
222 | Route::post('ad-employers/edit/{ad_employer}', [Ad_EmployersController::class, 'update'])->name('update-ad-employers'); | 223 | Route::post('ad-employers/edit/{ad_employer}', [Ad_EmployersController::class, 'update'])->name('update-ad-employers'); |
223 | Route::delete('ad-employers/delete/{ad_employer}', [Ad_EmployersController::class, 'destroy'])->name('delete-ad-employer'); | 224 | Route::delete('ad-employers/delete/{ad_employer}', [Ad_EmployersController::class, 'destroy'])->name('delete-ad-employer'); |
224 | 225 | ||
225 | // Редактирование должности в вакансии | 226 | // Редактирование должности в вакансии |
226 | Route::put('update-jobs/{ad_jobs}', [Ad_EmployersController::class, 'update_ad_jobs'])->name('update_jobs'); | 227 | Route::put('update-jobs/{ad_jobs}', [Ad_EmployersController::class, 'update_ad_jobs'])->name('update_jobs'); |
227 | Route::get('edit-jobs/{ad_jobs}', [Ad_EmployersController::class, 'edit_jobs'])->name('edit_jobs'); | 228 | Route::get('edit-jobs/{ad_jobs}', [Ad_EmployersController::class, 'edit_jobs'])->name('edit_jobs'); |
228 | 229 | ||
229 | 230 | ||
230 | // кабинет - категории | 231 | // кабинет - категории |
231 | //Route::get('categories', [AdminController::class, 'index'])->name('categories'); | 232 | //Route::get('categories', [AdminController::class, 'index'])->name('categories'); |
232 | /* | 233 | /* |
233 | * CRUD-операции над Справочником Категории | 234 | * CRUD-операции над Справочником Категории |
234 | */ | 235 | */ |
235 | Route::resource('categories', CategoryController::class, ['except' => ['show']]); | 236 | Route::resource('categories', CategoryController::class, ['except' => ['show']]); |
236 | 237 | ||
237 | // CRUD-операции над справочником Категории для работодателей | 238 | // CRUD-операции над справочником Категории для работодателей |
238 | Route::resource('category-emp', CategoryEmpController::class, ['except' => ['show']]); | 239 | Route::resource('category-emp', CategoryEmpController::class, ['except' => ['show']]); |
239 | 240 | ||
240 | // CRUD-операции над справочником Образование | 241 | // CRUD-операции над справочником Образование |
241 | Route::resource('education', EducationController::class, ['except' => ['show']]); | 242 | Route::resource('education', EducationController::class, ['except' => ['show']]); |
242 | 243 | ||
243 | Route::get('rename-program-education', [EducationController::class, 'rename_program'])->name('rename-program-education'); | 244 | Route::get('rename-program-education', [EducationController::class, 'rename_program'])->name('rename-program-education'); |
244 | Route::get('program-education', [EducationController::class, 'add_program'])->name('add-program-education'); | 245 | Route::get('program-education', [EducationController::class, 'add_program'])->name('add-program-education'); |
245 | Route::post('program-education', [EducationController::class, 'store_program'])->name('store-program-education'); | 246 | Route::post('program-education', [EducationController::class, 'store_program'])->name('store-program-education'); |
246 | 247 | ||
247 | Route::get('program-education/edit/{program}/{education}', [EducationController::class, 'edit_program'])->name('edit-program-education'); | 248 | Route::get('program-education/edit/{program}/{education}', [EducationController::class, 'edit_program'])->name('edit-program-education'); |
248 | Route::post('program-education/edit/{program}/{education}', [EducationController::class, 'update_program'])->name('update-program-education'); | 249 | Route::post('program-education/edit/{program}/{education}', [EducationController::class, 'update_program'])->name('update-program-education'); |
249 | 250 | ||
250 | Route::get('program-education/delete/{program}/{education}', [EducationController::class, 'delete_program'])->name('delete-program-education'); | 251 | Route::get('program-education/delete/{program}/{education}', [EducationController::class, 'delete_program'])->name('delete-program-education'); |
251 | 252 | ||
252 | //Route::get('job-titles', [AdminController::class, 'index'])->name('job-titles'); | 253 | //Route::get('job-titles', [AdminController::class, 'index'])->name('job-titles'); |
253 | /* | 254 | /* |
254 | * кабинет - CRUD-операции по справочнику должности | 255 | * кабинет - CRUD-операции по справочнику должности |
255 | * | 256 | * |
256 | */ | 257 | */ |
257 | Route::resource('job-titles', JobTitlesController::class, ['except' => ['show']]); | 258 | Route::resource('job-titles', JobTitlesController::class, ['except' => ['show']]); |
258 | 259 | ||
259 | // кабинет - сообщения (чтение чужих) | 260 | // кабинет - сообщения (чтение чужих) |
260 | Route::get('messages', [MsgAnswersController::class, 'messages'])->name('messages'); | 261 | Route::get('messages', [MsgAnswersController::class, 'messages'])->name('messages'); |
261 | // кабинет - просмотр сообщения чужого (чтение) | 262 | // кабинет - просмотр сообщения чужого (чтение) |
262 | Route::get('messages/{message}', [MsgAnswersController::class, 'read_message'])->name('read-message'); | 263 | Route::get('messages/{message}', [MsgAnswersController::class, 'read_message'])->name('read-message'); |
263 | 264 | ||
264 | // кабинет - сообщения (админские) | 265 | // кабинет - сообщения (админские) |
265 | Route::get('admin-messages', [MsgAnswersController::class, 'admin_messages'])->name('admin-messages'); | 266 | Route::get('admin-messages', [MsgAnswersController::class, 'admin_messages'])->name('admin-messages'); |
266 | // кабинет - сообщения (админские) | 267 | // кабинет - сообщения (админские) |
267 | Route::post('admin-messages', [MsgAnswersController::class, 'admin_messages_post'])->name('admin-messages-post'); | 268 | Route::post('admin-messages', [MsgAnswersController::class, 'admin_messages_post'])->name('admin-messages-post'); |
268 | // кабинет - sql - конструкция запросов | 269 | // кабинет - sql - конструкция запросов |
269 | Route::get('messages-sql', [MsgAnswersController::class, 'messages_sql'])->name('messages-sql'); | 270 | Route::get('messages-sql', [MsgAnswersController::class, 'messages_sql'])->name('messages-sql'); |
270 | 271 | ||
271 | /* | 272 | /* |
272 | * Расписанный подход в описании каждой директорий групп пользователей. | 273 | * Расписанный подход в описании каждой директорий групп пользователей. |
273 | */ | 274 | */ |
274 | // кабинет - группы пользователей | 275 | // кабинет - группы пользователей |
275 | Route::get('groups', [GroupsController::class, 'index'])->name('groups'); | 276 | Route::get('groups', [GroupsController::class, 'index'])->name('groups'); |
276 | // кабинет - добавление форма группы пользователей | 277 | // кабинет - добавление форма группы пользователей |
277 | Route::get('groups/add', [GroupsController::class, 'add'])->name('add-group'); | 278 | Route::get('groups/add', [GroupsController::class, 'add'])->name('add-group'); |
278 | // кабинет - сохранение формы группы пользователей | 279 | // кабинет - сохранение формы группы пользователей |
279 | Route::post('groups/add', [GroupsController::class, 'store'])->name('add-group-store'); | 280 | Route::post('groups/add', [GroupsController::class, 'store'])->name('add-group-store'); |
280 | // кабинет - редактирование форма группы пользователей | 281 | // кабинет - редактирование форма группы пользователей |
281 | Route::get('groups/edit/{group}', [GroupsController::class, 'edit'])->name('edit-group'); | 282 | Route::get('groups/edit/{group}', [GroupsController::class, 'edit'])->name('edit-group'); |
282 | // кабинет - сохранение редактированной формы группы пользователей | 283 | // кабинет - сохранение редактированной формы группы пользователей |
283 | Route::post('groups/edit/{group}', [GroupsController::class, 'update'])->name('update-group'); | 284 | Route::post('groups/edit/{group}', [GroupsController::class, 'update'])->name('update-group'); |
284 | // кабинет - удаление группы пользователей | 285 | // кабинет - удаление группы пользователей |
285 | Route::delete('groups/delete/{group}', [GroupsController::class, 'destroy'])->name('delete-group'); | 286 | Route::delete('groups/delete/{group}', [GroupsController::class, 'destroy'])->name('delete-group'); |
286 | 287 | ||
287 | 288 | ||
288 | // кабинет - список админов | 289 | // кабинет - список админов |
289 | Route::get('group-admin', [AdminController::class, 'index'])->name('group-admin'); | 290 | Route::get('group-admin', [AdminController::class, 'index'])->name('group-admin'); |
290 | 291 | ||
291 | 292 | ||
292 | /////редактор////// кабинет - редактор сайта//////////////////////// | 293 | /////редактор////// кабинет - редактор сайта//////////////////////// |
293 | Route::get('editor-site', function() { | 294 | Route::get('editor-site', function() { |
294 | return view('admin.editor.index'); | 295 | return view('admin.editor.index'); |
295 | })->name('editor-site'); | 296 | })->name('editor-site'); |
296 | 297 | ||
297 | 298 | ||
298 | // кабинет - редактор шапки-футера сайта | 299 | // кабинет - редактор шапки-футера сайта |
299 | Route::get('edit-blocks', [CompanyController::class, 'editblocks'])->name('edit-blocks'); | 300 | Route::get('edit-blocks', [CompanyController::class, 'editblocks'])->name('edit-blocks'); |
300 | Route::get('edit-bloks/add', [CompanyController::class, 'editblock_add'])->name('add-block'); | 301 | Route::get('edit-bloks/add', [CompanyController::class, 'editblock_add'])->name('add-block'); |
301 | Route::post('edit-bloks/add', [CompanyController::class, 'editblock_store'])->name('add-block-store'); | 302 | Route::post('edit-bloks/add', [CompanyController::class, 'editblock_store'])->name('add-block-store'); |
302 | Route::get('edit-bloks/ajax', [CompanyController::class, 'editblock_ajax'])->name('ajax.block'); | 303 | Route::get('edit-bloks/ajax', [CompanyController::class, 'editblock_ajax'])->name('ajax.block'); |
303 | Route::get('edit-bloks/edit/{block}', [CompanyController::class, 'editblock_edit'])->name('edit-block'); | 304 | Route::get('edit-bloks/edit/{block}', [CompanyController::class, 'editblock_edit'])->name('edit-block'); |
304 | Route::put('edit-bloks/edit/{block}', [CompanyController::class, 'editblock_update'])->name('update-block'); | 305 | Route::put('edit-bloks/edit/{block}', [CompanyController::class, 'editblock_update'])->name('update-block'); |
305 | Route::delete('edit-bloks/delete/{block}', [CompanyController::class, 'editblock_destroy'])->name('delete-block'); | 306 | Route::delete('edit-bloks/delete/{block}', [CompanyController::class, 'editblock_destroy'])->name('delete-block'); |
306 | 307 | ||
307 | 308 | ||
308 | // кабинет - редактор должности на главной | 309 | // кабинет - редактор должности на главной |
309 | Route::get('job-titles-main', [CompanyController::class, 'job_titles_main'])->name('job-titles-main'); | 310 | Route::get('job-titles-main', [CompanyController::class, 'job_titles_main'])->name('job-titles-main'); |
310 | 311 | ||
311 | // кабинет - редактор работодатели на главной | 312 | // кабинет - редактор работодатели на главной |
312 | Route::get('employers-main', [CompanyController::class, 'employers_main'])->name('employers-main'); | 313 | Route::get('employers-main', [CompanyController::class, 'employers_main'])->name('employers-main'); |
313 | 314 | ||
314 | 315 | ||
315 | // кабинет - редактор seo-сайта | 316 | // кабинет - редактор seo-сайта |
316 | Route::get('editor-seo', [CompanyController::class, 'editor_seo'])->name('editor-seo'); | 317 | Route::get('editor-seo', [CompanyController::class, 'editor_seo'])->name('editor-seo'); |
317 | Route::get('editor-seo/add', [CompanyController::class, 'editor_seo_add'])->name('add-seo'); | 318 | Route::get('editor-seo/add', [CompanyController::class, 'editor_seo_add'])->name('add-seo'); |
318 | Route::post('editor-seo/add', [CompanyController::class, 'editor_seo_store'])->name('add-seo-store'); | 319 | Route::post('editor-seo/add', [CompanyController::class, 'editor_seo_store'])->name('add-seo-store'); |
319 | Route::get('editor-seo/ajax', [CompanyController::class, 'editor_seo_ajax'])->name('ajax.seo'); | 320 | Route::get('editor-seo/ajax', [CompanyController::class, 'editor_seo_ajax'])->name('ajax.seo'); |
320 | Route::get('editor-seo/edit/{page}', [CompanyController::class, 'editor_seo_edit'])->name('edit-seo'); | 321 | Route::get('editor-seo/edit/{page}', [CompanyController::class, 'editor_seo_edit'])->name('edit-seo'); |
321 | Route::put('editor-seo/edit/{page}', [CompanyController::class, 'editor_seo_update'])->name('update-seo'); | 322 | Route::put('editor-seo/edit/{page}', [CompanyController::class, 'editor_seo_update'])->name('update-seo'); |
322 | Route::delete('editor-seo/delete/{page}', [CompanyController::class, 'editor_seo_destroy'])->name('delete-seo'); | 323 | Route::delete('editor-seo/delete/{page}', [CompanyController::class, 'editor_seo_destroy'])->name('delete-seo'); |
323 | 324 | ||
324 | 325 | ||
325 | // кабинет - редактор страниц | 326 | // кабинет - редактор страниц |
326 | Route::get('editor-pages', [CompanyController::class, 'editor_pages'])->name('editor-pages'); | 327 | Route::get('editor-pages', [CompanyController::class, 'editor_pages'])->name('editor-pages'); |
327 | // кабинет - добавление страницы | 328 | // кабинет - добавление страницы |
328 | Route::get('editor-pages/add', [CompanyController::class, 'editor_pages_add'])->name('add-page'); | 329 | Route::get('editor-pages/add', [CompanyController::class, 'editor_pages_add'])->name('add-page'); |
329 | // кабинет - сохранение формы страницы | 330 | // кабинет - сохранение формы страницы |
330 | Route::post('editor-page/add', [CompanyController::class, 'editor_pages_store'])->name('add-page-store'); | 331 | Route::post('editor-page/add', [CompanyController::class, 'editor_pages_store'])->name('add-page-store'); |
331 | // кабинет - редактирование форма страницы | 332 | // кабинет - редактирование форма страницы |
332 | Route::get('editor-pages/edit/{page}', [CompanyController::class, 'editor_pages_edit'])->name('edit-page'); | 333 | Route::get('editor-pages/edit/{page}', [CompanyController::class, 'editor_pages_edit'])->name('edit-page'); |
333 | // кабинет - сохранение редактированной формы страницы | 334 | // кабинет - сохранение редактированной формы страницы |
334 | Route::put('editor-pages/edit/{page}', [CompanyController::class, 'editor_pages_update'])->name('update-page'); | 335 | Route::put('editor-pages/edit/{page}', [CompanyController::class, 'editor_pages_update'])->name('update-page'); |
335 | // кабинет - удаление страницы | 336 | // кабинет - удаление страницы |
336 | Route::delete('editor-pages/delete/{page}', [CompanyController::class, 'editor_pages_destroy'])->name('delete-page'); | 337 | Route::delete('editor-pages/delete/{page}', [CompanyController::class, 'editor_pages_destroy'])->name('delete-page'); |
337 | 338 | ||
338 | 339 | ||
339 | // кабинет - реклама сайта | 340 | // кабинет - реклама сайта |
340 | Route::get('reclames', [CompanyController::class, 'reclames'])->name('reclames'); | 341 | Route::get('reclames', [CompanyController::class, 'reclames'])->name('reclames'); |
341 | Route::get('reclames/add', [CompanyController::class, 'reclames_add'])->name('add-reclames'); | 342 | Route::get('reclames/add', [CompanyController::class, 'reclames_add'])->name('add-reclames'); |
342 | Route::post('reclames/add', [CompanyController::class, 'reclames_store'])->name('add-reclames-store'); | 343 | Route::post('reclames/add', [CompanyController::class, 'reclames_store'])->name('add-reclames-store'); |
343 | Route::get('reclames/edit/{reclame}', [CompanyController::class, 'reclames_edit'])->name('edit-reclames'); | 344 | Route::get('reclames/edit/{reclame}', [CompanyController::class, 'reclames_edit'])->name('edit-reclames'); |
344 | Route::put('reclames/edit/{reclame}', [CompanyController::class, 'reclames_update'])->name('update-reclames'); | 345 | Route::put('reclames/edit/{reclame}', [CompanyController::class, 'reclames_update'])->name('update-reclames'); |
345 | Route::delete('reclames/delete/{reclame}', [CompanyController::class, 'reclames_destroy'])->name('delete-reclames'); | 346 | Route::delete('reclames/delete/{reclame}', [CompanyController::class, 'reclames_destroy'])->name('delete-reclames'); |
346 | //////////////////////////////////////////////////////////////////////// | 347 | //////////////////////////////////////////////////////////////////////// |
347 | 348 | ||
348 | 349 | ||
349 | // кабинет - отзывы о работодателе для модерации | 350 | // кабинет - отзывы о работодателе для модерации |
350 | Route::get('answers', [EmployersController::class, 'answers'])->name('answers'); | 351 | Route::get('answers', [EmployersController::class, 'answers'])->name('answers'); |
351 | 352 | ||
352 | // Общая страница статистики | 353 | // Общая страница статистики |
353 | Route::get('statics', function () { | 354 | Route::get('statics', function () { |
354 | return view('admin.static.index'); | 355 | return view('admin.static.index'); |
355 | })->name('statics'); | 356 | })->name('statics'); |
356 | 357 | ||
357 | // кабинет - статистика работников | 358 | // кабинет - статистика работников |
358 | Route::get('static-workers', [WorkersController::class, 'static_workers'])->name('static-workers'); | 359 | Route::get('static-workers', [WorkersController::class, 'static_workers'])->name('static-workers'); |
359 | 360 | ||
360 | // кабинет - статистика вакансий работодателя | 361 | // кабинет - статистика вакансий работодателя |
361 | Route::get('static-ads', [EmployersController::class, 'static_ads'])->name('static-ads'); | 362 | Route::get('static-ads', [EmployersController::class, 'static_ads'])->name('static-ads'); |
362 | 363 | ||
363 | // кабинет - справочник - блоки информации (дипломы и документы) для резюме работника | 364 | // кабинет - справочник - блоки информации (дипломы и документы) для резюме работника |
364 | /* | 365 | /* |
365 | * CRUD-операции над справочником дипломы и документы | 366 | * CRUD-операции над справочником дипломы и документы |
366 | */ | 367 | */ |
367 | //Route::get('infobloks', [WorkersController::class, 'infobloks'])->name('infobloks'); | 368 | //Route::get('infobloks', [WorkersController::class, 'infobloks'])->name('infobloks'); |
368 | Route::resource('infobloks', InfoBloksController::class, ['except' => ['show']]); | 369 | Route::resource('infobloks', InfoBloksController::class, ['except' => ['show']]); |
369 | 370 | ||
370 | // кабинет - роли пользователя | 371 | // кабинет - роли пользователя |
371 | Route::get('roles', [UsersController::class, 'roles'])->name('roles'); | 372 | Route::get('roles', [UsersController::class, 'roles'])->name('roles'); |
372 | 373 | ||
373 | Route::get('admin_roles', [UsersController::class, 'admin_roles'])->name('admin_roles'); | 374 | Route::get('admin_roles', [UsersController::class, 'admin_roles'])->name('admin_roles'); |
374 | 375 | ||
375 | Route::get('logs', function() { | 376 | Route::get('logs', function() { |
376 | $files = Storage::files('logs/laravel.log'); | 377 | $files = Storage::files('logs/laravel.log'); |
377 | })->name('logs'); | 378 | })->name('logs'); |
378 | }); | 379 | }); |
379 | 380 | ||
380 | // Инструментальные страницы | 381 | // Инструментальные страницы |
381 | Route::post('ckeditor/upload', [CKEditorController::class, 'upload'])->name('ckeditor.image-upload'); | 382 | Route::post('ckeditor/upload', [CKEditorController::class, 'upload'])->name('ckeditor.image-upload'); |
382 | 383 | ||
383 | Route::get('redis/', [PagesController::class, 'redis'])->name('redis'); | 384 | Route::get('redis/', [PagesController::class, 'redis'])->name('redis'); |
384 | 385 | ||
385 | Route::get('excel/', [PagesController::class, 'excel'])->name('excel'); | 386 | Route::get('excel/', [PagesController::class, 'excel'])->name('excel'); |
386 | 387 | ||
387 | // Страницы с произвольным контентом | 388 | // Страницы с произвольным контентом |
388 | Route::get('pages/{pages:slug}', [PagesController::class, 'pages'])->name('page'); | 389 | Route::get('pages/{pages:slug}', [PagesController::class, 'pages'])->name('page'); |
389 | 390 | ||
390 | // Публичные страницы соискателя | 391 | // Публичные страницы соискателя |
391 | Route::get('workers/profile/{worker}', [WorkerController::class, 'profile'])->name('worker_page'); | 392 | Route::get('workers/profile/{worker}', [WorkerController::class, 'profile'])->name('worker_page'); |
392 | 393 | ||
393 | //Страница вакансии | 394 | //Страница вакансии |
394 | Route::get('employer/ad/{ad_employer}', [AdEmployerController::class, 'ad_employer'])->name('ad-employer'); | 395 | Route::get('employer/ad/{ad_employer}', [AdEmployerController::class, 'ad_employer'])->name('ad-employer'); |
395 | 396 | ||
396 | //Вакансии | 397 | //Вакансии |
397 | Route::get('vacancies', [MainController::class, 'vacancies'])->name('vacancies'); | 398 | Route::get('vacancies', [MainController::class, 'vacancies'])->name('vacancies'); |
398 | 399 | ||
399 | //Вакансии поиск на главной | 400 | //Вакансии поиск на главной |
400 | Route::get('search-vacancies', [MainController::class, 'search_vacancies'])->name('search_vacancies'); | 401 | Route::get('search-vacancies', [MainController::class, 'search_vacancies'])->name('search_vacancies'); |
401 | 402 | ||
402 | //Вакансии категория детальная | 403 | //Вакансии категория детальная |
403 | Route::get('list-vacancies/{categories}', [MainController::class, 'list_vacancies'])->name('list-vacancies'); | 404 | Route::get('list-vacancies/{categories}', [MainController::class, 'list_vacancies'])->name('list-vacancies'); |
404 | 405 | ||
405 | //Детальная страница вакансии - работодателя | 406 | //Детальная страница вакансии - работодателя |
406 | Route::get('vacancie/{vacancy}', [FrontEmployersController::class, 'vacancie'])->name('vacancie'); | 407 | Route::get('vacancie/{vacancy}', [FrontEmployersController::class, 'vacancie'])->name('vacancie'); |
407 | 408 | ||
408 | //Судоходные компании | 409 | //Судоходные компании |
409 | Route::get('shipping-companies', [FrontCompanyController::class, 'shipping_companies'])->name('shipping_companies'); | 410 | Route::get('shipping-companies', [FrontCompanyController::class, 'shipping_companies'])->name('shipping_companies'); |
410 | 411 | ||
411 | //Детальная инфа о компании | 412 | //Детальная инфа о компании |
412 | Route::get('info-company/{company}', [FrontCompanyController::class, 'info_company'])->name('info_company'); | 413 | Route::get('info-company/{company}', [FrontCompanyController::class, 'info_company'])->name('info_company'); |
413 | 414 | ||
414 | //Образование | 415 | //Образование |
415 | Route::get('education', [MainController::class, 'education'])->name('education'); | 416 | Route::get('education', [MainController::class, 'education'])->name('education'); |
416 | 417 | ||
417 | //Новости | 418 | //Новости |
418 | Route::get('news', [MainController::class, 'news'])->name('news'); | 419 | Route::get('news', [MainController::class, 'news'])->name('news'); |
419 | Route::get('detail-new/{new}', [MainController::class, 'detail_new'])->name('detail_new'); | 420 | Route::get('detail-new/{new}', [MainController::class, 'detail_new'])->name('detail_new'); |
420 | 421 | ||
421 | //Контакты | 422 | //Контакты |
422 | Route::get('contacts', [MainController::class, 'contacts'])->name('contacts'); | 423 | Route::get('contacts', [MainController::class, 'contacts'])->name('contacts'); |
423 | 424 | ||
424 | //База резюме | 425 | //База резюме |
425 | Route::get('bd-resume', [WorkerController::class, 'bd_resume'])->name('bd_resume'); | 426 | Route::get('bd-resume', [WorkerController::class, 'bd_resume'])->name('bd_resume'); |
426 | 427 | ||
427 | //Анкета соискателя | 428 | //Анкета соискателя |
428 | Route::get('resume-profile/{worker}', [WorkerController::class, 'resume_profile'])->name('resume_profile'); | 429 | Route::get('resume-profile/{worker}', [WorkerController::class, 'resume_profile'])->name('resume_profile'); |
429 | 430 | ||
430 | //Скачать резюме | 431 | //Скачать резюме |
431 | Route::get('resume-download/{worker}', [WorkerController::class, 'resume_download'])->name('resume_download'); | 432 | Route::get('resume-download/{worker}', [WorkerController::class, 'resume_download'])->name('resume_download'); |
432 | 433 | ||
433 | //Вход в кабинет | 434 | //Вход в кабинет |
434 | Route::get('login', [MainController::class, 'input_login'])->name('login'); | 435 | Route::get('login', [MainController::class, 'input_login'])->name('login'); |
435 | 436 | ||
436 | // Выход из кабинета | 437 | // Выход из кабинета |
437 | Route::get('logout', [EmployerController::class, 'logout'])->name('logout'); | 438 | Route::get('logout', [EmployerController::class, 'logout'])->name('logout'); |
438 | 439 | ||
439 | Route::get( 'register_worker', [WorkerController::class, 'register_worker'])->name('register_worker'); | 440 | Route::get( 'register_worker', [WorkerController::class, 'register_worker'])->name('register_worker'); |
440 | Route::get('register_employer', [EmployerController::class, 'register_employer'])->name('register_employer'); | 441 | Route::get('register_employer', [EmployerController::class, 'register_employer'])->name('register_employer'); |
441 | 442 | ||
442 | //восстановление пароля | 443 | //восстановление пароля |
443 | Route::get('repair-password', [MainController::class, 'repair_password'])->name('repair_password'); | 444 | Route::get('repair-password', [MainController::class, 'repair_password'])->name('repair_password'); |
444 | 445 | ||
445 | // Борьба | 446 | // Борьба |
446 | Route::get('clear_cookie', function() { | 447 | Route::get('clear_cookie', function() { |
447 | \App\Classes\Cookies_vacancy::clear_vacancy(); | 448 | \App\Classes\Cookies_vacancy::clear_vacancy(); |
448 | return redirect()->route('index'); | 449 | return redirect()->route('index'); |
449 | })->name('clear_cookie'); | 450 | })->name('clear_cookie'); |
450 | 451 | ||
451 | // Личный кабинет работника | 452 | // Личный кабинет работника |
452 | Route::group([ | 453 | Route::group([ |
453 | 'as' => 'worker.', // имя маршрута, например auth.index | 454 | 'as' => 'worker.', // имя маршрута, например auth.index |
454 | 'prefix' => 'worker', // префикс маршрута, например auth/index | 455 | 'prefix' => 'worker', // префикс маршрута, например auth/index |
455 | 'middleware' => ['auth'], ['is_worker'], | 456 | 'middleware' => ['auth'], ['is_worker'], |
456 | ], function() { | 457 | ], function() { |
457 | // 1 страница - Моя анкета | 458 | // 1 страница - Моя анкета |
458 | Route::get('cabinet', [WorkerController::class, 'cabinet'])->name('cabinet'); | 459 | Route::get('cabinet', [WorkerController::class, 'cabinet'])->name('cabinet'); |
459 | Route::post('cabinet/{worker}', [WorkerController::class, 'cabinet_save'])->name('cabinet_save'); | 460 | Route::post('cabinet/{worker}', [WorkerController::class, 'cabinet_save'])->name('cabinet_save'); |
460 | 461 | ||
461 | // 2 страница - Сообщения | 462 | // 2 страница - Сообщения |
462 | Route::get('cabinet/messages/{type_message}', [WorkerController::class, 'messages'])->name('messages'); | 463 | Route::get('cabinet/messages/{type_message}', [WorkerController::class, 'messages'])->name('messages'); |
463 | Route::get('cabinet/dialog/{user1}/{user2}', [WorkerController::class, 'dialog'])->name('dialog'); | 464 | Route::get('cabinet/dialog/{user1}/{user2}', [WorkerController::class, 'dialog'])->name('dialog'); |
464 | // 3 страница - Избранные вакансии | 465 | // 3 страница - Избранные вакансии |
465 | Route::get('cabinet/favorite', [WorkerController::class, 'favorite'])->name('favorite'); | 466 | Route::get('cabinet/favorite', [WorkerController::class, 'favorite'])->name('favorite'); |
466 | // Продолжение борьбы против колорадов - избранные вакансии | 467 | // Продолжение борьбы против колорадов - избранные вакансии |
467 | Route::get('кабинет/favorite', [WorkerController::class, 'colorado'])->name('colorado'); | 468 | Route::get('кабинет/favorite', [WorkerController::class, 'colorado'])->name('colorado'); |
468 | 469 | ||
469 | // 4 страница - Сменить пароль | 470 | // 4 страница - Сменить пароль |
470 | Route::get('кабинет/new_password', [WorkerController::class, 'new_password'])->name('new_password'); | 471 | Route::get('кабинет/new_password', [WorkerController::class, 'new_password'])->name('new_password'); |
471 | Route::post('кабинет/new_password/save', [WorkerController::class, 'save_new_password'])->name('save_new_password'); | 472 | Route::post('кабинет/new_password/save', [WorkerController::class, 'save_new_password'])->name('save_new_password'); |
472 | 473 | ||
473 | // 5 страница - Удалить профиль | 474 | // 5 страница - Удалить профиль |
474 | Route::get('кабинет/delete_profile', [WorkerController::class, 'delete_profile'])->name('delete_profile'); | 475 | Route::get('кабинет/delete_profile', [WorkerController::class, 'delete_profile'])->name('delete_profile'); |
475 | Route::post('кабинет/delete_profile/delete', [WorkerController::class, 'delete_profile_result'])->name('deleteprofile_result'); | 476 | Route::post('кабинет/delete_profile/delete', [WorkerController::class, 'delete_profile_result'])->name('deleteprofile_result'); |
476 | 477 | ||
477 | // Резюме -pdf | 478 | // Резюме -pdf |
478 | Route::get('кабинет/download/{worker}', [WorkerController::class, 'download'])->name('download'); | 479 | Route::get('кабинет/download/{worker}', [WorkerController::class, 'download'])->name('download'); |
479 | 480 | ||
480 | // Поднятие анкеты | 481 | // Поднятие анкеты |
481 | Route::get('кабинет/up/{worker}', [WorkerController::class, 'up'])->name('up'); | 482 | Route::get('кабинет/up/{worker}', [WorkerController::class, 'up'])->name('up'); |
482 | 483 | ||
483 | // Добавление сертификата | 484 | // Добавление сертификата |
484 | Route::get('кабинет/add_sertificate', [WorkerController::class, 'add_serificate'])->name('add_serificate'); | 485 | Route::get('кабинет/add_sertificate', [WorkerController::class, 'add_serificate'])->name('add_serificate'); |
485 | Route::get('кабинет/delete_sertificate/{doc}', [WorkerController::class, 'delete_sertificate'])->name('delete_sertificate'); | 486 | Route::get('кабинет/delete_sertificate/{doc}', [WorkerController::class, 'delete_sertificate'])->name('delete_sertificate'); |
486 | 487 | ||
487 | // Добавление документа-диплома | 488 | // Добавление документа-диплома |
488 | Route::get('кабинет/add_diplom/{worker}', [WorkerController::class, 'add_diplom'])->name('add_diplom'); | 489 | Route::get('кабинет/add_diplom/{worker}', [WorkerController::class, 'add_diplom'])->name('add_diplom'); |
489 | Route::post('кабинет/add_diplom', [WorkerController::class, 'add_diplom_save'])->name('dop_info_save'); | 490 | Route::post('кабинет/add_diplom', [WorkerController::class, 'add_diplom_save'])->name('dop_info_save'); |
490 | 491 | ||
491 | // Добавление стандартного диплома | 492 | // Добавление стандартного диплома |
492 | Route::get('кабинет/add_document/{worker}', [WorkerController::class, 'add_document'])->name('add_document'); | 493 | Route::get('кабинет/add_document/{worker}', [WorkerController::class, 'add_document'])->name('add_document'); |
493 | Route::post('кабинет/add_document/', [WorkerController::class, 'add_document_save'])->name('add_document_save'); | 494 | Route::post('кабинет/add_document/', [WorkerController::class, 'add_document_save'])->name('add_document_save'); |
494 | Route::get('кабинет/edit_document/{doc}/{worker}', [WorkerController::class, 'edit_document'])->name('edit_document'); | 495 | Route::get('кабинет/edit_document/{doc}/{worker}', [WorkerController::class, 'edit_document'])->name('edit_document'); |
495 | Route::post('кабинет/edit_document/{doc}', [WorkerController::class, 'edit_document_save'])->name('edit_document_save'); | 496 | Route::post('кабинет/edit_document/{doc}', [WorkerController::class, 'edit_document_save'])->name('edit_document_save'); |
496 | Route::get('кабинет/delete_document/{doc}', [WorkerController::class, 'delete_document'])->name('delete_document'); | 497 | Route::get('кабинет/delete_document/{doc}', [WorkerController::class, 'delete_document'])->name('delete_document'); |
497 | 498 | ||
498 | // Отправка сообщения работодателю от соискателя | 499 | // Отправка сообщения работодателю от соискателя |
499 | Route::post('сообщение/', [WorkerController::class, 'new_message'])->name('new_message'); | 500 | Route::post('сообщение/', [WorkerController::class, 'new_message'])->name('new_message'); |
500 | }); | 501 | }); |
501 | 502 | ||
502 | // Личный кабинет работодателя | 503 | // Личный кабинет работодателя |
503 | Route::group([ | 504 | Route::group([ |
504 | 'as' => 'employer.', // имя маршрута, например auth.index | 505 | 'as' => 'employer.', // имя маршрута, например auth.index |
505 | 'prefix' => 'employer', // префикс маршрута, например auth/index | 506 | 'prefix' => 'employer', // префикс маршрута, например auth/index |
506 | 'middleware' => ['auth'], !['is_worker'], | 507 | 'middleware' => ['auth'], !['is_worker'], |
507 | ], function() { | 508 | ], function() { |
508 | // 1 страница - Профиль | 509 | // 1 страница - Профиль |
509 | Route::get('cabinet', [EmployerController::class, 'cabinet'])->name('cabinet'); | 510 | Route::get('cabinet', [EmployerController::class, 'cabinet'])->name('cabinet'); |
510 | Route::post('cabinet/{Employer}', [EmployerController::class, 'cabinet_save'])->name('cabinet_save'); | 511 | Route::post('cabinet/{Employer}', [EmployerController::class, 'cabinet_save'])->name('cabinet_save'); |
511 | Route::post('flot_add_ajax', [EmployerController::class, 'save_add_flot'])->name('save_add_flot'); | 512 | Route::post('flot_add_ajax', [EmployerController::class, 'save_add_flot'])->name('save_add_flot'); |
512 | Route::get('flot_delete_ajax/{Flot}', [EmployerController::class, 'delete_flot'])->name('delete_flot'); | 513 | Route::get('flot_delete_ajax/{Flot}', [EmployerController::class, 'delete_flot'])->name('delete_flot'); |
513 | 514 | ||
514 | // 2 страница - Добавление вакансий | 515 | // 2 страница - Добавление вакансий |
515 | Route::get('cabinet/vacancie', [EmployerController::class, 'cabinet_vacancie'])->name('cabinet_vacancie'); | 516 | Route::get('cabinet/vacancie', [EmployerController::class, 'cabinet_vacancie'])->name('cabinet_vacancie'); |
516 | Route::post('cabinet/vacancie', [EmployerController::class, 'cabinet_vacancy_save'])->name('vacancy_save'); | 517 | Route::post('cabinet/vacancie', [EmployerController::class, 'cabinet_vacancy_save'])->name('vacancy_save'); |
517 | Route::post('vacancie', [EmployerController::class, 'cabinet_vacancy_save1'])->name('vac_save'); | 518 | Route::post('vacancie', [EmployerController::class, 'cabinet_vacancy_save1'])->name('vac_save'); |
518 | 519 | ||
519 | // 3 страница - Мои вакансии | 520 | // 3 страница - Мои вакансии |
520 | Route::get('cabinet/vacancy_list', [EmployerController::class, 'vacancy_list'])->name('vacancy_list'); | 521 | Route::get('cabinet/vacancy_list', [EmployerController::class, 'vacancy_list'])->name('vacancy_list'); |
521 | Route::get('cabinet/vacancy/{ad_employer}', [EmployerController::class, 'vacancy_edit'])->name('vacancy_edit'); | 522 | Route::get('cabinet/vacancy/{ad_employer}', [EmployerController::class, 'vacancy_edit'])->name('vacancy_edit'); |
522 | Route::get('cabinet/vacancy-delete/{ad_employer}', [EmployerController::class, 'vacancy_delete'])->name('vacancy_delete'); | 523 | Route::get('cabinet/vacancy-delete/{ad_employer}', [EmployerController::class, 'vacancy_delete'])->name('vacancy_delete'); |
523 | Route::get('cabinet/vacancy-up/{ad_employer}', [EmployerController::class, 'vacancy_up'])->name('vacancy_up'); | 524 | Route::get('cabinet/vacancy-up/{ad_employer}', [EmployerController::class, 'vacancy_up'])->name('vacancy_up'); |
524 | Route::get('cabinet/vacancy-eye/{ad_employer}/{status}', [EmployerController::class, 'vacancy_eye'])->name('vacancy_eye'); | 525 | Route::get('cabinet/vacancy-eye/{ad_employer}/{status}', [EmployerController::class, 'vacancy_eye'])->name('vacancy_eye'); |
525 | Route::get('cabinet/vacancy-edit/{ad_employer}', [EmployerController::class, 'vacancy_edit'])->name('vacancy_edit'); | 526 | Route::get('cabinet/vacancy-edit/{ad_employer}', [EmployerController::class, 'vacancy_edit'])->name('vacancy_edit'); |
526 | 527 | ||
527 | // 4 страница - Отклики на вакансии | 528 | // 4 страница - Отклики на вакансии |
528 | Route::get('cabinet/answers/{employer}', [EmployerController::class, 'answers'])->name('answers'); | 529 | Route::get('cabinet/answers/{employer}', [EmployerController::class, 'answers'])->name('answers'); |
529 | Route::get('cabinet/status/{employer}', [EmployerController::class, 'supple_status2'])->name('supple'); | 530 | Route::get('cabinet/status/{employer}', [EmployerController::class, 'supple_status2'])->name('supple'); |
530 | Route::get('status/{employer}/{ad_response}/{flag}', [EmployerController::class, 'supple_status'])->name('status_msg'); | 531 | Route::get('status/{employer}/{ad_response}/{flag}', [EmployerController::class, 'supple_status'])->name('status_msg'); |
531 | 532 | ||
532 | // 5 страница - Сообщения | 533 | // 5 страница - Сообщения |
533 | Route::get('cabinet/messages/{type_message}', [EmployerController::class, 'messages'])->name('messages'); | 534 | Route::get('cabinet/messages/{type_message}', [EmployerController::class, 'messages'])->name('messages'); |
534 | Route::get('cabinet/dialog/{user1}/{user2}', [EmployerController::class, 'dialog'])->name('dialog'); | 535 | Route::get('cabinet/dialog/{user1}/{user2}', [EmployerController::class, 'dialog'])->name('dialog'); |
535 | Route::post('cabinet/send-message', [EmployerController::class, 'send_message'])->name('send_message'); | 536 | Route::post('cabinet/send-message', [EmployerController::class, 'send_message'])->name('send_message'); |
536 | Route::post('test123', [EmployerController::class, 'test123'])->name('test123'); | 537 | Route::post('test123', [EmployerController::class, 'test123'])->name('test123'); |
537 | 538 | ||
538 | // 6 страница - Избранный | 539 | // 6 страница - Избранный |
539 | Route::get('cabinet/favorites', [EmployerController::class, 'favorites'])->name('favorites'); | 540 | Route::get('cabinet/favorites', [EmployerController::class, 'favorites'])->name('favorites'); |
540 | 541 | ||
541 | //7 страница - База данных | 542 | //7 страница - База данных |
542 | Route::get('cabinet/bd', [EmployerController::class, 'bd'])->name('bd'); | 543 | Route::get('cabinet/bd', [EmployerController::class, 'bd'])->name('bd'); |
543 | 544 | ||
544 | //8 страница - База резюме | 545 | //8 страница - База резюме |
545 | Route::get('cabinet/bd-tupe', [EmployerController::class, 'bd_tupe'])->name('bd-tupe'); | 546 | Route::get('cabinet/bd-tupe', [EmployerController::class, 'bd_tupe'])->name('bd-tupe'); |
546 | 547 | ||
547 | // 9 рассылка сообщений | 548 | // 9 рассылка сообщений |
548 | Route::get('cabinet/send-all-messages', [EmployerController::class, 'send_all_messages'])->name('send_all_messages'); | 549 | Route::get('cabinet/send-all-messages', [EmployerController::class, 'send_all_messages'])->name('send_all_messages'); |
549 | Route::post('cabinet/send-all-messages/send', [EmployerController::class, 'send_all_post'])->name('send_all_post'); | 550 | Route::post('cabinet/send-all-messages/send', [EmployerController::class, 'send_all_post'])->name('send_all_post'); |
550 | 551 | ||
551 | // 10 страница FAQ вопросы | 552 | // 10 страница FAQ вопросы |
552 | Route::get('cabinet/faq', [EmployerController::class, 'faq'])->name('faq'); | 553 | Route::get('cabinet/faq', [EmployerController::class, 'faq'])->name('faq'); |
553 | 554 | ||
554 | // 11 страница - Настройка уведомлений | 555 | // 11 страница - Настройка уведомлений |
555 | Route::get('cabinet/subscribe', [EmployerController::class, 'subscribe'])->name('subscribe'); | 556 | Route::get('cabinet/subscribe', [EmployerController::class, 'subscribe'])->name('subscribe'); |
556 | Route::get('cabinet/subscribe/save', [EmployerController::class, 'save_subscribe'])->name('save_subscribe'); | 557 | Route::get('cabinet/subscribe/save', [EmployerController::class, 'save_subscribe'])->name('save_subscribe'); |
557 | 558 | ||
558 | // 12 страница - Сменить пароль | 559 | // 12 страница - Сменить пароль |
559 | Route::get('cabinet/password-reset', [EmployerController::class, 'password_reset'])->name('password_reset'); | 560 | Route::get('cabinet/password-reset', [EmployerController::class, 'password_reset'])->name('password_reset'); |
560 | Route::get('cabinet/password-reset/new', [EmployerController::class, 'new_password'])->name('new_password'); | 561 | Route::get('cabinet/password-reset/new', [EmployerController::class, 'new_password'])->name('new_password'); |
561 | 562 | ||
562 | // 13 страница - Удаление профиля | 563 | // 13 страница - Удаление профиля |
563 | Route::get('cabinet/delete-people', [EmployerController::class, 'delete_people'])->name('delete_people'); | 564 | Route::get('cabinet/delete-people', [EmployerController::class, 'delete_people'])->name('delete_people'); |
564 | Route::get('cabinet/action-delete-people', [EmployerController::class, 'action_delete_user'])->name('action_delete_user'); | 565 | Route::get('cabinet/action-delete-people', [EmployerController::class, 'action_delete_user'])->name('action_delete_user'); |
565 | 566 | ||
566 | // Отправил сообщение | 567 | // Отправил сообщение |
567 | Route::post('сообщение/', [EmployerController::class, 'new_message'])->name('new_message'); | 568 | Route::post('сообщение/', [EmployerController::class, 'new_message'])->name('new_message'); |
568 | }); | 569 | }); |
569 | 570 |