Commit ab318986ffaf0ccbcfa6f25c7affb4c2c32bd0fc

Authored by Hayk Nazaryan
1 parent daf1507c46
Exists in master

menu link changes

Showing 1 changed file with 27 additions and 0 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
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#cabinet-2') }}"></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-2') }}"></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-2') }}"></use>
127 </svg>
128 </i>
129 <span>База резюме</span>
130 </a>
104 @endif 131 @endif
105 @endif 132 @endif
106 133
107 134
108 <a href="{{ route('employer.send_all_messages') }}" class="cabinet__menu-item @if ($item==9) active @endif"> 135 <a href="{{ route('employer.send_all_messages') }}" class="cabinet__menu-item @if ($item==9) active @endif">
109 <i> 136 <i>
110 <svg> 137 <svg>
111 <use xlink:href="{{ asset('images/sprite.svg#cabinet-9') }}"></use> 138 <use xlink:href="{{ asset('images/sprite.svg#cabinet-9') }}"></use>
112 </svg> 139 </svg>
113 </i> 140 </i>
114 <span>Рассылка сообщений</span> 141 <span>Рассылка сообщений</span>
115 </a> 142 </a>
116 <a href="{{ route('employer.autoresponder') }}" class="cabinet__menu-item @if ($item==16) active @endif"> 143 <a href="{{ route('employer.autoresponder') }}" class="cabinet__menu-item @if ($item==16) active @endif">
117 <i> 144 <i>
118 <svg> 145 <svg>
119 <use xlink:href="{{ asset('images/sprite.svg#answering') }}"></use> 146 <use xlink:href="{{ asset('images/sprite.svg#answering') }}"></use>
120 </svg> 147 </svg>
121 </i> 148 </i>
122 <span>Автоответчик</span> 149 <span>Автоответчик</span>
123 </a> 150 </a>
124 <a href="{{ route('employer.faq') }}" class="cabinet__menu-item @if ($item==10) active @endif"> 151 <a href="{{ route('employer.faq') }}" class="cabinet__menu-item @if ($item==10) active @endif">
125 <i> 152 <i>
126 <svg> 153 <svg>
127 <use xlink:href="{{ asset('images/sprite.svg#cabinet-10') }}"></use> 154 <use xlink:href="{{ asset('images/sprite.svg#cabinet-10') }}"></use>
128 </svg> 155 </svg>
129 </i> 156 </i>
130 <span>FAQ</span> 157 <span>FAQ</span>
131 </a> 158 </a>
132 <a href="{{ route('employer.slider_flot') }}" class="cabinet__menu-item @if ($item==12) active @endif"> 159 <a href="{{ route('employer.slider_flot') }}" class="cabinet__menu-item @if ($item==12) active @endif">
133 <i> 160 <i>
134 <svg> 161 <svg>
135 <use xlink:href="{{ asset('images/sprite.svg#cabinet-11') }}"></use> 162 <use xlink:href="{{ asset('images/sprite.svg#cabinet-11') }}"></use>
136 </svg> 163 </svg>
137 </i> 164 </i>
138 <span>Мой флот</span> 165 <span>Мой флот</span>
139 </a> 166 </a>
140 167
141 <nav> 168 <nav>
142 <ul class="drop-down closed"> 169 <ul class="drop-down closed">
143 <li> 170 <li>
144 <a style="background-color: white" class="nav-button cabinet__menu-item"> 171 <a style="background-color: white" class="nav-button cabinet__menu-item">
145 <i> 172 <i>
146 <svg> 173 <svg>
147 <use xlink:href="{{ asset('images/sprite.svg#settings') }}"></use> 174 <use xlink:href="{{ asset('images/sprite.svg#settings') }}"></use>
148 </svg> 175 </svg>
149 </i> 176 </i>
150 <span>Настройки</span> 177 <span>Настройки</span>
151 </a> 178 </a>
152 </li> 179 </li>
153 <li> 180 <li>
154 <a href="{{ route('employer.subscribe') }}" class="cabinet__menu-item @if ($item==11) active @endif"> 181 <a href="{{ route('employer.subscribe') }}" class="cabinet__menu-item @if ($item==11) active @endif">
155 <i><svg> 182 <i><svg>
156 <use xlink:href="{{ asset('images/sprite.svg#cabinet-11') }}"></use> 183 <use xlink:href="{{ asset('images/sprite.svg#cabinet-11') }}"></use>
157 </svg></i> 184 </svg></i>
158 <span>Настройки уведомлений</span> 185 <span>Настройки уведомлений</span>
159 </a> 186 </a>
160 </li> 187 </li>
161 <li> 188 <li>
162 <a href="{{ route('employer.password_reset') }}" class="cabinet__menu-item green @if ($item==13) active @endif"> 189 <a href="{{ route('employer.password_reset') }}" class="cabinet__menu-item green @if ($item==13) active @endif">
163 <i></i> 190 <i></i>
164 <span>Сменить пароль</span> 191 <span>Сменить пароль</span>
165 </a> 192 </a>
166 </li> 193 </li>
167 <li> 194 <li>
168 <a href="{{ route('employer.delete_people') }}" class="cabinet__menu-item red @if ($item==14) active @endif"> 195 <a href="{{ route('employer.delete_people') }}" class="cabinet__menu-item red @if ($item==14) active @endif">
169 <i></i> 196 <i></i>
170 <span>Удалить профиль</span> 197 <span>Удалить профиль</span>
171 </a> 198 </a>
172 </li> 199 </li>
173 </ul> 200 </ul>
174 </nav> 201 </nav>
175 </div> 202 </div>
176 <div class="cabinet__menu-bottom"> 203 <div class="cabinet__menu-bottom">
177 <a href="{{ route('logout') }}" class="button cabinet__menu-leave"> 204 <a href="{{ route('logout') }}" class="button cabinet__menu-leave">
178 <svg> 205 <svg>
179 <use xlink:href="{{ asset('images/sprite.svg#leave') }}"></use> 206 <use xlink:href="{{ asset('images/sprite.svg#leave') }}"></use>
180 </svg> 207 </svg>
181 Выход 208 Выход
182 </a> 209 </a>
183 <span class="cabinet__menu-copy"> 210 <span class="cabinet__menu-copy">
184 &copy; 2020 &ndash; Rekamore.su 211 &copy; 2020 &ndash; Rekamore.su
185 </span> 212 </span>
186 </div> 213 </div>
187 </div> 214 </div>
188 </div> 215 </div>
189 </div> 216 </div>
190 217
191 <script> 218 <script>
192 $(function(){ 219 $(function(){
193 var active_menu = $('.cabinet__menu-item.active'); 220 var active_menu = $('.cabinet__menu-item.active');
194 if (active_menu.length === 1){ 221 if (active_menu.length === 1){
195 $('.cabinet__menu-toper-text').html(active_menu.html()); 222 $('.cabinet__menu-toper-text').html(active_menu.html());
196 } 223 }
197 }); 224 });
198 225
199 $(function() { 226 $(function() {
200 // Bind Click event to the drop down navigation button 227 // Bind Click event to the drop down navigation button
201 $(".nav-button").click(function() { 228 $(".nav-button").click(function() {
202 /* Toggle the CSS closed class which reduces the height of the UL thus 229 /* Toggle the CSS closed class which reduces the height of the UL thus
203 hiding all LI apart from the first */ 230 hiding all LI apart from the first */
204 $(this).parent().parent().toggleClass("closed"); 231 $(this).parent().parent().toggleClass("closed");
205 }); 232 });
206 233
207 }); 234 });
208 </script> 235 </script>
209 236