resume_blocks.blade.php
6.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
@if ($resumes->count())
@foreach ($resumes as $res)
<div class="main__resume-base-body-item">
<div class="main__resume-base-body-item-wrapper">
<div>
<img src="@isset ($res->photo) {{ asset(Storage::url($res->photo)) }} @else {{ asset('images/default_man.jpg')}} @endif" alt="" class="main__resume-base-body-item-photo">
<div>
<div class="main__resume-base-body-item-buttons">
<button type="button" data-id="{{ $res->id }}" id="elem{{ $res->id }}" class="like js_box_favorit {{ \App\Classes\LikesClass::get_status_worker($res) }}" data-val="{{ $res->id }}">
<svg>
<use xlink:href="{{ asset('images/sprite.svg#heart') }}"></use>
</svg>
<span class="to-favorites">В избранное</span>
<span class="in-favorites">В избранном</span>
</button>
@guest
<button type="button" data-fancybox data-src="#question" data-options='{"touch":false,"autoFocus":false}'
class="chat js-toggle js_it_button">
<svg>
<use xlink:href="{{ asset('images/sprite.svg#chat') }}"></use>
</svg>
<span>Написать</span>
</button>
@else
@if (App\Classes\StatusUser::Status()==0)
@if ((!Auth()->user()->is_worker) && (Auth()->user()->is_message))
<button type="button" class="chat js-toggle js_it_button" data-fancybox data-src="#send2" data-vacancy="0" data-uid="{{ $idiot}}" data-tuid="{{ $res->users->id }}" data-options='{"touch":false,"autoFocus":false}'>
<svg>
<use xlink:href="{{ asset('images/sprite.svg#chat') }}"></use>
</svg>
<span>Написать</span>
</button>
@endif
@else
<button type="button" data-fancybox data-src="#question2" data-options='{"touch":false,"autoFocus":false}'
class="chat js-toggle js_it_button">
<svg>
<use xlink:href="{{ asset('images/sprite.svg#chat') }}"></use>
</svg>
<span>Написать</span>
</button>
@endif
@endif
<a href="{{ route('resume_profile', ['worker' => $res->id]) }}" class="button button_light main__resume-base-body-item-link">Подробнее</a>
</div>
</div>
</div>
<div class="main__resume-base-body-item-inner">
<div class="horizontal">
<div class="main__resume-base-item-status @if ($res->status_work == 0) looking-for-job @endif">
{{ $status_work[$res->status_work] }}
</div>
<div class="main__resume-base-item-updated-at">
Обновлено: {{ date('d.m.Y', strtotime($res->updated_at)) }}
</div>
</div>
<div>
<b>Предпочтение по типу судна:</b>
<span>{{ $res->boart_type_preference ?? '-' }}</span>
</div>
<div>
<b>ФИО:</b>
<span>@if (isset($res->users)){{ $res->users->surname." ".$res->users->name_man." ".$res->users->surname2 }} @endif</span>
</div>
<div>
<b>Наличие визы:</b>
<span>{{ $res->visa_available ?? '-' }}</span>
</div>
<div>
<b>Возраст:</b>
<span>{{ $res->old_year ?? '-' }}</span>
</div>
<div>
<b>Наличие танкерных документов:</b>
<span>{{ $res->tanker_documents_available ?? '-' }}</span>
</div>
<div>
<b>Желаемые вакансии:</b>
<span>
@if ($res->job_titles->count())
@foreach ($res->job_titles as $job_title)
{{ $job_title->name }}
@if (!$loop->last) / @endif
@endforeach
@else
-
@endif
</span>
</div>
<div>
<b>Наличие подтверждения для работы на ВВП:</b>
<span>{{ $res->confirmation_work_for_vvp ?? '-' }}</span>
</div>
<div>
<b>Пожелание к З/П:</b>
<span>{{ $res->salary_expectations ?? '-' }}</span>
</div>
<div>
<b>Город проживания</b>
<span>{{ $res->city ?? "-" }}</span>
</div>
<div>
<b>Уровень английского:</b>
<span>{{ $res->english_level ?? '-' }}</span>
</div>
<div>
<b>Номер телефона:</b>
<span><a href="tel:{{ $res->telephone }}">{{ $res->telephone ?? '-' }}</a></span>
</div>
<div>
<b>Дата готовности к посадке:</b>
<span>{{ $res->ready_boart_date ?? '-' }}</span>
</div>
<div>
<b>E-mail:</b>
<span><a href="mailto:{{ $res->email }}">{{ $res->email }}</a></span>
</div>
</div>
</div>
</div>
@endforeach
{{ $resumes->appends($_GET)->links('paginate') }}
@else
<p>По данному запросу ничего не найдено</p>
@endif