Commit 436394f003f08cf755bc9c77a326c772ed40f498
1 parent
cd59d5933a
Exists in
master
fix menu items
Showing 1 changed file with 23 additions and 11 deletions Inline Diff
resources/views/employers/menu.blade.php
1 | <div class="cabinet__side-item"> | 1 | <div class="cabinet__side-item"> |
2 | <div class="cabinet__menu"> | 2 | <div class="cabinet__menu"> |
3 | <button type="button" class="cabinet__menu-toper js-toggle"> | 3 | <button type="button" class="cabinet__menu-toper js-toggle"> |
4 | <span class="cabinet__menu-toper-text"></span> | 4 | <span class="cabinet__menu-toper-text"></span> |
5 | <i class="cabinet__menu-toper-arrow"> | 5 | <i class="cabinet__menu-toper-arrow"> |
6 | <svg> | 6 | <svg> |
7 | <use xlink:href="{{ asset('images/sprite.svg#arrow') }}"></use> | 7 | <use xlink:href="{{ asset('images/sprite.svg#arrow') }}"></use> |
8 | </svg> | 8 | </svg> |
9 | </i> | 9 | </i> |
10 | </button> | 10 | </button> |
11 | <div class="cabinet__menu-body"> | 11 | <div class="cabinet__menu-body"> |
12 | <div class="cabinet__menu-items"> | 12 | <div class="cabinet__menu-items"> |
13 | <a href="{{ route('employer.employer_info') }}" class="cabinet__menu-item @if ($item==0) active @endif"> | 13 | <a href="{{ route('employer.employer_info') }}" class="cabinet__menu-item @if ($item==0) active @endif"> |
14 | <i> | 14 | <i> |
15 | <svg> | 15 | <svg> |
16 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-1') }}"></use> | 16 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-1') }}"></use> |
17 | </svg> | 17 | </svg> |
18 | </i> | 18 | </i> |
19 | <span>Личные данные</span> | 19 | <span>Личные данные</span> |
20 | </a> | 20 | </a> |
21 | <a href="{{ route('employer.cabinet') }}" class="cabinet__menu-item @if ($item==1) active @endif"> | 21 | <a href="{{ route('employer.cabinet') }}" class="cabinet__menu-item @if ($item==1) active @endif"> |
22 | <i> | 22 | <i> |
23 | <svg> | 23 | <svg> |
24 | <use xlink:href="{{ asset('images/sprite.svg#user_alt') }}"></use> | 24 | <use xlink:href="{{ asset('images/sprite.svg#user_alt') }}"></use> |
25 | </svg> | 25 | </svg> |
26 | </i> | 26 | </i> |
27 | <span>Профиль</span> | 27 | <span>Профиль</span> |
28 | </a> | 28 | </a> |
29 | @if ((!Auth()->user()->is_worker) && (Auth()->user()->is_public)) | 29 | @if ((!Auth()->user()->is_worker) && (Auth()->user()->is_public)) |
30 | <a href="{{ route('employer.cabinet_vacancie') }}" class="cabinet__menu-item @if ($item==2) active @endif"> | 30 | <a href="{{ route('employer.cabinet_vacancie') }}" class="cabinet__menu-item @if ($item==2) active @endif"> |
31 | <i> | 31 | <i> |
32 | <svg> | 32 | <svg> |
33 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-2') }}"></use> | 33 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-2') }}"></use> |
34 | </svg> | 34 | </svg> |
35 | </i> | 35 | </i> |
36 | <span>Разместить вакансию</span> | 36 | <span>Разместить вакансию</span> |
37 | </a> | 37 | </a> |
38 | @else | 38 | @else |
39 | <a href="{{ route('page', ['pages' => "Usloviya-razmescheniya"]) }}" class="cabinet__menu-item @if ($item==2) active @endif"> | 39 | <a href="{{ route('page', ['pages' => "Usloviya-razmescheniya"]) }}" class="cabinet__menu-item @if ($item==2) active @endif"> |
40 | <i> | 40 | <i> |
41 | <svg> | 41 | <svg> |
42 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-2') }}"></use> | 42 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-2') }}"></use> |
43 | </svg> | 43 | </svg> |
44 | </i> | 44 | </i> |
45 | <span>Разместить вакансию</span> | 45 | <span>Разместить вакансию</span> |
46 | </a> | 46 | </a> |
47 | @endif | 47 | @endif |
48 | <a href="{{ route('employer.vacancy_list') }}" class="cabinet__menu-item @if ($item==3) active @endif"> | 48 | <a href="{{ route('employer.vacancy_list') }}" class="cabinet__menu-item @if ($item==3) active @endif"> |
49 | <i> | 49 | <i> |
50 | <svg> | 50 | <svg> |
51 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-3') }}"></use> | 51 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-3') }}"></use> |
52 | </svg> | 52 | </svg> |
53 | </i> | 53 | </i> |
54 | <span>Мои вакансии</span> | 54 | <span>Мои вакансии</span> |
55 | </a> | 55 | </a> |
56 | <a href="{{ route('employer.messages', ['type_message' => 'input']) }}" class="cabinet__menu-item @if ($item==5) active @endif"> | 56 | <a href="{{ route('employer.messages', ['type_message' => 'input']) }}" class="cabinet__menu-item @if ($item==5) active @endif"> |
57 | <i> | 57 | <i> |
58 | <svg> | 58 | <svg> |
59 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-5') }}"></use> | 59 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-5') }}"></use> |
60 | </svg> | 60 | </svg> |
61 | </i> | 61 | </i> |
62 | <span>Сообщения</span> | 62 | <span>Сообщения</span> |
63 | </a> | 63 | </a> |
64 | <a href="{{ route('employer.favorites') }}" class="cabinet__menu-item @if ($item==6) active @endif"> | 64 | <a href="{{ route('employer.favorites') }}" class="cabinet__menu-item @if ($item==6) active @endif"> |
65 | <i> | 65 | <i> |
66 | <svg> | 66 | <svg> |
67 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-6') }}"></use> | 67 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-6') }}"></use> |
68 | </svg> | 68 | </svg> |
69 | </i> | 69 | </i> |
70 | <span>Избранные кандидаты</span> | 70 | <span>Избранные кандидаты</span> |
71 | </a> | 71 | </a> |
72 | @if ((!Auth()->user()->is_worker)) | 72 | @if ((!Auth()->user()->is_worker)) |
73 | @if(Auth()->user()->can_autolift) | 73 | @if(Auth()->user()->can_autolift) |
74 | <a href="{{ route('employer.autolift') }}" class="cabinet__menu-item @if ($item==15) active @endif"> | 74 | <a href="{{ route('employer.autolift') }}" class="cabinet__menu-item @if ($item==15) active @endif"> |
75 | <i> | 75 | <i> |
76 | <svg> | 76 | <svg> |
77 | <use xlink:href="{{ asset('images/sprite.svg#refresh') }}"></use> | 77 | <use xlink:href="{{ asset('images/sprite.svg#refresh') }}"></use> |
78 | </svg> | 78 | </svg> |
79 | </i> | 79 | </i> |
80 | <span>Автоподнятие вакансий</span> | 80 | <span>Автоподнятие вакансий</span> |
81 | </a> | 81 | </a> |
82 | @else | 82 | @else |
83 | <a href="{{ route('page', ['pages' => "Usloviya-razmescheniya"]) }}" class="cabinet__menu-item @if ($item==2) active @endif"> | 83 | <a href="{{ route('page', ['pages' => "Usloviya-razmescheniya"]) }}" class="cabinet__menu-item @if ($item==2) active @endif"> |
84 | <i> | 84 | <i> |
85 | <svg> | 85 | <svg> |
86 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-2') }}"></use> | 86 | <use xlink:href="{{ asset('images/sprite.svg#refresh') }}"></use> |
87 | </svg> | 87 | </svg> |
88 | </i> | 88 | </i> |
89 | <span>Автоподнятие вакансий</span> | 89 | <span>Автоподнятие вакансий</span> |
90 | </a> | 90 | </a> |
91 | @endif | 91 | @endif |
92 | 92 | ||
93 | @if(Auth()->user()->show_database) | 93 | @if(Auth()->user()->show_database) |
94 | <a href="{{ route('employer.bd') }}" class="cabinet__menu-item @if ($item==7) active @endif"> | 94 | <a href="{{ route('employer.bd') }}" class="cabinet__menu-item @if ($item==7) active @endif"> |
95 | <i> | 95 | <i> |
96 | <svg> | 96 | <svg> |
97 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-7')}}"></use> | 97 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-7')}}"></use> |
98 | </svg> | 98 | </svg> |
99 | </i> | 99 | </i> |
100 | <span>База данных</span> | 100 | <span>База данных</span> |
101 | </a> | 101 | </a> |
102 | @else | 102 | @else |
103 | <a href="{{ route('page', ['pages' => "Usloviya-razmescheniya"]) }}" class="cabinet__menu-item @if ($item==2) active @endif"> | 103 | <a href="{{ route('page', ['pages' => "Usloviya-razmescheniya"]) }}" class="cabinet__menu-item @if ($item==2) active @endif"> |
104 | <i> | 104 | <i> |
105 | <svg> | 105 | <svg> |
106 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-2') }}"></use> | 106 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-7') }}"></use> |
107 | </svg> | 107 | </svg> |
108 | </i> | 108 | </i> |
109 | <span>База данных</span> | 109 | <span>База данных</span> |
110 | </a> | 110 | </a> |
111 | @endif | 111 | @endif |
112 | 112 | ||
113 | @if(Auth()->user()->is_lookin) | 113 | @if(Auth()->user()->is_lookin) |
114 | <a href="{{ route('bd_resume') }}" target="_blank" class="cabinet__menu-item @if ($item==8) active @endif"> | 114 | <a href="{{ route('bd_resume') }}" target="_blank" class="cabinet__menu-item @if ($item==8) active @endif"> |
115 | <i> | 115 | <i> |
116 | <svg> | 116 | <svg> |
117 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-8') }}"></use> | 117 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-8') }}"></use> |
118 | </svg> | 118 | </svg> |
119 | </i> | 119 | </i> |
120 | <span>База резюме</span> | 120 | <span>База резюме</span> |
121 | </a> | 121 | </a> |
122 | @else | 122 | @else |
123 | <a href="{{ route('page', ['pages' => "Usloviya-razmescheniya"]) }}" class="cabinet__menu-item @if ($item==2) active @endif"> | 123 | <a href="{{ route('page', ['pages' => "Usloviya-razmescheniya"]) }}" class="cabinet__menu-item @if ($item==2) active @endif"> |
124 | <i> | 124 | <i> |
125 | <svg> | 125 | <svg> |
126 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-2') }}"></use> | 126 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-8') }}"></use> |
127 | </svg> | 127 | </svg> |
128 | </i> | 128 | </i> |
129 | <span>База резюме</span> | 129 | <span>База резюме</span> |
130 | </a> | 130 | </a> |
131 | @endif | 131 | @endif |
132 | @endif | 132 | @endif |
133 | 133 | ||
134 | @if(Auth()->user()->employers[0]->sending_is) | ||
135 | <a href="{{ route('employer.send_all_messages') }}" class="cabinet__menu-item @if ($item==9) active @endif"> | ||
136 | <i> | ||
137 | <svg> | ||
138 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-9') }}"></use> | ||
139 | </svg> | ||
140 | </i> | ||
141 | <span>Рассылка сообщений</span> | ||
142 | </a> | ||
143 | @else | ||
144 | <a href="{{ route('page', ['pages' => "Usloviya-razmescheniya"]) }}" class="cabinet__menu-item @if ($item==2) active @endif"> | ||
145 | <i> | ||
146 | <svg> | ||
147 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-9') }}"></use> | ||
148 | </svg> | ||
149 | </i> | ||
150 | <span>Рассылка сообщений</span> | ||
151 | </a> | ||
152 | @endif | ||
153 | |||
134 | 154 | ||
135 | <a href="{{ route('employer.send_all_messages') }}" class="cabinet__menu-item @if ($item==9) active @endif"> | ||
136 | <i> | ||
137 | <svg> | ||
138 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-9') }}"></use> | ||
139 | </svg> | ||
140 | </i> | ||
141 | <span>Рассылка сообщений</span> | ||
142 | </a> | ||
143 | <a href="{{ route('employer.autoresponder') }}" class="cabinet__menu-item @if ($item==16) active @endif"> | 155 | <a href="{{ route('employer.autoresponder') }}" class="cabinet__menu-item @if ($item==16) active @endif"> |
144 | <i> | 156 | <i> |
145 | <svg> | 157 | <svg> |
146 | <use xlink:href="{{ asset('images/sprite.svg#answering') }}"></use> | 158 | <use xlink:href="{{ asset('images/sprite.svg#answering') }}"></use> |
147 | </svg> | 159 | </svg> |
148 | </i> | 160 | </i> |
149 | <span>Автоответчик</span> | 161 | <span>Автоответчик</span> |
150 | </a> | 162 | </a> |
151 | <a href="{{ route('employer.faq') }}" class="cabinet__menu-item @if ($item==10) active @endif"> | 163 | <a href="{{ route('employer.faq') }}" class="cabinet__menu-item @if ($item==10) active @endif"> |
152 | <i> | 164 | <i> |
153 | <svg> | 165 | <svg> |
154 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-10') }}"></use> | 166 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-10') }}"></use> |
155 | </svg> | 167 | </svg> |
156 | </i> | 168 | </i> |
157 | <span>FAQ</span> | 169 | <span>FAQ</span> |
158 | </a> | 170 | </a> |
159 | <a href="{{ route('employer.slider_flot') }}" class="cabinet__menu-item @if ($item==12) active @endif"> | 171 | <a href="{{ route('employer.slider_flot') }}" class="cabinet__menu-item @if ($item==12) active @endif"> |
160 | <i> | 172 | <i> |
161 | <svg> | 173 | <svg> |
162 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-11') }}"></use> | 174 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-11') }}"></use> |
163 | </svg> | 175 | </svg> |
164 | </i> | 176 | </i> |
165 | <span>Мой флот</span> | 177 | <span>Мой флот</span> |
166 | </a> | 178 | </a> |
167 | 179 | ||
168 | <nav> | 180 | <nav> |
169 | <ul class="drop-down closed"> | 181 | <ul class="drop-down closed"> |
170 | <li> | 182 | <li> |
171 | <a style="background-color: white" class="nav-button cabinet__menu-item"> | 183 | <a style="background-color: white" class="nav-button cabinet__menu-item"> |
172 | <i> | 184 | <i> |
173 | <svg> | 185 | <svg> |
174 | <use xlink:href="{{ asset('images/sprite.svg#settings') }}"></use> | 186 | <use xlink:href="{{ asset('images/sprite.svg#settings') }}"></use> |
175 | </svg> | 187 | </svg> |
176 | </i> | 188 | </i> |
177 | <span>Настройки</span> | 189 | <span>Настройки</span> |
178 | </a> | 190 | </a> |
179 | </li> | 191 | </li> |
180 | <li> | 192 | <li> |
181 | <a href="{{ route('employer.subscribe') }}" class="cabinet__menu-item @if ($item==11) active @endif"> | 193 | <a href="{{ route('employer.subscribe') }}" class="cabinet__menu-item @if ($item==11) active @endif"> |
182 | <i><svg> | 194 | <i><svg> |
183 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-11') }}"></use> | 195 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-11') }}"></use> |
184 | </svg></i> | 196 | </svg></i> |
185 | <span>Настройки уведомлений</span> | 197 | <span>Настройки уведомлений</span> |
186 | </a> | 198 | </a> |
187 | </li> | 199 | </li> |
188 | <li> | 200 | <li> |
189 | <a href="{{ route('employer.password_reset') }}" class="cabinet__menu-item green @if ($item==13) active @endif"> | 201 | <a href="{{ route('employer.password_reset') }}" class="cabinet__menu-item green @if ($item==13) active @endif"> |
190 | <i></i> | 202 | <i></i> |
191 | <span>Сменить пароль</span> | 203 | <span>Сменить пароль</span> |
192 | </a> | 204 | </a> |
193 | </li> | 205 | </li> |
194 | <li> | 206 | <li> |
195 | <a href="{{ route('employer.delete_people') }}" class="cabinet__menu-item red @if ($item==14) active @endif"> | 207 | <a href="{{ route('employer.delete_people') }}" class="cabinet__menu-item red @if ($item==14) active @endif"> |
196 | <i></i> | 208 | <i></i> |
197 | <span>Удалить профиль</span> | 209 | <span>Удалить профиль</span> |
198 | </a> | 210 | </a> |
199 | </li> | 211 | </li> |
200 | </ul> | 212 | </ul> |
201 | </nav> | 213 | </nav> |
202 | </div> | 214 | </div> |
203 | <div class="cabinet__menu-bottom"> | 215 | <div class="cabinet__menu-bottom"> |
204 | <a href="{{ route('logout') }}" class="button cabinet__menu-leave"> | 216 | <a href="{{ route('logout') }}" class="button cabinet__menu-leave"> |
205 | <svg> | 217 | <svg> |
206 | <use xlink:href="{{ asset('images/sprite.svg#leave') }}"></use> | 218 | <use xlink:href="{{ asset('images/sprite.svg#leave') }}"></use> |
207 | </svg> | 219 | </svg> |
208 | Выход | 220 | Выход |
209 | </a> | 221 | </a> |
210 | <span class="cabinet__menu-copy"> | 222 | <span class="cabinet__menu-copy"> |
211 | © 2020 – Rekamore.su | 223 | © 2020 – Rekamore.su |
212 | </span> | 224 | </span> |
213 | </div> | 225 | </div> |
214 | </div> | 226 | </div> |
215 | </div> | 227 | </div> |
216 | </div> | 228 | </div> |
217 | 229 | ||
218 | <script> | 230 | <script> |
219 | $(function(){ | 231 | $(function(){ |
220 | var active_menu = $('.cabinet__menu-item.active'); | 232 | var active_menu = $('.cabinet__menu-item.active'); |
221 | if (active_menu.length === 1){ | 233 | if (active_menu.length === 1){ |
222 | $('.cabinet__menu-toper-text').html(active_menu.html()); | 234 | $('.cabinet__menu-toper-text').html(active_menu.html()); |
223 | } | 235 | } |
224 | }); | 236 | }); |
225 | 237 | ||
226 | $(function() { | 238 | $(function() { |
227 | // Bind Click event to the drop down navigation button | 239 | // Bind Click event to the drop down navigation button |
228 | $(".nav-button").click(function() { | 240 | $(".nav-button").click(function() { |