Compare View

switch
from
...
to
 
Commits (2)

Changes

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