Commit a6c326d8edc4d643071a8d5bbacb716229b6aff7

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

Обновление2

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