Commit 7a610b20eab03004058c7efc05b60f3fe02dde68

Authored by Андрей Ларионов
1 parent 85364e60c4

Раобота по слоям в pdf

Showing 2 changed files with 33 additions and 0 deletions Inline Diff

resources/views/layout/pdf-list-people.blade.php
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html lang="ru"> 2 <html lang="ru">
3 3
4 <head> 4 <head>
5 <meta charset="utf-8"> 5 <meta charset="utf-8">
6 <title>Резюме соискателя</title> 6 <title>Резюме соискателя</title>
7 <meta name="viewport" content="width=device-width,initial-scale=1"> 7 <meta name="viewport" content="width=device-width,initial-scale=1">
8 <meta name="theme-color" content="#377D87"> 8 <meta name="theme-color" content="#377D87">
9 <!--<link rel="stylesheet" href=" asset('css/style.css') }}">--> 9 <!--<link rel="stylesheet" href=" asset('css/style.css') }}">-->
10 <style> 10 <style>
11 body { 11 body {
12 font-family:'DejaVu Sans',sans-serif; 12 font-family:'DejaVu Sans',sans-serif;
13 background:#fff; 13 background:#fff;
14 font-size:1.6rem; 14 font-size:1.6rem;
15 font-weight:400; 15 font-weight:400;
16 color:#363A3F; 16 color:#363A3F;
17 } 17 }
18 18
19 .main { 19 .main {
20 padding: 30px 0; 20 padding: 30px 0;
21 } 21 }
22 22
23 .thing { 23 .thing {
24 color: #3a3b3c; 24 color: #3a3b3c;
25 /* background-color: #f2f5fc; */ 25 /* background-color: #f2f5fc; */
26 } 26 }
27 27
28 .thing__profile { 28 .thing__profile {
29 29
30 } 30 }
31 31
32 .thing__profile-photo { 32 .thing__profile-photo {
33 width: 200px; 33 width: 200px;
34 border-radius: 8px; 34 border-radius: 8px;
35 float: left; 35 float: left;
36 margin-right: 20px; 36 margin-right: 20px;
37 } 37 }
38 38
39 .thing__profile-body { 39 .thing__profile-body {
40 40
41 } 41 }
42 42
43 .thing__title { 43 .thing__title {
44 width: 100%; 44 width: 100%;
45 font-size: 32px; 45 font-size: 32px;
46 font-weight: 700; 46 font-weight: 700;
47 line-height: 1.1; 47 line-height: 1.1;
48 margin: 0; 48 margin: 0;
49 } 49 }
50 50
51 .thing__text { 51 .thing__text {
52 font-size: 14px; 52 font-size: 14px;
53 line-height: 1.4; 53 line-height: 1.4;
54 margin: 15px 0 0 0; 54 margin: 15px 0 0 0;
55 } 55 }
56 56
57 .main__spoiler { 57 .main__spoiler {
58 margin: 0px 0px 32px 0px; 58 margin: 0px 0px 32px 0px;
59 } 59 }
60 60
61 .main__spoiler-body { 61 .main__spoiler-body {
62 62
63 } 63 }
64 64
65 .main__table { 65 .main__table {
66 border-collapse: collapse; 66 border-collapse: collapse;
67 table-layout: fixed; 67 table-layout: fixed;
68 font-size: 14px; 68 font-size: 14px;
69 width: 100%; 69 width: 100%;
70 background: #ffffff; 70 background: #ffffff;
71 } 71 }
72 72
73 .main__table thead { 73 .main__table thead {
74 color: #ffffff; 74 color: #ffffff;
75 font-size: 16px; 75 font-size: 16px;
76 background-color: #377d87; 76 background-color: #377d87;
77 } 77 }
78 78
79 .main__table th { 79 .main__table th {
80 padding: 8px 16px; 80 padding: 8px 16px;
81 } 81 }
82 82
83 .main__table td { 83 .main__table td {
84 width: 40%; 84 width: 40%;
85 padding: 8px 16px; 85 padding: 8px 16px;
86 border: 1px solid #cecece; 86 border: 1px solid #cecece;
87 } 87 }
88 88
89 .main__table td b { 89 .main__table td b {
90 font-weight: 700; 90 font-weight: 700;
91 } 91 }
92 92
93 .main__table b { 93 .main__table b {
94 display: block; 94 display: block;
95 } 95 }
96 96
97 .main__table a { 97 .main__table a {
98 color: #377d87; 98 color: #377d87;
99 text-decoration: underline; 99 text-decoration: underline;
100 } 100 }
101 101
102 .main__table td + td { 102 .main__table td + td {
103 width: 60%; 103 width: 60%;
104 } 104 }
105 105
106 .main__table_three td { 106 .main__table_three td {
107 width: 25% !important; 107 width: 25% !important;
108 } 108 }
109 109
110 .main__table_three td:last-child { 110 .main__table_three td:last-child {
111 width: 50% !important; 111 width: 50% !important;
112 } 112 }
113 113
114 .main h2 { 114 .main h2 {
115 margin: 0; 115 margin: 0;
116 font-weight: 700; 116 font-weight: 700;
117 font-size: 30px; 117 font-size: 30px;
118 } 118 }
119 119
120 .main p { 120 .main p {
121 margin: 0; 121 margin: 0;
122 font-size: 14px; 122 font-size: 14px;
123 line-height: 1.4; 123 line-height: 1.4;
124 margin: 15px 0 0 0; 124 margin: 15px 0 0 0;
125 } 125 }
126 126
127 .main__resume-profile-info { 127 .main__resume-profile-info {
128 margin: 30px 0px 0px 0px; 128 margin: 30px 0px 0px 0px;
129 } 129 }
130 130
131 .main__resume-profile-info-title { 131 .main__resume-profile-info-title {
132 margin-bottom: 20px !important; 132 margin-bottom: 20px !important;
133 color: #3a3b3c; 133 color: #3a3b3c;
134 } 134 }
135 135
136 .main__resume-profile-info-body-item { 136 .main__resume-profile-info-body-item {
137 margin: 0px 0px 20px 0px; 137 margin: 0px 0px 20px 0px;
138 } 138 }
139 139
140 .main__resume-profile-info-body-subtitle { 140 .main__resume-profile-info-body-subtitle {
141 color: #4d88d9; 141 color: #4d88d9;
142 margin: 0px 0px 10px 0px; 142 margin: 0px 0px 10px 0px;
143 font-weight: 700; 143 font-weight: 700;
144 font-size: 22px; 144 font-size: 22px;
145 } 145 }
146 146
147 .main__resume-profile-info-body-inner { 147 .main__resume-profile-info-body-inner {
148 margin: 0; 148 margin: 0;
149 padding: 0; 149 padding: 0;
150 font-size: 12px; 150 font-size: 12px;
151 } 151 }
152 152
153 .main__resume-profile-info-body-inner li { 153 .main__resume-profile-info-body-inner li {
154 list-style-type: none; 154 list-style-type: none;
155 margin: 0px 0px 20px 0px; 155 margin: 0px 0px 20px 0px;
156 } 156 }
157 157
158 .main__resume-profile-info-body-inner b { 158 .main__resume-profile-info-body-inner b {
159 display: block; 159 display: block;
160 margin: 0px 0px 6px 0px; 160 margin: 0px 0px 6px 0px;
161 color: #377d87; 161 color: #377d87;
162 font-size: 14px; 162 font-size: 14px;
163 } 163 }
164 164
165 .main__resume-profile-info-body-inner span { 165 .main__resume-profile-info-body-inner span {
166 display: block; 166 display: block;
167 } 167 }
168 168
169 .main__resume-profile-info-body-inner a { 169 .main__resume-profile-info-body-inner a {
170 display: block; 170 display: block;
171 text-decoration: none; 171 text-decoration: none;
172 color: inherit; 172 color: inherit;
173 } 173 }
174 174
175 </style> 175 </style>
176 </head> 176 </head>
177 177
178 <body id="body" class="pdf"> 178 <body id="body" class="pdf">
179 @if (count($Query) > 0) 179 @if (count($Query) > 0)
180 @foreach ($Query as $Q) 180 @foreach ($Query as $Q)
181 <section class="thing thing_pdf"> 181 <section class="thing thing_pdf">
182 <div class="container"> 182 <div class="container">
183 <div class="thing__profile"> 183 <div class="thing__profile">
184 @if (!empty($Q['photo'])) 184 @if (!empty($Q['photo']))
185 <img src="{{ asset(Storage::url($Q['photo'])) }}" alt="" class="thing__profile-photo"> 185 <img src="{{ asset(Storage::url($Q['photo'])) }}" alt="" class="thing__profile-photo">
186 @else 186 @else
187 <img src="{{ asset('images/default_man.jpg') }}" alt="" class="thing__profile-photo"> 187 <img src="{{ asset('images/default_man.jpg') }}" alt="" class="thing__profile-photo">
188 @endif 188 @endif
189 <div class="thing__profile-body"> 189 <div class="thing__profile-body">
190 <h1 class="thing__title">@if (isset($Q['users']['surname'])) {{ $Q['users']['surname']." ".$Q['users']['name_man']." ".$Q['users']['surname2'] }} @endif</h1> 190 <h1 class="thing__title">@if (isset($Q['users']['surname'])) {{ $Q['users']['surname']." ".$Q['users']['name_man']." ".$Q['users']['surname2'] }} @endif</h1>
191 <div style="clear:both;"></div> 191 <div style="clear:both;"></div>
192 <p class="thing__text">{{ $Q['text'] }}</p> 192 <p class="thing__text">{{ $Q['text'] }}</p>
193 </div> 193 </div>
194 </div> 194 </div>
195 @if (!empty($Q['users']['file'])) 195 @if (!empty($Q['users']['file']))
196 <a href="{{ asset(Storage::url($Q['users']['file'])) }}">Анкета-файл</a> 196 <a href="{{ asset(Storage::url($Q['users']['file'])) }}">Анкета-файл</a>
197 @endif 197 @endif
198 </div> 198 </div>
199 </section> 199 </section>
200 200
201 <main class="main"> 201 <main class="main">
202 <div class="container"> 202 <div class="container">
203 203
204 <!--php dd($Query); endphp--> 204 <!--php dd($Query); endphp-->
205 205
206 <div class="main__resume-profile"> 206 <div class="main__resume-profile">
207 <div class="main__content"> 207 <div class="main__content">
208 <div class="main__spoiler"> 208 <div class="main__spoiler">
209 209
210 <!-- <button type="button" class="main__spoiler-toper js-toggle active">Основная 210 <!-- <button type="button" class="main__spoiler-toper js-toggle active">Основная
211 информация</button> --> 211 информация</button> -->
212 <div class="main__spoiler-body"> 212 <div class="main__spoiler-body">
213 <table class="main__table"> 213 <table class="main__table">
214 <thead> 214 <thead>
215 <tr> 215 <tr>
216 <th colspan="2">Основная информация</th> 216 <th colspan="2">Основная информация</th>
217 </tr> 217 </tr>
218 </thead> 218 </thead>
219 <tbody> 219 <tbody>
220 <tr> 220 <tr>
221 <td>Имя:</td> 221 <td>Имя:</td>
222 <td><b>@if (isset($Q['users']['name_man'])) {{ $Q['users']['name_man'] }} @endif</b></td> 222 <td><b>@if (isset($Q['users']['name_man'])) {{ $Q['users']['name_man'] }} @endif</b></td>
223 </tr> 223 </tr>
224 <tr> 224 <tr>
225 <td>Должность:</td> 225 <td>Должность:</td>
226 <td> 226 <td>
227 @foreach ($Q['job_titles'] as $it) 227 @foreach ($Q['job_titles'] as $it)
228 <b>{{ $it['name'] }}</b><br> 228 <b>{{ $it['name'] }}</b><br>
229 @endforeach 229 @endforeach
230 </td> 230 </td>
231 </tr> 231 </tr>
232 <tr> 232 <tr>
233 <td>Телефон:</td> 233 <td>Телефон:</td>
234 <td><b><a>{{ $Q['telephone'] }}</a></b> 234 <td><b><a>{{ $Q['telephone'] }}</a></b>
235 <b><a>{{ $Q['telephone2'] }}</a></b> 235 <b><a>{{ $Q['telephone2'] }}</a></b>
236 </td> 236 </td>
237 </tr> 237 </tr>
238 <tr> 238 <tr>
239 <td>E-mail:</td> 239 <td>E-mail:</td>
240 <td><b><a>{{ $Q['email'] }}</a></b></td> 240 <td><b><a>{{ $Q['email'] }}</a></b></td>
241 </tr> 241 </tr>
242 <tr> 242 <tr>
243 <td>Возраст:</td> 243 <td>Возраст:</td>
244 <td><b>{{ $Q['old_year'] }}</b></td> 244 <td><b>{{ $Q['old_year'] }}</b></td>
245 </tr> 245 </tr>
246 <tr> 246 <tr>
247 <td>Статус:</td> 247 <td>Статус:</td>
248 <td> 248 <td>
249 @php $code = $Q['status_work']; @endphp 249 @php $code = $Q['status_work']; @endphp
250 <b>@if ($code == 0) Ищу работу @elseif($code == 1) Не указано @else Не ищу работу @endif</b></td> 250 <b>@if ($code == 0) Ищу работу @elseif($code == 1) Не указано @else Не ищу работу @endif</b></td>
251 </tr> 251 </tr>
252 <tr> 252 <tr>
253 <td>Город проживания:</td> 253 <td>Город проживания:</td>
254 <td><b>{{ $Q['city'] }}</b></td> 254 <td><b>{{ $Q['city'] }}</b></td>
255 </tr> 255 </tr>
256 <tr> 256 <tr>
257 <td>Уровень английского:</td> 257 <td>Уровень английского:</td>
258 <td><b>{{ $Q['en_is'] }}</b></td> 258 <td><b>{{ $Q['en_is'] }}</b></td>
259 </tr> 259 </tr>
260 <tr> 260 <tr>
261 <td>Опыт работы:</td> 261 <td>Опыт работы:</td>
262 <td><b>{{ $Q['old_year'] }}</b></td> 262 <td><b>{{ $Q['old_year'] }}</b></td>
263 </tr> 263 </tr>
264 </tbody> 264 </tbody>
265 </table> 265 </table>
266 </div> 266 </div>
267 </div> 267 </div>
268 <div class="main__spoiler"> 268 <div class="main__spoiler">
269 <div class="main__spoiler-body"> 269 <div class="main__spoiler-body">
270 <table class="main__table"> 270 <table class="main__table">
271 <thead> 271 <thead>
272 <tr> 272 <tr>
273 <th colspan="2">Сертификаты / документы</th> 273 <th colspan="2">Сертификаты / документы</th>
274 </tr> 274 </tr>
275 </thead> 275 </thead>
276 <tbody> 276 <tbody>
277 @if (count($Q['sertificate'])) 277 @if (count($Q['sertificate']))
278 @foreach($Q['sertificate'] as $it) 278 @foreach($Q['sertificate'] as $it)
279 <tr> 279 <tr>
280 <td>{{ $it['name']." ".$it['education'] }}</td> 280 <td>{{ $it['name']." ".$it['education'] }}</td>
281 <td><a>{{ date('d.m.Y H:i:s', strtotime($it['date_begin']))."-".date('d.m.Y H:i:s', strtotime($it['end_begin'])) }}</a></td> 281 <td><a>{{ date('d.m.Y H:i:s', strtotime($it['date_begin']))."-".date('d.m.Y H:i:s', strtotime($it['end_begin'])) }}</a></td>
282 </tr> 282 </tr>
283 @endforeach 283 @endforeach
284 @else 284 @else
285 <tr> 285 <tr>
286 <td> - </td> 286 <td> - </td>
287 <td> - </td> 287 <td> - </td>
288 </tr> 288 </tr>
289 @endif 289 @endif
290 </tbody> 290 </tbody>
291 </table> 291 </table>
292 </div> 292 </div>
293 </div> 293 </div>
294 <div class="main__spoiler"> 294 <div class="main__spoiler">
295 <div class="main__spoiler-body"> 295 <div class="main__spoiler-body">
296 <table class="main__table main__table_three"> 296 <table class="main__table main__table_three">
297 <thead> 297 <thead>
298 <tr> 298 <tr>
299 <th colspan="3">Опыт работы</th> 299 <th colspan="3">Опыт работы</th>
300 </tr> 300 </tr>
301 </thead> 301 </thead>
302 <tbody> 302 <tbody>
303 @if (count($Q['place_worker']) > 0) 303 @if (count($Q['place_worker']) > 0)
304 @foreach($Q['place_worker'] as $it) 304 @foreach($Q['place_worker'] as $it)
305 <tr> 305 <tr>
306 <td>{{ $it['begin_work']." - ".$it['end_work'] }} 306 <td>{{ $it['begin_work']." - ".$it['end_work'] }}
307 </td> 307 </td>
308 <td><b>{{ $it['name_company'] }}</b> 308 <td><b>{{ $it['name_company'] }}</b>
309 </td> 309 </td>
310 <td><b>{{ $it['job_title'] }}</b> 310 <td><b>{{ $it['job_title'] }}</b>
311 Судно: {{ $it['teplohod'] }} 311 Судно: {{ $it['teplohod'] }}
312 </td> 312 </td>
313 </tr> 313 </tr>
314 @endforeach 314 @endforeach
315 @endif 315 @endif
316 </tbody> 316 </tbody>
317 </table> 317 </table>
318 </div> 318 </div>
319 </div> 319 </div>
320 </div> 320 </div>
321 <div class="main__resume-profile-about"> 321 <div class="main__resume-profile-about">
322 <h2 class="main__resume-profile-about-title">О себе</h2> 322 <h2 class="main__resume-profile-about-title">О себе</h2>
323 <p class="main__resume-profile-about-text">{{ $Q['text'] }}</p> 323 <p class="main__resume-profile-about-text">{{ $Q['text'] }}</p>
324 324
325 </div> 325 </div>
326 <div class="main__resume-profile-info"> 326 <div class="main__resume-profile-info">
327 <h2 class="main__resume-profile-info-title">Данные о прошлых компаниях</h2> 327 <h2 class="main__resume-profile-info-title">Данные о прошлых компаниях</h2>
328 <div class="main__resume-profile-info-body"> 328 <div class="main__resume-profile-info-body">
329 @if ((isset($Q['prev_company'])) && (count($Q['prev_company']) > 0)) 329 @if ((isset($Q['prev_company'])) && (count($Q['prev_company']) > 0))
330 @foreach ($Q['prev_company'] as $it) 330 @foreach ($Q['prev_company'] as $it)
331 <div class="main__resume-profile-info-body-item"> 331 <div class="main__resume-profile-info-body-item">
332 <h3 class="main__resume-profile-info-body-subtitle">{{ $it['name_company'] }}</h3> 332 <h3 class="main__resume-profile-info-body-subtitle">{{ $it['name_company'] }}</h3>
333 <ul class="main__resume-profile-info-body-inner"> 333 <ul class="main__resume-profile-info-body-inner">
334 <li> 334 <li>
335 <b>Руководитель</b> 335 <b>Руководитель</b>
336 <span>{{ $it['direct'] }}</span> 336 <span>{{ $it['direct'] }}</span>
337 </li> 337 </li>
338 <li> 338 <li>
339 <b>Телефон того, кто может дать рекомендацию</b> 339 <b>Телефон того, кто может дать рекомендацию</b>
340 <span> 340 <span>
341 <a>{{ $it['telephone'] }}</a> 341 <a>{{ $it['telephone'] }}</a>
342 <a>{{ $it['telephone2'] }}</a> 342 <a>{{ $it['telephone2'] }}</a>
343 </span> 343 </span>
344 </li> 344 </li>
345 </ul> 345 </ul>
346 </div> 346 </div>
347 @endforeach 347 @endforeach
348 @else
349 <div class="main__resume-profile-info-body-item">
350 <h3 class="main__resume-profile-info-body-subtitle">Не указано</h3>
351 <ul class="main__resume-profile-info-body-inner">
352 <li>
353 <b>Руководитель</b>
354 <span>Нет сведений</span>
355 </li>
356 <li>
357 <b>Телефон того, кто может дать рекомендацию</b>
358 <span>
359 <a>Нет сведений</a>
360 </span>
361 </li>
362 </ul>
363 </div>
364
348 @endif 365 @endif
349 </div> 366 </div>
350 </div> 367 </div>
351 </div> 368 </div>
352 369
353 </div> 370 </div>
354 </main> 371 </main>
355 @endforeach 372 @endforeach
356 @endif 373 @endif
357 </body> 374 </body>
358 </html> 375 </html>
359 376
resources/views/layout/pdf.blade.php
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html lang="ru"> 2 <html lang="ru">
3 3
4 <head> 4 <head>
5 <meta charset="utf-8"> 5 <meta charset="utf-8">
6 <title>Резюме соискателя</title> 6 <title>Резюме соискателя</title>
7 <meta name="viewport" content="width=device-width,initial-scale=1"> 7 <meta name="viewport" content="width=device-width,initial-scale=1">
8 <meta name="theme-color" content="#377D87"> 8 <meta name="theme-color" content="#377D87">
9 <!--<link rel="stylesheet" href=" asset('css/style.css') }}">--> 9 <!--<link rel="stylesheet" href=" asset('css/style.css') }}">-->
10 <style> 10 <style>
11 body { 11 body {
12 font-family:'DejaVu Sans',sans-serif; 12 font-family:'DejaVu Sans',sans-serif;
13 background:#fff; 13 background:#fff;
14 font-size:1.6rem; 14 font-size:1.6rem;
15 font-weight:400; 15 font-weight:400;
16 color:#363A3F; 16 color:#363A3F;
17 } 17 }
18 18
19 .main { 19 .main {
20 padding: 30px 0; 20 padding: 30px 0;
21 } 21 }
22 22
23 .thing { 23 .thing {
24 color: #3a3b3c; 24 color: #3a3b3c;
25 /* background-color: #f2f5fc; */ 25 /* background-color: #f2f5fc; */
26 } 26 }
27 27
28 .thing__profile { 28 .thing__profile {
29 29
30 } 30 }
31 31
32 .thing__profile-photo { 32 .thing__profile-photo {
33 width: 200px; 33 width: 200px;
34 border-radius: 8px; 34 border-radius: 8px;
35 float: left; 35 float: left;
36 margin-right: 20px; 36 margin-right: 20px;
37 } 37 }
38 38
39 .thing__profile-body { 39 .thing__profile-body {
40 40
41 } 41 }
42 42
43 .thing__title { 43 .thing__title {
44 width: 100%; 44 width: 100%;
45 font-size: 32px; 45 font-size: 32px;
46 font-weight: 700; 46 font-weight: 700;
47 line-height: 1.1; 47 line-height: 1.1;
48 margin: 0; 48 margin: 0;
49 } 49 }
50 50
51 .thing__text { 51 .thing__text {
52 font-size: 14px; 52 font-size: 14px;
53 line-height: 1.4; 53 line-height: 1.4;
54 margin: 15px 0 0 0; 54 margin: 15px 0 0 0;
55 } 55 }
56 56
57 .main__spoiler { 57 .main__spoiler {
58 margin: 0px 0px 32px 0px; 58 margin: 0px 0px 32px 0px;
59 } 59 }
60 60
61 .main__spoiler-body { 61 .main__spoiler-body {
62 62
63 } 63 }
64 64
65 .main__table { 65 .main__table {
66 border-collapse: collapse; 66 border-collapse: collapse;
67 table-layout: fixed; 67 table-layout: fixed;
68 font-size: 14px; 68 font-size: 14px;
69 width: 100%; 69 width: 100%;
70 background: #ffffff; 70 background: #ffffff;
71 } 71 }
72 72
73 .main__table thead { 73 .main__table thead {
74 color: #ffffff; 74 color: #ffffff;
75 font-size: 16px; 75 font-size: 16px;
76 background-color: #377d87; 76 background-color: #377d87;
77 } 77 }
78 78
79 .main__table th { 79 .main__table th {
80 padding: 8px 16px; 80 padding: 8px 16px;
81 } 81 }
82 82
83 .main__table td { 83 .main__table td {
84 width: 40%; 84 width: 40%;
85 padding: 8px 16px; 85 padding: 8px 16px;
86 border: 1px solid #cecece; 86 border: 1px solid #cecece;
87 } 87 }
88 88
89 .main__table td b { 89 .main__table td b {
90 font-weight: 700; 90 font-weight: 700;
91 } 91 }
92 92
93 .main__table b { 93 .main__table b {
94 display: block; 94 display: block;
95 } 95 }
96 96
97 .main__table a { 97 .main__table a {
98 color: #377d87; 98 color: #377d87;
99 text-decoration: underline; 99 text-decoration: underline;
100 } 100 }
101 101
102 .main__table td + td { 102 .main__table td + td {
103 width: 60%; 103 width: 60%;
104 } 104 }
105 105
106 .main__table_three td { 106 .main__table_three td {
107 width: 25% !important; 107 width: 25% !important;
108 } 108 }
109 109
110 .main__table_three td:last-child { 110 .main__table_three td:last-child {
111 width: 50% !important; 111 width: 50% !important;
112 } 112 }
113 113
114 .main h2 { 114 .main h2 {
115 margin: 0; 115 margin: 0;
116 font-weight: 700; 116 font-weight: 700;
117 font-size: 30px; 117 font-size: 30px;
118 } 118 }
119 119
120 .main p { 120 .main p {
121 margin: 0; 121 margin: 0;
122 font-size: 14px; 122 font-size: 14px;
123 line-height: 1.4; 123 line-height: 1.4;
124 margin: 15px 0 0 0; 124 margin: 15px 0 0 0;
125 } 125 }
126 126
127 .main__resume-profile-info { 127 .main__resume-profile-info {
128 margin: 30px 0px 0px 0px; 128 margin: 30px 0px 0px 0px;
129 } 129 }
130 130
131 .main__resume-profile-info-title { 131 .main__resume-profile-info-title {
132 margin-bottom: 20px !important; 132 margin-bottom: 20px !important;
133 color: #3a3b3c; 133 color: #3a3b3c;
134 } 134 }
135 135
136 .main__resume-profile-info-body-item { 136 .main__resume-profile-info-body-item {
137 margin: 0px 0px 20px 0px; 137 margin: 0px 0px 20px 0px;
138 } 138 }
139 139
140 .main__resume-profile-info-body-subtitle { 140 .main__resume-profile-info-body-subtitle {
141 color: #4d88d9; 141 color: #4d88d9;
142 margin: 0px 0px 10px 0px; 142 margin: 0px 0px 10px 0px;
143 font-weight: 700; 143 font-weight: 700;
144 font-size: 22px; 144 font-size: 22px;
145 } 145 }
146 146
147 .main__resume-profile-info-body-inner { 147 .main__resume-profile-info-body-inner {
148 margin: 0; 148 margin: 0;
149 padding: 0; 149 padding: 0;
150 font-size: 12px; 150 font-size: 12px;
151 } 151 }
152 152
153 .main__resume-profile-info-body-inner li { 153 .main__resume-profile-info-body-inner li {
154 list-style-type: none; 154 list-style-type: none;
155 margin: 0px 0px 20px 0px; 155 margin: 0px 0px 20px 0px;
156 } 156 }
157 157
158 .main__resume-profile-info-body-inner b { 158 .main__resume-profile-info-body-inner b {
159 display: block; 159 display: block;
160 margin: 0px 0px 6px 0px; 160 margin: 0px 0px 6px 0px;
161 color: #377d87; 161 color: #377d87;
162 font-size: 14px; 162 font-size: 14px;
163 } 163 }
164 164
165 .main__resume-profile-info-body-inner span { 165 .main__resume-profile-info-body-inner span {
166 display: block; 166 display: block;
167 } 167 }
168 168
169 .main__resume-profile-info-body-inner a { 169 .main__resume-profile-info-body-inner a {
170 display: block; 170 display: block;
171 text-decoration: none; 171 text-decoration: none;
172 color: inherit; 172 color: inherit;
173 } 173 }
174 174
175 </style> 175 </style>
176 </head> 176 </head>
177 177
178 <body id="body" class="pdf"> 178 <body id="body" class="pdf">
179 <section class="thing thing_pdf"> 179 <section class="thing thing_pdf">
180 <div class="container"> 180 <div class="container">
181 <div class="thing__profile"> 181 <div class="thing__profile">
182 @if (!empty($Query[0]['photo'])) 182 @if (!empty($Query[0]['photo']))
183 <img src="{{ asset(Storage::url($Query[0]['photo'])) }}" alt="" class="thing__profile-photo"> 183 <img src="{{ asset(Storage::url($Query[0]['photo'])) }}" alt="" class="thing__profile-photo">
184 @else 184 @else
185 <img src="{{ asset('images/default_man.jpg') }}" alt="" class="thing__profile-photo"> 185 <img src="{{ asset('images/default_man.jpg') }}" alt="" class="thing__profile-photo">
186 @endif 186 @endif
187 <div class="thing__profile-body"> 187 <div class="thing__profile-body">
188 <h1 class="thing__title">{{ $Query[0]['users']['surname']." ".$Query[0]['users']['name_man']." ".$Query[0]['users']['surname2'] }}</h1> 188 <h1 class="thing__title">{{ $Query[0]['users']['surname']." ".$Query[0]['users']['name_man']." ".$Query[0]['users']['surname2'] }}</h1>
189 <div style="clear:both;"></div> 189 <div style="clear:both;"></div>
190 <p class="thing__text">{{ $Query[0]['text'] }}</p> 190 <p class="thing__text">{{ $Query[0]['text'] }}</p>
191 </div> 191 </div>
192 </div> 192 </div>
193 @if (!empty($Query[0]['users']['file'])) 193 @if (!empty($Query[0]['users']['file']))
194 <a href="{{ asset(Storage::url($Query[0]['users']['file'])) }}">Анкета-файл</a> 194 <a href="{{ asset(Storage::url($Query[0]['users']['file'])) }}">Анкета-файл</a>
195 @endif 195 @endif
196 </div> 196 </div>
197 </section> 197 </section>
198 <main class="main"> 198 <main class="main">
199 <div class="container"> 199 <div class="container">
200 <div class="main__resume-profile"> 200 <div class="main__resume-profile">
201 <div class="main__content"> 201 <div class="main__content">
202 <div class="main__spoiler"> 202 <div class="main__spoiler">
203 <!-- <button type="button" class="main__spoiler-toper js-toggle active">Основная 203 <!-- <button type="button" class="main__spoiler-toper js-toggle active">Основная
204 информация</button> --> 204 информация</button> -->
205 <div class="main__spoiler-body"> 205 <div class="main__spoiler-body">
206 <table class="main__table"> 206 <table class="main__table">
207 <thead> 207 <thead>
208 <tr> 208 <tr>
209 <th colspan="2">Основная информация</th> 209 <th colspan="2">Основная информация</th>
210 </tr> 210 </tr>
211 </thead> 211 </thead>
212 <tbody> 212 <tbody>
213 <tr> 213 <tr>
214 <td>Имя:</td> 214 <td>Имя:</td>
215 <td><b>{{ $Query[0]['users']['name_man'] }}</b></td> 215 <td><b>{{ $Query[0]['users']['name_man'] }}</b></td>
216 </tr> 216 </tr>
217 <tr> 217 <tr>
218 <td>Должность:</td> 218 <td>Должность:</td>
219 <td> 219 <td>
220 @foreach ($Query[0]['job_titles'] as $it) 220 @foreach ($Query[0]['job_titles'] as $it)
221 <b>{{ $it['name'] }}</b><br> 221 <b>{{ $it['name'] }}</b><br>
222 @endforeach 222 @endforeach
223 </td> 223 </td>
224 </tr> 224 </tr>
225 <tr> 225 <tr>
226 <td>Телефон:</td> 226 <td>Телефон:</td>
227 <td><b><a>{{ $Query[0]['telephone'] }}</a></b> 227 <td><b><a>{{ $Query[0]['telephone'] }}</a></b>
228 <b><a>{{ $Query[0]['telephone2'] }}</a></b> 228 <b><a>{{ $Query[0]['telephone2'] }}</a></b>
229 </td> 229 </td>
230 </tr> 230 </tr>
231 <tr> 231 <tr>
232 <td>E-mail:</td> 232 <td>E-mail:</td>
233 <td><b><a>{{ $Query[0]['email'] }}</a></b></td> 233 <td><b><a>{{ $Query[0]['email'] }}</a></b></td>
234 </tr> 234 </tr>
235 <tr> 235 <tr>
236 <td>Возраст:</td> 236 <td>Возраст:</td>
237 <td><b>{{ $Query[0]['old_year'] }}</b></td> 237 <td><b>{{ $Query[0]['old_year'] }}</b></td>
238 </tr> 238 </tr>
239 <tr> 239 <tr>
240 <td>Статус:</td> 240 <td>Статус:</td>
241 <td> 241 <td>
242 @php $code = $Query[0]['status_work']; @endphp 242 @php $code = $Query[0]['status_work']; @endphp
243 <b>@if ($code == 0) Ищу работу @elseif($code == 1) Не указано @else Не ищу работу @endif</b></td> 243 <b>@if ($code == 0) Ищу работу @elseif($code == 1) Не указано @else Не ищу работу @endif</b></td>
244 </tr> 244 </tr>
245 <tr> 245 <tr>
246 <td>Город проживания:</td> 246 <td>Город проживания:</td>
247 <td><b>{{ $Query[0]['city'] }}</b></td> 247 <td><b>{{ $Query[0]['city'] }}</b></td>
248 </tr> 248 </tr>
249 <tr> 249 <tr>
250 <td>Уровень английского:</td> 250 <td>Уровень английского:</td>
251 <td><b>{{ $Query[0]['en_is'] }}</b></td> 251 <td><b>{{ $Query[0]['en_is'] }}</b></td>
252 </tr> 252 </tr>
253 <tr> 253 <tr>
254 <td>Опыт работы:</td> 254 <td>Опыт работы:</td>
255 <td><b>{{ $Query[0]['old_year'] }}</b></td> 255 <td><b>{{ $Query[0]['old_year'] }}</b></td>
256 </tr> 256 </tr>
257 </tbody> 257 </tbody>
258 </table> 258 </table>
259 </div> 259 </div>
260 </div> 260 </div>
261 <div class="main__spoiler"> 261 <div class="main__spoiler">
262 <div class="main__spoiler-body"> 262 <div class="main__spoiler-body">
263 <table class="main__table"> 263 <table class="main__table">
264 <thead> 264 <thead>
265 <tr> 265 <tr>
266 <th colspan="2">Сертификаты / документы</th> 266 <th colspan="2">Сертификаты / документы</th>
267 </tr> 267 </tr>
268 </thead> 268 </thead>
269 <tbody> 269 <tbody>
270 @if (count($Query[0]['sertificate'])) 270 @if (count($Query[0]['sertificate']))
271 @foreach($Query[0]['sertificate'] as $it) 271 @foreach($Query[0]['sertificate'] as $it)
272 <tr> 272 <tr>
273 <td>{{ $it['name']." ".$it['education'] }}</td> 273 <td>{{ $it['name']." ".$it['education'] }}</td>
274 <td><a>{{ date('d.m.Y H:i:s', strtotime($it['date_begin']))."-".date('d.m.Y H:i:s', strtotime($it['end_begin'])) }}</a></td> 274 <td><a>{{ date('d.m.Y H:i:s', strtotime($it['date_begin']))."-".date('d.m.Y H:i:s', strtotime($it['end_begin'])) }}</a></td>
275 </tr> 275 </tr>
276 @endforeach 276 @endforeach
277 @else 277 @else
278 <tr> 278 <tr>
279 <td> - </td> 279 <td> - </td>
280 <td> - </td> 280 <td> - </td>
281 </tr> 281 </tr>
282 @endif 282 @endif
283 </tbody> 283 </tbody>
284 </table> 284 </table>
285 </div> 285 </div>
286 </div> 286 </div>
287 <div class="main__spoiler"> 287 <div class="main__spoiler">
288 <div class="main__spoiler-body"> 288 <div class="main__spoiler-body">
289 <table class="main__table main__table_three"> 289 <table class="main__table main__table_three">
290 <thead> 290 <thead>
291 <tr> 291 <tr>
292 <th colspan="3">Опыт работы</th> 292 <th colspan="3">Опыт работы</th>
293 </tr> 293 </tr>
294 </thead> 294 </thead>
295 <tbody> 295 <tbody>
296 @if (count($Query[0]['place_worker']) > 0) 296 @if (count($Query[0]['place_worker']) > 0)
297 @foreach($Query[0]['place_worker'] as $it) 297 @foreach($Query[0]['place_worker'] as $it)
298 <tr> 298 <tr>
299 <td>{{ $it['begin_work']." - ".$it['end_work'] }} 299 <td>{{ $it['begin_work']." - ".$it['end_work'] }}
300 </td> 300 </td>
301 <td><b>{{ $it['name_company'] }}</b> 301 <td><b>{{ $it['name_company'] }}</b>
302 </td> 302 </td>
303 <td><b>{{ $it['job_title'] }}</b> 303 <td><b>{{ $it['job_title'] }}</b>
304 Судно: {{ $it['teplohod'] }} 304 Судно: {{ $it['teplohod'] }}
305 </td> 305 </td>
306 </tr> 306 </tr>
307 @endforeach 307 @endforeach
308 @endif 308 @endif
309 </tbody> 309 </tbody>
310 </table> 310 </table>
311 </div> 311 </div>
312 </div> 312 </div>
313 </div> 313 </div>
314 <div class="main__resume-profile-about"> 314 <div class="main__resume-profile-about">
315 <h2 class="main__resume-profile-about-title">О себе</h2> 315 <h2 class="main__resume-profile-about-title">О себе</h2>
316 <p class="main__resume-profile-about-text">{{ $Query[0]['text'] }}</p> 316 <p class="main__resume-profile-about-text">{{ $Query[0]['text'] }}</p>
317 317
318 </div> 318 </div>
319 <div class="main__resume-profile-info"> 319 <div class="main__resume-profile-info">
320 <h2 class="main__resume-profile-info-title">Данные о прошлых компаниях</h2> 320 <h2 class="main__resume-profile-info-title">Данные о прошлых компаниях</h2>
321 <div class="main__resume-profile-info-body"> 321 <div class="main__resume-profile-info-body">
322 @if ((isset($Query[0]['prev_company'])) && (count($Query[0]['prev_company']) > 0)) 322 @if ((isset($Query[0]['prev_company'])) && (count($Query[0]['prev_company']) > 0))
323 @foreach ($Query[0]['prev_company'] as $it) 323 @foreach ($Query[0]['prev_company'] as $it)
324 <div class="main__resume-profile-info-body-item"> 324 <div class="main__resume-profile-info-body-item">
325 <h3 class="main__resume-profile-info-body-subtitle">{{ $it['name_company'] }}</h3> 325 <h3 class="main__resume-profile-info-body-subtitle">{{ $it['name_company'] }}</h3>
326 <ul class="main__resume-profile-info-body-inner"> 326 <ul class="main__resume-profile-info-body-inner">
327 <li> 327 <li>
328 <b>Руководитель</b> 328 <b>Руководитель</b>
329 <span>{{ $it['direct'] }}</span> 329 <span>{{ $it['direct'] }}</span>
330 </li> 330 </li>
331 <li> 331 <li>
332 <b>Телефон того, кто может дать рекомендацию</b> 332 <b>Телефон того, кто может дать рекомендацию</b>
333 <span> 333 <span>
334 <a>{{ $it['telephone'] }}</a> 334 <a>{{ $it['telephone'] }}</a>
335 <a>{{ $it['telephone2'] }}</a> 335 <a>{{ $it['telephone2'] }}</a>
336 </span> 336 </span>
337 </li> 337 </li>
338 </ul> 338 </ul>
339 </div> 339 </div>
340 @endforeach 340 @endforeach
341 @else
342 <div class="main__resume-profile-info-body-item">
343 <h3 class="main__resume-profile-info-body-subtitle">Не указано</h3>
344 <ul class="main__resume-profile-info-body-inner">
345 <li>
346 <b>Руководитель</b>
347 <span>Нет сведений</span>
348 </li>
349 <li>
350 <b>Телефон того, кто может дать рекомендацию</b>
351 <span>
352 <a>Нет сведений</a>
353 </span>
354 </li>
355 </ul>
356 </div>
341 @endif 357 @endif
342 </div> 358 </div>
343 </div> 359 </div>
344 </div> 360 </div>
345 </div> 361 </div>
346 </main> 362 </main>
347 </body> 363 </body>
348 </html> 364 </html>
349 365