Commit 2a5b45db10a2fd907357554ec3ed1c84295fcbdb

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

Коммит по кабинету

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