Commit e1cd480e5d59851094440901e5b06062a79485eb
Exists in
master
Merge branch 'master' of http://gitlab.nologostudio.ru/alarionov/rekamore-su
Showing 1 changed file 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 | ||
83 | <a href="{{ route('page', ['pages' => "Usloviya-razmescheniya"]) }}" class="cabinet__menu-item @if ($item==2) active @endif"> | ||
84 | <i> | ||
85 | <svg> | ||
86 | <use xlink:href="{{ asset('images/sprite.svg#refresh') }}"></use> | ||
87 | </svg> | ||
88 | </i> | ||
89 | <span>Автоподнятие вакансий</span> | ||
90 | </a> | ||
82 | @endif | 91 | @endif |
83 | 92 | ||
84 | @if(Auth()->user()->show_database) | 93 | @if(Auth()->user()->show_database) |
85 | <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"> |
86 | <i> | 95 | <i> |
87 | <svg> | 96 | <svg> |
88 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-7')}}"></use> | 97 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-7')}}"></use> |
89 | </svg> | 98 | </svg> |
90 | </i> | 99 | </i> |
91 | <span>База данных</span> | 100 | <span>База данных</span> |
92 | </a> | 101 | </a> |
102 | @else | ||
103 | <a href="{{ route('page', ['pages' => "Usloviya-razmescheniya"]) }}" class="cabinet__menu-item @if ($item==2) active @endif"> | ||
104 | <i> | ||
105 | <svg> | ||
106 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-7') }}"></use> | ||
107 | </svg> | ||
108 | </i> | ||
109 | <span>База данных</span> | ||
110 | </a> | ||
93 | @endif | 111 | @endif |
94 | 112 | ||
95 | @if(Auth()->user()->is_lookin) | 113 | @if(Auth()->user()->is_lookin) |
96 | <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"> |
97 | <i> | 115 | <i> |
98 | <svg> | 116 | <svg> |
99 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-8') }}"></use> | 117 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-8') }}"></use> |
100 | </svg> | 118 | </svg> |
101 | </i> | 119 | </i> |
102 | <span>База резюме</span> | 120 | <span>База резюме</span> |
103 | </a> | 121 | </a> |
122 | @else | ||
123 | <a href="{{ route('page', ['pages' => "Usloviya-razmescheniya"]) }}" class="cabinet__menu-item @if ($item==2) active @endif"> | ||
124 | <i> | ||
125 | <svg> | ||
126 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-8') }}"></use> | ||
127 | </svg> | ||
128 | </i> | ||
129 | <span>База резюме</span> | ||
130 | </a> | ||
104 | @endif | 131 | @endif |
105 | @endif | 132 | @endif |
106 | 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 | |||
107 | 154 | ||
108 | <a href="{{ route('employer.send_all_messages') }}" class="cabinet__menu-item @if ($item==9) active @endif"> | ||
109 | <i> | ||
110 | <svg> | ||
111 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-9') }}"></use> | ||
112 | </svg> | ||
113 | </i> | ||
114 | <span>Рассылка сообщений</span> | ||
115 | </a> | ||
116 | <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"> |
117 | <i> | 156 | <i> |
118 | <svg> | 157 | <svg> |
119 | <use xlink:href="{{ asset('images/sprite.svg#answering') }}"></use> | 158 | <use xlink:href="{{ asset('images/sprite.svg#answering') }}"></use> |
120 | </svg> | 159 | </svg> |
121 | </i> | 160 | </i> |
122 | <span>Автоответчик</span> | 161 | <span>Автоответчик</span> |
123 | </a> | 162 | </a> |
124 | <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"> |
125 | <i> | 164 | <i> |
126 | <svg> | 165 | <svg> |
127 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-10') }}"></use> | 166 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-10') }}"></use> |
128 | </svg> | 167 | </svg> |
129 | </i> | 168 | </i> |
130 | <span>FAQ</span> | 169 | <span>FAQ</span> |
131 | </a> | 170 | </a> |
132 | <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"> |
133 | <i> | 172 | <i> |
134 | <svg> | 173 | <svg> |
135 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-11') }}"></use> | 174 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-11') }}"></use> |
136 | </svg> | 175 | </svg> |
137 | </i> | 176 | </i> |
138 | <span>Мой флот</span> | 177 | <span>Мой флот</span> |
139 | </a> | 178 | </a> |
140 | 179 | ||
141 | <nav> | 180 | <nav> |
142 | <ul class="drop-down closed"> | 181 | <ul class="drop-down closed"> |
143 | <li> | 182 | <li> |
144 | <a style="background-color: white" class="nav-button cabinet__menu-item"> | 183 | <a style="background-color: white" class="nav-button cabinet__menu-item"> |
145 | <i> | 184 | <i> |
146 | <svg> | 185 | <svg> |
147 | <use xlink:href="{{ asset('images/sprite.svg#settings') }}"></use> | 186 | <use xlink:href="{{ asset('images/sprite.svg#settings') }}"></use> |
148 | </svg> | 187 | </svg> |
149 | </i> | 188 | </i> |
150 | <span>Настройки</span> | 189 | <span>Настройки</span> |
151 | </a> | 190 | </a> |
152 | </li> | 191 | </li> |
153 | <li> | 192 | <li> |
154 | <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"> |
155 | <i><svg> | 194 | <i><svg> |
156 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-11') }}"></use> | 195 | <use xlink:href="{{ asset('images/sprite.svg#cabinet-11') }}"></use> |
157 | </svg></i> | 196 | </svg></i> |
158 | <span>Настройки уведомлений</span> | 197 | <span>Настройки уведомлений</span> |
159 | </a> | 198 | </a> |
160 | </li> | 199 | </li> |
161 | <li> | 200 | <li> |
162 | <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"> |
163 | <i></i> | 202 | <i></i> |
164 | <span>Сменить пароль</span> | 203 | <span>Сменить пароль</span> |
165 | </a> | 204 | </a> |
166 | </li> | 205 | </li> |
167 | <li> | 206 | <li> |
168 | <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"> |
169 | <i></i> | 208 | <i></i> |
170 | <span>Удалить профиль</span> | 209 | <span>Удалить профиль</span> |
171 | </a> | 210 | </a> |
172 | </li> | 211 | </li> |
173 | </ul> | 212 | </ul> |
174 | </nav> | 213 | </nav> |
175 | </div> | 214 | </div> |
176 | <div class="cabinet__menu-bottom"> | 215 | <div class="cabinet__menu-bottom"> |
177 | <a href="{{ route('logout') }}" class="button cabinet__menu-leave"> | 216 | <a href="{{ route('logout') }}" class="button cabinet__menu-leave"> |
178 | <svg> | 217 | <svg> |
179 | <use xlink:href="{{ asset('images/sprite.svg#leave') }}"></use> | 218 | <use xlink:href="{{ asset('images/sprite.svg#leave') }}"></use> |
180 | </svg> | 219 | </svg> |
181 | Выход | 220 | Выход |
182 | </a> | 221 | </a> |
183 | <span class="cabinet__menu-copy"> | 222 | <span class="cabinet__menu-copy"> |
184 | © 2020 – Rekamore.su | 223 | © 2020 – Rekamore.su |
185 | </span> | 224 | </span> |
186 | </div> | 225 | </div> |
187 | </div> | 226 | </div> |
188 | </div> | 227 | </div> |
189 | </div> | 228 | </div> |
190 | 229 | ||
191 | <script> | 230 | <script> |
192 | $(function(){ | 231 | $(function(){ |
193 | var active_menu = $('.cabinet__menu-item.active'); | 232 | var active_menu = $('.cabinet__menu-item.active'); |
194 | if (active_menu.length === 1){ | 233 | if (active_menu.length === 1){ |
195 | $('.cabinet__menu-toper-text').html(active_menu.html()); | 234 | $('.cabinet__menu-toper-text').html(active_menu.html()); |
196 | } | 235 | } |
197 | }); | 236 | }); |
198 | 237 | ||
199 | $(function() { | 238 | $(function() { |
200 | // Bind Click event to the drop down navigation button | 239 | // Bind Click event to the drop down navigation button |
201 | $(".nav-button").click(function() { | 240 | $(".nav-button").click(function() { |