Commit 2b96ca557dfcd5b56c0e92eff72f96f88a1ad9ad

Authored by Андрей Ларионов
1 parent f46e3cd1e4
Exists in master

Обновление

Showing 2 changed files with 13 additions and 5 deletions Inline Diff

resources/views/employers/cabinet45.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 @section('content') 6 @section('content')
7 <section class="cabinet"> 7 <section class="cabinet">
8 <div class="container"> 8 <div class="container">
9 <ul class="breadcrumbs cabinet__breadcrumbs"> 9 <ul class="breadcrumbs cabinet__breadcrumbs">
10 <li><a href="{{ route('index') }}">Главная</a></li> 10 <li><a href="{{ route('index') }}">Главная</a></li>
11 <li><b>Личный кабинет</b></li> 11 <li><b>Личный кабинет</b></li>
12 </ul> 12 </ul>
13 <div class="cabinet__wrapper"> 13 <div class="cabinet__wrapper">
14 <div class="cabinet__side"> 14 <div class="cabinet__side">
15 <div class="cabinet__side-toper"> 15 <div class="cabinet__side-toper">
16 <div class="cabinet__side-toper-pic"> 16 <div class="cabinet__side-toper-pic">
17 @if (isset($Employer[0]->logo)) 17 @if (!empty($Employer[0]->logo))
18 <img src="{{ asset(Storage::url($Employer[0]->logo)) }}" width="150" alt="{{ $Employer[0]->name_company }}"> 18 <img src="{{ asset(Storage::url($Employer[0]->logo)) }}" width="150" alt="{{ $Employer[0]->name_company }}">
19 @else 19 @else
20 <img src="{{ asset('images/logo_emp.png') }}" width="150" alt="{{ $Employer[0]->name_company }}"/> 20 <img src="{{ asset('images/logo_emp.png') }}" width="150" alt="{{ $Employer[0]->name_company }}"/>
21 @endif 21 @endif
22 </div> 22 </div>
23 <b>{{ $Employer[0]->name_company }}</b> 23 <b>{{ $Employer[0]->name_company }}</b>
24 </div> 24 </div>
25 25
26 @include('employers.menu', ['item' => 1]) 26 @include('employers.menu', ['item' => 1])
27 27
28 </div> 28 </div>
29 <div class="cabinet__body"> 29 <div class="cabinet__body">
30 @include('messages_error') 30 @include('messages_error')
31 31
32 <form action="{{ route('employer.cabinet_save', ['Employer' => $Employer[0]->id]) }}" method="POST" enctype="multipart/form-data"> 32 <form action="{{ route('employer.cabinet_save', ['Employer' => $Employer[0]->id]) }}" method="POST" enctype="multipart/form-data">
33 @csrf 33 @csrf
34 <div class="cabinet__body-item"> 34 <div class="cabinet__body-item">
35 <div class="cabinet__descr"> 35 <div class="cabinet__descr">
36 <h2 class="title cabinet__title">Мой профиль</h2> 36 <h2 class="title cabinet__title">Мой профиль</h2>
37 <p class="cabinet__text">Все поля обязательны для заполнения *</p> 37 <p class="cabinet__text">Все поля обязательны для заполнения *</p>
38 </div> 38 </div>
39 <div class="cabinet__avatar"> 39 <div class="cabinet__avatar">
40 <div class="cabinet__avatar-pic"> 40 <div class="cabinet__avatar-pic">
41 @if (isset($Employer[0]->logo)) 41 @if (!empty($Employer[0]->logo))
42 <img src="{{ asset(Storage::url($Employer[0]->logo)) }}" width="150" alt="{{ $Employer[0]->name_company }}"> 42 <img src="{{ asset(Storage::url($Employer[0]->logo)) }}" width="150" alt="{{ $Employer[0]->name_company }}">
43 @else 43 @else
44 <img src="{{ asset('images/logo_emp.png') }}" width="150" alt="{{ $Employer[0]->name_company }}"/> 44 <img src="{{ asset('images/logo_emp.png') }}" width="150" alt="{{ $Employer[0]->name_company }}"/>
45 @endif 45 @endif
46 </div> 46 </div>
47 <div class="cabinet__avatar-form"> 47 <div class="cabinet__avatar-form">
48 <label class="file"> 48 <label class="file">
49 <span class="file__input"> 49 <span class="file__input">
50 <input type="file" name="logo"> 50 <input type="file" name="logo">
51 <span class="button"> 51 <span class="button">
52 <svg> 52 <svg>
53 <use xlink:href="{{ asset('images/sprite.svg#plus') }}"></use> 53 <use xlink:href="{{ asset('images/sprite.svg#plus') }}"></use>
54 </svg> 54 </svg>
55 Загрузить 55 Загрузить
56 </span> 56 </span>
57 </span> 57 </span>
58 </label> 58 </label>
59 <p class="cabinet__text">Загрузите логотип в формате .svg, .jpg, .png или .jpeg</p> 59 <p class="cabinet__text">Загрузите логотип в формате .svg, .jpg, .png или .jpeg</p>
60 </div> 60 </div>
61 </div> 61 </div>
62 <div class="cabinet__inputs"> 62 <div class="cabinet__inputs">
63 <div class="cabinet__inputs-item form-group"> 63 <div class="cabinet__inputs-item form-group">
64 <label class="form-group__label">Название судоходной компании</label> 64 <label class="form-group__label">Название судоходной компании</label>
65 <div class="form-group__item"> 65 <div class="form-group__item">
66 <input type="text" class="input" name="name_company" id="name_company" placeholder="ООО Река Море" value="{{ old('name_company') ?? $Employer[0]->name_company ?? '' }}" required> 66 <input type="text" class="input" name="name_company" id="name_company" placeholder="ООО Река Море" value="{{ old('name_company') ?? $Employer[0]->name_company ?? '' }}" required>
67 @error('name_company') 67 @error('name_company')
68 <span class="text-xs text-red-600"> 68 <span class="text-xs text-red-600">
69 {{ $message }} 69 {{ $message }}
70 </span> 70 </span>
71 @enderror 71 @enderror
72 </div> 72 </div>
73 </div> 73 </div>
74 <div class="cabinet__inputs-item form-group"> 74 <div class="cabinet__inputs-item form-group">
75 <label class="form-group__label">Электронная почта</label> 75 <label class="form-group__label">Электронная почта</label>
76 <div class="form-group__item"> 76 <div class="form-group__item">
77 <input type="email" name="email" class="input" placeholder="info@rekamore.su" value="{{ old('email') ?? $Employer[0]->email ?? '' }}" required> 77 <input type="email" name="email" class="input" placeholder="info@rekamore.su" value="{{ old('email') ?? $Employer[0]->email ?? '' }}" required>
78 @error('email') 78 @error('email')
79 <span class="text-xs text-red-600"> 79 <span class="text-xs text-red-600">
80 {{ $message }} 80 {{ $message }}
81 </span> 81 </span>
82 @enderror 82 @enderror
83 </div> 83 </div>
84 </div> 84 </div>
85 <div class="cabinet__inputs-item form-group"> 85 <div class="cabinet__inputs-item form-group">
86 <label class="form-group__label">Номер телефона</label> 86 <label class="form-group__label">Номер телефона</label>
87 <div class="form-group__item"> 87 <div class="form-group__item">
88 <input type="tel" name="telephone" class="input" placeholder="+7 (___) ___-__-__" value="{{ old('telephone') ?? $Employer[0]->telephone ?? '' }}" required> 88 <input type="tel" name="telephone" class="input" placeholder="+7 (___) ___-__-__" value="{{ old('telephone') ?? $Employer[0]->telephone ?? '' }}" required>
89 @error('telephone') 89 @error('telephone')
90 <span class="text-xs text-red-600"> 90 <span class="text-xs text-red-600">
91 {{ $message }} 91 {{ $message }}
92 </span> 92 </span>
93 @enderror 93 @enderror
94 </div> 94 </div>
95 </div> 95 </div>
96 <div class="cabinet__inputs-item form-group"> 96 <div class="cabinet__inputs-item form-group">
97 <label class="form-group__label">Адрес компании</label> 97 <label class="form-group__label">Адрес компании</label>
98 <div class="form-group__item"> 98 <div class="form-group__item">
99 <input type="text" name="address" class="input" value="{{ old('address') ?? $Employer[0]->address ?? '' }}" placeholder="692904, Приморский край, г. Находка, ул. Портовая 3А, 5 этаж" required> 99 <input type="text" name="address" class="input" value="{{ old('address') ?? $Employer[0]->address ?? '' }}" placeholder="692904, Приморский край, г. Находка, ул. Портовая 3А, 5 этаж" required>
100 @error('address') 100 @error('address')
101 <span class="text-xs text-red-600"> 101 <span class="text-xs text-red-600">
102 {{ $message }} 102 {{ $message }}
103 </span> 103 </span>
104 @enderror 104 @enderror
105 </div> 105 </div>
106 </div> 106 </div>
107 <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> 107 <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group">
108 <label class="form-group__label">Ссылка на сайт</label> 108 <label class="form-group__label">Ссылка на сайт</label>
109 <div class="form-group__item"> 109 <div class="form-group__item">
110 <input type="url" name="site" class="input" value="{{ old('site') ?? $Employer[0]->site ?? '' }}" placeholder="https://rekamore.su" required> 110 <input type="url" name="site" class="input" value="{{ old('site') ?? $Employer[0]->site ?? '' }}" placeholder="https://rekamore.su" required>
111 @error('site') 111 @error('site')
112 <span class="text-xs text-red-600"> 112 <span class="text-xs text-red-600">
113 {{ $message }} 113 {{ $message }}
114 </span> 114 </span>
115 @enderror 115 @enderror
116 </div> 116 </div>
117 </div> 117 </div>
118 <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> 118 <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group">
119 <label class="form-group__label">О компании</label> 119 <label class="form-group__label">О компании</label>
120 <div class="form-group__item"> 120 <div class="form-group__item">
121 <textarea name="text" class="textarea" required>{{ old('text') ?? $Employer[0]->text ?? '' }}</textarea> 121 <textarea name="text" class="textarea" required>{{ old('text') ?? $Employer[0]->text ?? '' }}</textarea>
122 @error('text') 122 @error('text')
123 <span class="text-xs text-red-600"> 123 <span class="text-xs text-red-600">
124 {{ $message }} 124 {{ $message }}
125 </span> 125 </span>
126 @enderror 126 @enderror
127 </div> 127 </div>
128 </div> 128 </div>
129 </div> 129 </div>
130 </div><br> 130 </div><br>
131 <button type="submit" class="button cabinet__submit">Сохранить изменения</button> 131 <button type="submit" class="button cabinet__submit">Сохранить изменения</button>
132 </form> 132 </form>
133 133
134 <div class="cabinet__body-item"> 134 <div class="cabinet__body-item">
135 <div class="cabinet__descr"> 135 <div class="cabinet__descr">
136 <h2 class="title cabinet__title">Мой флот</h2> 136 <h2 class="title cabinet__title">Мой флот</h2>
137 </div> 137 </div>
138 138
139 <form action="{{ route('employer.save_add_flot') }}" method="POST" class="cabinet__add" enctype="multipart/form-data"> 139 <form action="{{ route('employer.save_add_flot') }}" method="POST" class="cabinet__add" enctype="multipart/form-data">
140 @csrf 140 @csrf
141 <label class="cabinet__add-pic" style="vertical-align: top"> 141 <label class="cabinet__add-pic" style="vertical-align: top">
142 <input type="file" name="image" id="image"> 142 <input type="file" name="image" id="image">
143 @error('image') 143 @error('image')
144 <span class="text-xs text-red-600"> 144 <span class="text-xs text-red-600">
145 {{ $message }} 145 {{ $message }}
146 </span> 146 </span>
147 @enderror 147 @enderror
148 <input type="hidden" name="employer_id" id="employer_id" value="{{ $Employer[0]->id }}"/> 148 <input type="hidden" name="employer_id" id="employer_id" value="{{ $Employer[0]->id }}"/>
149 <svg> 149 <svg>
150 <use xlink:href="{{ asset('images/sprite.svg#pic') }}"></use> 150 <use xlink:href="{{ asset('images/sprite.svg#pic') }}"></use>
151 </svg> 151 </svg>
152 <span> 152 <span>
153 <svg> 153 <svg>
154 <use xlink:href="{{ asset('images/sprite.svg#plus') }}"></use> 154 <use xlink:href="{{ asset('images/sprite.svg#plus') }}"></use>
155 </svg> 155 </svg>
156 Загрузить фото 156 Загрузить фото
157 </span> 157 </span>
158 </label> 158 </label>
159 159
160 <div class="cabinet__add-body"> 160 <div class="cabinet__add-body">
161 <div class="form-group"> 161 <div class="form-group">
162 <label class="form-group__label">Название корабля</label> 162 <label class="form-group__label">Название корабля</label>
163 <div class="form-group__item"> 163 <div class="form-group__item">
164 <input type="text" name="name" id="flot_name" class="input" placeholder="Корабль №000001" required> 164 <input type="text" name="name" id="flot_name" class="input" placeholder="Корабль №000001" required>
165 @error('name') 165 @error('name')
166 <span class="text-xs text-red-600"> 166 <span class="text-xs text-red-600">
167 {{ $message }} 167 {{ $message }}
168 </span> 168 </span>
169 @enderror 169 @enderror
170 </div> 170 </div>
171 </div> 171 </div>
172 <div class="form-group"> 172 <div class="form-group">
173 <label class="form-group__label">Описание</label> 173 <label class="form-group__label">Описание</label>
174 <div class="form-group__item"> 174 <div class="form-group__item">
175 <input type="text" name="text" id="flot_text" class="input" placeholder="Это судно находится..." required> 175 <input type="text" name="text" id="flot_text" class="input" placeholder="Это судно находится..." required>
176 @error('text') 176 @error('text')
177 <span class="text-xs text-red-600"> 177 <span class="text-xs text-red-600">
178 {{ $message }} 178 {{ $message }}
179 </span> 179 </span>
180 @enderror 180 @enderror
181 </div> 181 </div>
182 </div> 182 </div>
183 <div class="form-group"> 183 <div class="form-group">
184 <label class="form-group__label">Регион</label> 184 <label class="form-group__label">Регион</label>
185 <div class="form-group__item"> 185 <div class="form-group__item">
186 <input type="text" name="region" id="region" class="input" placeholder="Мурманск" required> 186 <input type="text" name="region" id="region" class="input" placeholder="Мурманск" required>
187 @error('region') 187 @error('region')
188 <span class="text-xs text-red-600"> 188 <span class="text-xs text-red-600">
189 {{ $message }} 189 {{ $message }}
190 </span> 190 </span>
191 @enderror 191 @enderror
192 </div> 192 </div>
193 </div> 193 </div>
194 <div class="form-group"> 194 <div class="form-group">
195 <label class="form-group__label">Мощность</label> 195 <label class="form-group__label">Мощность</label>
196 <div class="form-group__item"> 196 <div class="form-group__item">
197 <input type="text" name="power" id="flot_power" class="input" placeholder="Dw 40000 9000Kw" required> 197 <input type="text" name="power" id="flot_power" class="input" placeholder="Dw 40000 9000Kw" required>
198 @error('power') 198 @error('power')
199 <span class="text-xs text-red-600"> 199 <span class="text-xs text-red-600">
200 {{ $message }} 200 {{ $message }}
201 </span> 201 </span>
202 @enderror 202 @enderror
203 </div> 203 </div>
204 </div> 204 </div>
205 <button type="submit" class="button" id="ajax_flot" name="ajax_flot">Добавить флот</button> 205 <button type="submit" class="button" id="ajax_flot" name="ajax_flot">Добавить флот</button>
206 </div> 206 </div>
207 207
208 </form> 208 </form>
209 209
210 <div class="cabinet__fleet" id="ajax_flot_div" name="ajax_flot_div"> 210 <div class="cabinet__fleet" id="ajax_flot_div" name="ajax_flot_div">
211 @if (isset($Employer[0]->flots)) 211 @if (isset($Employer[0]->flots))
212 @if ($Employer[0]->flots->count()) 212 @if ($Employer[0]->flots->count())
213 @foreach ($Employer[0]->flots as $it) 213 @foreach ($Employer[0]->flots as $it)
214 <div class="cabinet__fleet-item main__employer-page-one-item"> 214 <div class="cabinet__fleet-item main__employer-page-one-item">
215 <a class="del die_black" href="{{ route('employer.delete_flot', ['Flot' => $it->id]) }}"> 215 <a class="del die_black" href="{{ route('employer.delete_flot', ['Flot' => $it->id]) }}">
216 <svg> 216 <svg>
217 <use xlink:href="{{ asset('images/sprite.svg#del') }}"></use> 217 <use xlink:href="{{ asset('images/sprite.svg#del') }}"></use>
218 </svg> 218 </svg>
219 </a> 219 </a>
220 @if (!empty($it->image)) 220 @if (!empty($it->image))
221 <img src="{{ asset(Storage::url($it->image)) }}" alt="{{ $it->name }}"> 221 <img src="{{ asset(Storage::url($it->image)) }}" alt="{{ $it->name }}">
222 @else 222 @else
223 <img src="{{ asset('images/default_ship.jpg') }}" alt="{{ $it->name }}"/> 223 <img src="{{ asset('images/default_ship.jpg') }}" alt="{{ $it->name }}"/>
224 @endif 224 @endif
225 <b>{{ $it->name }}</b> 225 <b>{{ $it->name }}</b>
226 <span>{{ $it->text }}</span> 226 <span>{{ $it->text }}</span>
227 </div> 227 </div>
228 @endforeach 228 @endforeach
229 @endif 229 @endif
230 @endif 230 @endif
231 </div> 231 </div>
232 </div> 232 </div>
233 </div> 233 </div>
234 </div> 234 </div>
235 </div> 235 </div>
236 </section> 236 </section>
237 </div> <!-- END TOP WRAPPER --> 237 </div> <!-- END TOP WRAPPER -->
238 @endsection 238 @endsection
239 239
resources/views/info_company_new.blade.php
1 @extends('layout.frontend', ['title' => 'Описание компании '.$title.'- РекаМоре']) 1 @extends('layout.frontend', ['title' => 'Описание компании '.$title.'- РекаМоре'])
2 2
3 @section('scripts') 3 @section('scripts')
4 <script> 4 <script>
5 console.log('Test system'); 5 console.log('Test system');
6 $(document).on('change', '#sort_ajax', function() { 6 $(document).on('change', '#sort_ajax', function() {
7 var this_ = $(this); 7 var this_ = $(this);
8 var val_ = this_.val(); 8 var val_ = this_.val();
9 console.log('sort items '+val_); 9 console.log('sort items '+val_);
10 10
11 $.ajax({ 11 $.ajax({
12 type: "GET", 12 type: "GET",
13 url: "{{ route('shipping_companies') }}", 13 url: "{{ route('shipping_companies') }}",
14 data: "sort="+val_+"&block=1", 14 data: "sort="+val_+"&block=1",
15 success: function (data) { 15 success: function (data) {
16 console.log('Выбор сортировки'); 16 console.log('Выбор сортировки');
17 console.log(data); 17 console.log(data);
18 $('#block_1').html(data); 18 $('#block_1').html(data);
19 }, 19 },
20 headers: { 20 headers: {
21 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') 21 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
22 }, 22 },
23 error: function (data) { 23 error: function (data) {
24 data = JSON.stringify(data); 24 data = JSON.stringify(data);
25 console.log('Error: ' + data); 25 console.log('Error: ' + data);
26 } 26 }
27 }); 27 });
28 28
29 $.ajax({ 29 $.ajax({
30 type: "GET", 30 type: "GET",
31 url: "{{ route('shipping_companies') }}", 31 url: "{{ route('shipping_companies') }}",
32 data: "sort="+val_+"&block=2", 32 data: "sort="+val_+"&block=2",
33 success: function (data) { 33 success: function (data) {
34 console.log('Выбор сортировки2'); 34 console.log('Выбор сортировки2');
35 console.log(data); 35 console.log(data);
36 history.pushState({}, '', "{{ route('shipping_companies') }}?sort="+val_+"@if (isset($_GET['page']))&page={{ $_GET['page'] }}@endif"); 36 history.pushState({}, '', "{{ route('shipping_companies') }}?sort="+val_+"@if (isset($_GET['page']))&page={{ $_GET['page'] }}@endif");
37 $('#block_2').html(data); 37 $('#block_2').html(data);
38 }, 38 },
39 headers: { 39 headers: {
40 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') 40 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
41 }, 41 },
42 error: function (data) { 42 error: function (data) {
43 data = JSON.stringify(data); 43 data = JSON.stringify(data);
44 console.log('Error: ' + data); 44 console.log('Error: ' + data);
45 } 45 }
46 }); 46 });
47 }); 47 });
48 48
49 $(document).ready(function(){ 49 $(document).ready(function(){
50 var sel = $('#select2-sort_ajax-container'); 50 var sel = $('#select2-sort_ajax-container');
51 var key = getUrlParameter('sort'); 51 var key = getUrlParameter('sort');
52 if (key !=='') { 52 if (key !=='') {
53 console.log(key); 53 console.log(key);
54 switch (key) { 54 switch (key) {
55 case "default": sel.html('Сортировка (по умолчанию)'); break; 55 case "default": sel.html('Сортировка (по умолчанию)'); break;
56 case "name_up": sel.html('По имени (возрастание)'); break; 56 case "name_up": sel.html('По имени (возрастание)'); break;
57 case "name_down": sel.html('По дате (убывание)'); break; 57 case "name_down": sel.html('По дате (убывание)'); break;
58 case "created_at_up": sel.html('По дате (возрастание)'); break; 58 case "created_at_up": sel.html('По дате (возрастание)'); break;
59 case "created_at_down": sel.html('По дате (убывание)'); break; 59 case "created_at_down": sel.html('По дате (убывание)'); break;
60 } 60 }
61 61
62 } 62 }
63 }); 63 });
64 64
65 //end 65 //end
66 $(document).on('click', '.js_send_it_button', function() { 66 $(document).on('click', '.js_send_it_button', function() {
67 var this_ = $(this); 67 var this_ = $(this);
68 var code_user_id = this_.attr('data-uid'); 68 var code_user_id = this_.attr('data-uid');
69 var code_to_user_id = this_.attr('data-tuid'); 69 var code_to_user_id = this_.attr('data-tuid');
70 var code_vacancy = this_.attr('data-vacancy'); 70 var code_vacancy = this_.attr('data-vacancy');
71 var user_id = $('#send_user_id'); 71 var user_id = $('#send_user_id');
72 var to_user_id = $('#send_to_user_id'); 72 var to_user_id = $('#send_to_user_id');
73 var vacancy = $('#send_vacancy'); 73 var vacancy = $('#send_vacancy');
74 74
75 console.log('Клик на кнопки...'); 75 console.log('Клик на кнопки...');
76 76
77 user_id.val(code_user_id); 77 user_id.val(code_user_id);
78 to_user_id.val(code_to_user_id); 78 to_user_id.val(code_to_user_id);
79 vacancy.val(code_vacancy); 79 vacancy.val(code_vacancy);
80 }); 80 });
81 </script> 81 </script>
82 @endsection 82 @endsection
83 83
84 @section('content') 84 @section('content')
85 <section class="thing"> 85 <section class="thing">
86 <div class="container"> 86 <div class="container">
87 <div class="thing__body"> 87 <div class="thing__body">
88 <ul class="breadcrumbs thing__breadcrumbs"> 88 <ul class="breadcrumbs thing__breadcrumbs">
89 <li><a href="{{ route('index') }}">Главная</a></li> 89 <li><a href="{{ route('index') }}">Главная</a></li>
90 <li><a href="{{ route('shipping_companies') }}">Работодатели</a></li> 90 <li><a href="{{ route('shipping_companies') }}">Работодатели</a></li>
91 <li><b>@isset($title) {{ $title }} @else Не указано @endif</b></li> 91 <li><b>@isset($title) {{ $title }} @else Не указано @endif</b></li>
92 </ul> 92 </ul>
93 @if ($company[0]->oficial_status == 1) 93 @if ($company[0]->oficial_status == 1)
94 <div class="thing__badge"> 94 <div class="thing__badge">
95 <svg> 95 <svg>
96 <use xlink:href="{{ asset('images/sprite.svg#badge') }}"></use> 96 <use xlink:href="{{ asset('images/sprite.svg#badge') }}"></use>
97 </svg> 97 </svg>
98 Компания проверена 98 Компания проверена
99 </div> 99 </div>
100 @endif 100 @endif
101 101
102 <img src="{{ asset(Storage::url($company[0]->logo)) }}" alt="{{ $company[0]->name_company }}" class="thing__pic"> 102 @if (!empty($company[0]->logo))
103 <img src="{{ asset(Storage::url($company[0]->logo)) }}" alt="{{ $company[0]->name_company }}" class="thing__pic">
104 @else
105 <img src="{{ asset('images/logo_emp.png') }}" alt="{{ $company[0]->name_company }}" class="thing__pic">
106 @endif
107
103 <h1 class="thing__title">{{ $company[0]->name_company }}</h1> 108 <h1 class="thing__title">{{ $company[0]->name_company }}</h1>
104 <p class="thing__text">{{ $company[0]->text }}</p> 109 <p class="thing__text">{{ $company[0]->text }}</p>
105 <div class="thing__buttons"> 110 <div class="thing__buttons">
106 <button type="button" class="button"> 111 <button type="button" class="button">
107 <svg> 112 <svg>
108 <use xlink:href="{{ asset('images/sprite.svg#grid-1') }}"></use> 113 <use xlink:href="{{ asset('images/sprite.svg#grid-1') }}"></use>
109 </svg> 114 </svg>
110 {{ $company[0]->ads->count() }} вакансии 115 {{ $company[0]->ads->count() }} вакансии
111 </button> 116 </button>
112 @if ($user_id == 0) 117 @if ($user_id == 0)
113 <a data-fancybox data-src="#question" data-options='{"touch":false,"autoFocus":false}' class="js_send_it_button button"> 118 <a data-fancybox data-src="#question" data-options='{"touch":false,"autoFocus":false}' class="js_send_it_button button">
114 Написать сообщение 119 Написать сообщение
115 </a> 120 </a>
116 @else 121 @else
117 <a data-fancybox data-src="#question" data-options='{"touch":false,"autoFocus":false}' class="js_send_it_button button"> 122 <a data-fancybox data-src="#question" data-options='{"touch":false,"autoFocus":false}' class="js_send_it_button button">
118 Написать сообщение 123 Написать сообщение
119 </a> 124 </a>
120 @endif 125 @endif
121 </div> 126 </div>
122 </div> 127 </div>
123 </div> 128 </div>
124 </section> 129 </section>
125 <main class="main"> 130 <main class="main">
126 <div class="container"> 131 <div class="container">
127 <div class="main__employer-page"> 132 <div class="main__employer-page">
128 <h2 class="main__employer-page-title">О компании</h2> 133 <h2 class="main__employer-page-title">О компании</h2>
129 <div class="main__employer-page-info"> 134 <div class="main__employer-page-info">
130 <div class="main__employer-page-item"> 135 <div class="main__employer-page-item">
131 <b>Адрес компании</b> 136 <b>Адрес компании</b>
132 <span> 137 <span>
133 {{ $company[0]->address }} 138 {{ $company[0]->address }}
134 </span> 139 </span>
135 </div> 140 </div>
136 <div class="main__employer-page-item"> 141 <div class="main__employer-page-item">
137 <b>Сайт</b> 142 <b>Сайт</b>
138 <span> 143 <span>
139 <a href="{{ $company[0]->site }}">{{ $company[0]->site }}</a> 144 <a href="{{ $company[0]->site }}">{{ $company[0]->site }}</a>
140 </span> 145 </span>
141 </div> 146 </div>
142 <div class="main__employer-page-item"> 147 <div class="main__employer-page-item">
143 <b>Почта</b> 148 <b>Почта</b>
144 <span> 149 <span>
145 <a href="mailto:">{{ $company[0]->email }}</a> 150 <a href="mailto:">{{ $company[0]->email }}</a>
146 </span> 151 </span>
147 </div> 152 </div>
148 <div class="main__employer-page-item"> 153 <div class="main__employer-page-item">
149 <b>Телефон</b> 154 <b>Телефон</b>
150 <span> 155 <span>
151 <a href="tel:{{ $company[0]->telephone }}">{{ $company[0]->telephone }}</a> 156 <a href="tel:{{ $company[0]->telephone }}">{{ $company[0]->telephone }}</a>
152 </span> 157 </span>
153 </div> 158 </div>
154 </div> 159 </div>
155 160
156 <div class="main__employer-page-item"> 161 <div class="main__employer-page-item">
157 <b>Описание</b> 162 <b>Описание</b>
158 <span> 163 <span>
159 {!! $company[0]->text !!} 164 {!! $company[0]->text !!}
160 </span> 165 </span>
161 </div> 166 </div>
162 167
163 <div> 168 <div>
164 169
165 <div class="main__employer-page-tabs"> 170 <div class="main__employer-page-tabs">
166 <button type="button" class="main__employer-page-tabs-item active" 171 <button type="button" class="main__employer-page-tabs-item active"
167 data-tab="1">Флот</button> 172 data-tab="1">Флот</button>
168 <button type="button" class="main__employer-page-tabs-item" data-tab="2">Вакансии</button> 173 <button type="button" class="main__employer-page-tabs-item" data-tab="2">Вакансии</button>
169 </div> 174 </div>
170 175
171 <div class="main__employer-page-body"> 176 <div class="main__employer-page-body">
172 <div class="main__employer-page-body-item showed" data-body="1"> 177 <div class="main__employer-page-body-item showed" data-body="1">
173 <div class="main__employer-page-one"> 178 <div class="main__employer-page-one">
174 @if ($company[0]->flots->count()) 179 @if ($company[0]->flots->count())
175 @foreach ($company[0]->flots as $flot) 180 @foreach ($company[0]->flots as $flot)
176 <a href="" class="main__employer-page-one-item"> 181 <a href="" class="main__employer-page-one-item">
177 <img src="{{ asset(Storage::url($flot->image)) }}" alt="{{ $flot->name }}"> 182 <img src="{{ asset(Storage::url($flot->image)) }}" alt="{{ $flot->name }}">
178 <b>{{ $flot->region }}</b> 183 <b>{{ $flot->region }}</b>
179 <span>{{ $flot->power }}</span> 184 <span>{{ $flot->power }}</span>
180 </a> 185 </a>
181 @endforeach 186 @endforeach
182 @endif 187 @endif
183 </div> 188 </div>
184 </div> 189 </div>
185 190
186 191
187 <div class="main__employer-page-body-item" data-body="2"> 192 <div class="main__employer-page-body-item" data-body="2">
188 <div class="main__employer-page-two"> 193 <div class="main__employer-page-two">
189 @foreach ($company[0]->ads as $job) 194 @foreach ($company[0]->ads as $job)
190 @foreach ($job->ad_job as $item) 195 @foreach ($job->ad_job as $item)
191 <div class="main__employer-page-two-item"> 196 <div class="main__employer-page-two-item">
192 <div class="main__employer-page-two-item-toper"> 197 <div class="main__employer-page-two-item-toper">
193 <!-- end --> 198 @if (!empty($company[0]->logo))
194 <img src="{{ asset(Storage::url($company[0]->logo)) }}" alt="{{ $job->name }}"> 199 <img src="{{ asset(Storage::url($company[0]->logo)) }}" alt="{{ $job->name }}">
200 @else
201 <img src="{{ asset('images/default_ship.jpg') }}" alt="{{ $job->name }}">
202 @endif
195 <span>{{ $job->name }}</span> 203 <span>{{ $job->name }}</span>
196 </div> 204 </div>
197 <div class="main__employer-page-two-item-title">{{ $item->flot }}</div> 205 <div class="main__employer-page-two-item-title">{{ $item->flot }}</div>
198 <div class="main__employer-page-two-item-text"> 206 <div class="main__employer-page-two-item-text">
199 <div class="main__employer-page-two-item-text-name"> 207 <div class="main__employer-page-two-item-text-name">
200 {{ $item->job_title->name }} 208 {{ $item->job_title->name }}
201 </div> 209 </div>
202 <div class="main__employer-page-two-item-text-body"> 210 <div class="main__employer-page-two-item-text-body">
203 <p>Зарплата:{{ $item->min_salary }} - {{ $item->max_salary }}р + {{ $item->sytki }} суточные.</p> 211 <p>Зарплата:{{ $item->min_salary }} - {{ $item->max_salary }}р + {{ $item->sytki }} суточные.</p>
204 <p>Контракт: {{ $item->period }} мес.</p> 212 <p>Контракт: {{ $item->period }} мес.</p>
205 </div> 213 </div>
206 </div> 214 </div>
207 <div class="main__employer-page-two-item-text"> 215 <div class="main__employer-page-two-item-text">
208 <div class="main__employer-page-two-item-text-name">Район работы</div> 216 <div class="main__employer-page-two-item-text-name">Район работы</div>
209 <div class="main__employer-page-two-item-text-body"> 217 <div class="main__employer-page-two-item-text-body">
210 <p>{{ $item->region }}</p> 218 <p>{{ $item->region }}</p>
211 </div> 219 </div>
212 </div> 220 </div>
213 <div class="main__employer-page-two-item-text"> 221 <div class="main__employer-page-two-item-text">
214 <div class="main__employer-page-two-item-text-name">Посадка</div> 222 <div class="main__employer-page-two-item-text-name">Посадка</div>
215 <div class="main__employer-page-two-item-text-body"> 223 <div class="main__employer-page-two-item-text-body">
216 <p> {{ $item->start }}</p> 224 <p> {{ $item->start }}</p>
217 {!! $item->description !!} 225 {!! $item->description !!}
218 </div> 226 </div>
219 </div> 227 </div>
220 <div class="main__employer-page-two-item-text"> 228 <div class="main__employer-page-two-item-text">
221 <div class="main__employer-page-two-item-text-name">Звонить по вопросам на: 229 <div class="main__employer-page-two-item-text-name">Звонить по вопросам на:
222 </div> 230 </div>
223 <div class="main__employer-page-two-item-text-body"> 231 <div class="main__employer-page-two-item-text-body">
224 <a href="tel:{{ $job->telephone }}">{{ $job->telephone }}</a> 232 <a href="tel:{{ $job->telephone }}">{{ $job->telephone }}</a>
225 </div> 233 </div>
226 </div> 234 </div>
227 <div class="main__employer-page-two-item-text"> 235 <div class="main__employer-page-two-item-text">
228 <div class="main__employer-page-two-item-text-name">Анкеты присылать на 236 <div class="main__employer-page-two-item-text-name">Анкеты присылать на
229 почту: 237 почту:
230 </div> 238 </div>
231 <div class="main__employer-page-two-item-text-body"> 239 <div class="main__employer-page-two-item-text-body">
232 <a href="mailto: {{ $job->email }}">{{ $job->email }}</a> 240 <a href="mailto: {{ $job->email }}">{{ $job->email }}</a>
233 </div> 241 </div>
234 </div> 242 </div>
235 <div class="main__employer-page-two-item-tags"> 243 <div class="main__employer-page-two-item-tags">
236 <span class="main__employer-page-two-item-tag">#{{ $item->job_title->name }}</span> 244 <span class="main__employer-page-two-item-tag">#{{ $item->job_title->name }}</span>
237 </div> 245 </div>
238 <div class="main__employer-page-two-item-buttons"> 246 <div class="main__employer-page-two-item-buttons">
239 247
240 <button type="button" data-fancybox data-src="#send" data-vacancy="{{ $item->job_title->id }}" data-uid="{{ $user_id }}" data-tuid="{{ $company[0]->users->id }}" data-options='{"touch":false,"autoFocus":false}' 248 <button type="button" data-fancybox data-src="#send" data-vacancy="{{ $item->job_title->id }}" data-uid="{{ $user_id }}" data-tuid="{{ $company[0]->users->id }}" data-options='{"touch":false,"autoFocus":false}'
241 class="button main__employer-page-two-item-button js_send_it_button">Оставить 249 class="button main__employer-page-two-item-button js_send_it_button">Оставить
242 отклик...</button> 250 отклик...</button>
243 251
244 <!--<a href="#" 252 <!--<a href="#"
245 class="button button_light main__employer-page-two-item-button">Подробнее</a>--> 253 class="button button_light main__employer-page-two-item-button">Подробнее</a>-->
246 </div> 254 </div>
247 <div class="main__employer-page-two-item-bottom"> 255 <div class="main__employer-page-two-item-bottom">
248 <div class="main__employer-page-two-item-bottom-date">{{ date('d.m.Y H:i:s', strtotime($job->updated_at)) }}</div> 256 <div class="main__employer-page-two-item-bottom-date">{{ date('d.m.Y H:i:s', strtotime($job->updated_at)) }}</div>
249 <button type="button" 257 <button type="button"
250 class="like main__employer-page-two-item-bottom-like js-toggle"> 258 class="like main__employer-page-two-item-bottom-like js-toggle">
251 <svg> 259 <svg>
252 <use xlink:href="{{ asset('images/sprite.svg#heart') }}"></use> 260 <use xlink:href="{{ asset('images/sprite.svg#heart') }}"></use>
253 </svg> 261 </svg>
254 </button> 262 </button>
255 </div> 263 </div>
256 </div> 264 </div>
257 @endforeach 265 @endforeach
258 @endforeach 266 @endforeach
259 <!--<button type="button" class="button button_light button_more main__employer-page-two-more js-toggle js-parent-toggle"> 267 <!--<button type="button" class="button button_light button_more main__employer-page-two-more js-toggle js-parent-toggle">
260 <span>Показать ещё</span> 268 <span>Показать ещё</span>
261 <span>Скрыть</span> 269 <span>Скрыть</span>
262 </button>--> 270 </button>-->
263 </div> 271 </div>
264 </div> 272 </div>
265 </div> 273 </div>
266 </div> 274 </div>
267 </div> 275 </div>
268 </div> 276 </div>
269 </main> 277 </main>
270 @endsection 278 @endsection
271 279