Commit 0fc30621f713a8ce77202ac3bf923cf23f04d110
1 parent
73b12960f4
Exists in
master
and in
1 other branch
коммит от пятницы 26 числа
Showing 10 changed files with 325 additions and 111 deletions Side-by-side Diff
- app/Http/Controllers/CompanyController.php
- app/Http/Controllers/EmployerController.php
- app/Http/Controllers/WorkerController.php
- resources/views/ajax/resume_1.blade.php
- resources/views/employers/add_vacancy_danger.blade.php
- resources/views/employers/bd_resume_danger.blade.php
- resources/views/employers/menu.blade.php
- resources/views/index.blade.php
- resources/views/resume.blade.php
- routes/web.php
app/Http/Controllers/CompanyController.php
... | ... | @@ -8,7 +8,7 @@ use Illuminate\Http\Request; |
8 | 8 | class CompanyController extends Controller |
9 | 9 | { |
10 | 10 | public function shipping_companies(Request $request) { |
11 | - $emps = Employer::query()->with('ads'); | |
11 | + $emps = Employer::query()->with('ads')->where('status_hidden', '=', '0'); | |
12 | 12 | if (($request->has('search')) && (!empty($request->get('search')))) { |
13 | 13 | $search = $request->get('search'); |
14 | 14 | $emps = $emps->where('name_company', 'LIKE', "%$search%"); |
app/Http/Controllers/EmployerController.php
... | ... | @@ -162,18 +162,26 @@ class EmployerController extends Controller |
162 | 162 | public function cabinet_vacancie() { |
163 | 163 | $id = Auth()->user()->id; |
164 | 164 | |
165 | - $categories = Category::query()->active()->get(); | |
166 | - //if ($categories->count()) { | |
167 | - // $jobs = Job_title::query()->OrderBy('name')->where('is_remove', '=', '0')->Notbdif()->where('position_id', $categories[0]->id)->get(); | |
168 | - //} else { | |
169 | - // $jobs = Job_title::query()->OrderBy('name')->where('is_remove', '=', '0')->Notbdif()->where('position_id', 0)->get(); | |
170 | - //} | |
171 | - $jobs = Job_title::query()->OrderBy('name')->where('is_remove', '=', '0')->where('is_bd', '=' , '0')->get(); | |
172 | - $Employer = Employer::query()->with('users')->with('ads')->with('flots')-> | |
173 | - WhereHas('users', | |
174 | - function (Builder $query) use ($id) {$query->Where('id', $id); | |
175 | - })->get(); | |
176 | - return view('employers.add_vacancy', compact('Employer', 'jobs' , 'categories')); | |
165 | + if (Auth()->user()->is_public) { | |
166 | + $categories = Category::query()->active()->get(); | |
167 | + | |
168 | + $jobs = Job_title::query()->OrderBy('name')->where('is_remove', '=', '0')->where('is_bd', '=', '0')->get(); | |
169 | + $Employer = Employer::query()->with('users')->with('ads')->with('flots')-> | |
170 | + | |
171 | + WhereHas('users', | |
172 | + function (Builder $query) use ($id) { | |
173 | + $query->Where('id', $id); | |
174 | + })->get(); | |
175 | + | |
176 | + return view('employers.add_vacancy', compact('Employer', 'jobs', 'categories')); | |
177 | + } else { | |
178 | + return redirect()->route('employer.cabinet_vacancie_danger'); | |
179 | + } | |
180 | + } | |
181 | + | |
182 | + // Форма предупреждения об оплате | |
183 | + public function cabinet_vacancie_danger() { | |
184 | + return view('employers.add_vacancy_danger'); | |
177 | 185 | } |
178 | 186 | |
179 | 187 | // Сохранение вакансии |
app/Http/Controllers/WorkerController.php
... | ... | @@ -73,63 +73,76 @@ class WorkerController extends Controller |
73 | 73 | // лист база резюме |
74 | 74 | public function bd_resume(Request $request) |
75 | 75 | { |
76 | + $look = false; | |
77 | + $idiot = 0; | |
76 | 78 | if (isset(Auth()->user()->id)) { |
77 | 79 | $idiot = Auth()->user()->id; |
78 | - } else { | |
79 | - $idiot = 0; | |
80 | + if ((!Auth()->user()->is_worker) && (Auth()->user()->is_lookin)) | |
81 | + $look = true; | |
80 | 82 | } |
81 | 83 | |
82 | - $status_work = $this->status_work; | |
83 | - $resumes = Worker::query()->with('users')->with('job_titles'); | |
84 | - $resumes = $resumes->whereHas('users', function (Builder $query) { | |
85 | - $query->Where('is_worker', '=', '1') | |
86 | - ->Where('is_bd', '=', '0'); | |
87 | - }); | |
88 | - | |
89 | - //dd($request->get('job')); | |
90 | - if (($request->has('job')) && ($request->get('job') > 0)) { | |
91 | - $resumes = $resumes->whereHas('job_titles', function(Builder $query) use ($request) { | |
92 | - $query->Where('job_titles.id', $request->get('job')); | |
84 | + if ($look) { | |
85 | + $status_work = $this->status_work; | |
86 | + $resumes = Worker::query()->with('users')->with('job_titles'); | |
87 | + $resumes = $resumes->whereHas('users', function (Builder $query) { | |
88 | + $query->Where('is_worker', '=', '1') | |
89 | + ->Where('is_bd', '=', '0'); | |
93 | 90 | }); |
94 | - } | |
95 | 91 | |
96 | - $Job_title = Job_title::query()->get(); | |
97 | - | |
98 | - if ($request->get('sort')) { | |
99 | - $sort = $request->get('sort'); | |
100 | - switch ($sort) { | |
101 | - case 'name_up': | |
102 | - $resumes = $resumes->orderBy(User::select('surname') | |
103 | - ->whereColumn('Workers.user_id', 'users.id') | |
104 | - ); | |
105 | - break; | |
106 | - case 'name_down': | |
107 | - $resumes = $resumes->orderByDesc(User::select('surname') | |
108 | - ->whereColumn('Workers.user_id', 'users.id') | |
109 | - ); | |
110 | - break; | |
111 | - case 'created_at_up': $resumes = $resumes->OrderBy('created_at')->orderBy('id'); break; | |
112 | - case 'created_at_down': $resumes = $resumes->orderByDesc('created_at')->orderBy('id'); break; | |
113 | - case 'default': $resumes = $resumes->orderBy('id')->orderby('updated_at'); break; | |
114 | - default: $resumes = $resumes->orderBy('id')->orderby('updated_at'); break; | |
92 | + //dd($request->get('job')); | |
93 | + if (($request->has('job')) && ($request->get('job') > 0)) { | |
94 | + $resumes = $resumes->whereHas('job_titles', function (Builder $query) use ($request) { | |
95 | + $query->Where('job_titles.id', $request->get('job')); | |
96 | + }); | |
115 | 97 | } |
116 | - } | |
117 | 98 | |
118 | - $res_count = $resumes->count(); | |
119 | - //$resumes = $resumes->get(); | |
99 | + $Job_title = Job_title::query()->get(); | |
120 | 100 | |
121 | - $resumes = $resumes->paginate(4); | |
122 | - if ($request->ajax()) { | |
123 | - // Условия обставлены | |
124 | - if ($request->has('block') && ($request->get('block') == 1)) { | |
125 | - return view('ajax.resume_1', compact('resumes', 'status_work', 'res_count', 'idiot')); | |
101 | + if ($request->get('sort')) { | |
102 | + $sort = $request->get('sort'); | |
103 | + switch ($sort) { | |
104 | + case 'name_up': | |
105 | + $resumes = $resumes->orderBy(User::select('surname') | |
106 | + ->whereColumn('Workers.user_id', 'users.id') | |
107 | + ); | |
108 | + break; | |
109 | + case 'name_down': | |
110 | + $resumes = $resumes->orderByDesc(User::select('surname') | |
111 | + ->whereColumn('Workers.user_id', 'users.id') | |
112 | + ); | |
113 | + break; | |
114 | + case 'created_at_up': | |
115 | + $resumes = $resumes->OrderBy('created_at')->orderBy('id'); | |
116 | + break; | |
117 | + case 'created_at_down': | |
118 | + $resumes = $resumes->orderByDesc('created_at')->orderBy('id'); | |
119 | + break; | |
120 | + case 'default': | |
121 | + $resumes = $resumes->orderBy('id')->orderby('updated_at'); | |
122 | + break; | |
123 | + default: | |
124 | + $resumes = $resumes->orderBy('id')->orderby('updated_at'); | |
125 | + break; | |
126 | + } | |
126 | 127 | } |
127 | 128 | |
128 | - if ($request->has('block') && ($request->get('block') == 2)) { | |
129 | - return view('ajax.resume_2', compact('resumes', 'status_work', 'res_count', 'idiot')); | |
129 | + $res_count = $resumes->count(); | |
130 | + //$resumes = $resumes->get(); | |
131 | + $resumes = $resumes->paginate(4); | |
132 | + if ($request->ajax()) { | |
133 | + // Условия обставлены | |
134 | + if ($request->has('block') && ($request->get('block') == 1)) { | |
135 | + return view('ajax.resume_1', compact('resumes', 'status_work', 'res_count', 'idiot')); | |
136 | + } | |
137 | + | |
138 | + if ($request->has('block') && ($request->get('block') == 2)) { | |
139 | + return view('ajax.resume_2', compact('resumes', 'status_work', 'res_count', 'idiot')); | |
140 | + } | |
141 | + } else { | |
142 | + return view('resume', compact('resumes', 'status_work', 'res_count', 'idiot', 'Job_title')); | |
130 | 143 | } |
131 | 144 | } else { |
132 | - return view('resume', compact('resumes', 'status_work', 'res_count', 'idiot', 'Job_title')); | |
145 | + return redirect()->route('index')->withErrors(['errors' => ['Вы не можете просматривать базу резюме. Подробнее в меню: "Условия размещения"']]); | |
133 | 146 | } |
134 | 147 | } |
135 | 148 |
resources/views/ajax/resume_1.blade.php
1 | 1 | |
2 | -@if ($resumes->count()) | |
3 | - @foreach ($resumes as $res) | |
4 | - <div class="main__resume-base-body-item"> | |
5 | - <div class="main__resume-base-body-item-buttons"> | |
6 | - <button type="button" class="like js-toggle js_box_favorites <?=\App\Classes\RusDate::selected_item($res->id);?>" data-val="{{ $res->id }}"> | |
7 | - <svg> | |
8 | - <use xlink:href="{{ asset('images/sprite.svg#heart') }}"></use> | |
9 | - </svg> | |
10 | - </button> | |
11 | - <button type="button" class="chat js-toggle js_it_button" data-fancybox data-src="#send2" data-vacancy="0" data-uid="{{ $idiot}}" data-tuid="{{ $res->id }}" data-options='{"touch":false,"autoFocus":false}'> | |
2 | +<div class="main__resume-base-body-item"> | |
3 | + <div class="main__resume-base-body-item-buttons"> | |
4 | + <button type="button" data-id="{{ $res->id }}" id="elem{{ $res->id }}" class="like js-toggle js_box_favorit {{ \App\Classes\LikesClass::get_status_worker($res) }}" data-val="{{ $res->id }}"> | |
5 | + <svg> | |
6 | + <use xlink:href="{{ asset('images/sprite.svg#heart') }}"></use> | |
7 | + </svg> | |
8 | + </button> | |
9 | + @guest | |
10 | + <button type="button" data-fancybox data-src="#question" data-options='{"touch":false,"autoFocus":false}' | |
11 | + class="chat js-toggle js_it_button"> | |
12 | + <svg> | |
13 | + <use xlink:href="{{ asset('images/sprite.svg#chat') }}"></use> | |
14 | + </svg> | |
15 | + </button> | |
16 | + @else | |
17 | + @if (App\Classes\StatusUser::Status()==0) | |
18 | + @if ((!Auth()->user()->is_worker) && (Auth()->user()->is_message)) | |
19 | + <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}'> | |
20 | + <svg> | |
21 | + <use xlink:href="{{ asset('images/sprite.svg#chat') }}"></use> | |
22 | + </svg> | |
23 | + </button> | |
24 | + @endif | |
25 | + @else | |
26 | + <button type="button" data-fancybox data-src="#question2" data-options='{"touch":false,"autoFocus":false}' | |
27 | + class="chat js-toggle js_it_button"> | |
12 | 28 | <svg> |
13 | 29 | <use xlink:href="{{ asset('images/sprite.svg#chat') }}"></use> |
14 | 30 | </svg> |
15 | - </button> | |
31 | + </button> @endif | |
32 | + @endif | |
33 | + </div> | |
34 | + <div class="main__resume-base-body-item-wrapper"> | |
35 | + <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"> | |
36 | + <div class="main__resume-base-body-item-inner"> | |
37 | + <div> | |
38 | + <b>Статус</b> | |
39 | + <span>{{ $status_work[$res->status_work] }}</span> | |
16 | 40 | </div> |
17 | - <div class="main__resume-base-body-item-wrapper"> | |
18 | - <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"> | |
19 | - <div class="main__resume-base-body-item-inner"> | |
20 | - <div> | |
21 | - <b>Статус</b> | |
22 | - <span>{{ $status_work[$res->status_work] }}</span> | |
23 | - </div> | |
24 | - <div> | |
25 | - <b>Имя работника</b> | |
26 | - <span>@if (isset($res->users)){{ $res->users->surname." ".$res->users->name_man." ".$res->users->surname2 }} @endif</span> | |
27 | - </div> | |
28 | - <div> | |
29 | - <b>Номер телефона</b> | |
30 | - <span><a href="tel:{{ $res->telephone }}">{{ $res->telephone }}</a></span> | |
31 | - </div> | |
32 | - <div> | |
33 | - <b>Электронный адрес</b> | |
34 | - <span><a href="mailto:{{ $res->email }}">{{ $res->email }}</a></span> | |
35 | - </div> | |
36 | - <div> | |
37 | - <b>Город проживания</b> | |
38 | - <span>{{ $res->city }}</span> | |
39 | - </div> | |
40 | - <div> | |
41 | - <b>Опыт работы</b> | |
42 | - <span>{{ $res->experience }}</span> | |
43 | - </div> | |
44 | - </div> | |
41 | + <div> | |
42 | + <b>Имя работника</b> | |
43 | + <span>@if (isset($res->users)){{ $res->users->surname." ".$res->users->name_man." ".$res->users->surname2 }} @endif</span> | |
45 | 44 | </div> |
46 | - <div class="main__employer-page-two-item-tags"> | |
47 | - @if ($res->job_titles->count()) | |
48 | - @if (isset($res->job_titles)) | |
49 | - @foreach ($res->job_titles as $key => $j) | |
50 | - <span class="main__employer-page-two-item-tag">#{{ $j->name }}</span> | |
51 | - @endforeach | |
52 | - @endif | |
53 | - @endif | |
45 | + <div> | |
46 | + <b>Номер телефона</b> | |
47 | + <span><a href="tel:{{ $res->telephone }}">{{ $res->telephone }}</a></span> | |
48 | + </div> | |
49 | + <div> | |
50 | + <b>Электронный адрес</b> | |
51 | + <span><a href="mailto:{{ $res->email }}">{{ $res->email }}</a></span> | |
52 | + </div> | |
53 | + <div> | |
54 | + <b>Город проживания</b> | |
55 | + <span>{{ $res->city }}</span> | |
56 | + </div> | |
57 | + <div> | |
58 | + <b>Опыт работы</b> | |
59 | + <span>{{ $res->experience }}</span> | |
54 | 60 | </div> |
55 | - <a href="{{ route('resume_profile', ['worker' => $res->id]) }}" class="button button_light main__resume-base-body-item-link">Перейти в резюме</a> | |
56 | 61 | </div> |
57 | - @endforeach | |
62 | + </div> | |
63 | + <div class="main__employer-page-two-item-tags"> | |
64 | + @if ($res->job_titles->count()) | |
65 | + @if (isset($res->job_titles)) | |
66 | + @foreach ($res->job_titles as $key => $j) | |
67 | + <span class="main__employer-page-two-item-tag">#{{ $j->name }}</span> | |
68 | + @endforeach | |
69 | + @endif | |
70 | + @endif | |
71 | + </div> | |
72 | + <a href="{{ route('resume_profile', ['worker' => $res->id]) }}" class="button button_light main__resume-base-body-item-link">Перейти в резюме</a> | |
73 | +</div> | |
74 | +@endforeach | |
58 | 75 | |
59 | - {{ $resumes->appends($_GET)->links('paginate') }} | |
76 | +{{ $resumes->appends($_GET)->links('paginate') }} | |
60 | 77 | @else |
61 | 78 | <p>По данному запросу ничего не найдено</p> |
62 | 79 | @endif |
resources/views/employers/add_vacancy_danger.blade.php
... | ... | @@ -0,0 +1,60 @@ |
1 | +@extends('layout.frontend', ['title' => 'База данных - РекаМоре']) | |
2 | + | |
3 | +@section('scripts') | |
4 | + <script> | |
5 | + console.log('Test system'); | |
6 | + $(document).on('click', '.die_black', function() { | |
7 | + var this_ = $(this); | |
8 | + var ajax_ = $('#ajax_flot_div'); | |
9 | + var id_ = this_.attr('data-test'); | |
10 | + var url_ = this_.attr('data-link'); | |
11 | + | |
12 | + console.log(url_); | |
13 | + $.ajax({ | |
14 | + type: "GET", | |
15 | + url: url_, | |
16 | + success: function (data) { | |
17 | + console.log('Ответка'); | |
18 | + ajax_.html(data); | |
19 | + }, | |
20 | + headers: { | |
21 | + 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') | |
22 | + }, | |
23 | + error: function (data) { | |
24 | + console.log('Error: ' + data); | |
25 | + } | |
26 | + }); | |
27 | + }); | |
28 | + </script> | |
29 | +@endsection | |
30 | + | |
31 | +@section('content') | |
32 | + <section class="cabinet"> | |
33 | + <div class="container"> | |
34 | + <ul class="breadcrumbs cabinet__breadcrumbs"> | |
35 | + <li><a href="{{ route('index') }}">Главная</a></li> | |
36 | + <li><b>Личный кабинет</b></li> | |
37 | + </ul> | |
38 | + <div class="cabinet__wrapper"> | |
39 | + <div class="cabinet__side"> | |
40 | + <div class="cabinet__side-toper"> | |
41 | + @include('employers.emblema') | |
42 | + </div> | |
43 | + @include('employers.menu', ['item' => 2]) | |
44 | + </div> | |
45 | + <div class="cabinet__body"> | |
46 | + <div class="cabinet__body-item"> | |
47 | + <h2 class="title cabinet__title">Добавление вакансии</h2> | |
48 | + </div> | |
49 | + <div class="cabinet__body-item"> | |
50 | + <div class="cabinet__table-header"> | |
51 | + <div><!--_if (isset($it->workers[0]->job_titles[0]->name)) _ $it->workers[0]->job_titles[0]->name }}_else Не указано _endif--> | |
52 | + Нельзя добавить вакансию, прочтите инструкцию для преодоления данной проблемы. | |
53 | + <a style="text-decoration:underline" href="{{ route('page', ['pages' => 'Usloviya-razmescheniya']) }}">Условия размещения</a> | |
54 | + </div> | |
55 | + </div> | |
56 | + </div> | |
57 | + </div> | |
58 | + </section> | |
59 | + </div> | |
60 | +@endsection |
resources/views/employers/bd_resume_danger.blade.php
... | ... | @@ -0,0 +1,60 @@ |
1 | +@extends('layout.frontend', ['title' => 'База данных - РекаМоре']) | |
2 | + | |
3 | +@section('scripts') | |
4 | + <script> | |
5 | + console.log('Test system'); | |
6 | + $(document).on('click', '.die_black', function() { | |
7 | + var this_ = $(this); | |
8 | + var ajax_ = $('#ajax_flot_div'); | |
9 | + var id_ = this_.attr('data-test'); | |
10 | + var url_ = this_.attr('data-link'); | |
11 | + | |
12 | + console.log(url_); | |
13 | + $.ajax({ | |
14 | + type: "GET", | |
15 | + url: url_, | |
16 | + success: function (data) { | |
17 | + console.log('Ответка'); | |
18 | + ajax_.html(data); | |
19 | + }, | |
20 | + headers: { | |
21 | + 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') | |
22 | + }, | |
23 | + error: function (data) { | |
24 | + console.log('Error: ' + data); | |
25 | + } | |
26 | + }); | |
27 | + }); | |
28 | + </script> | |
29 | +@endsection | |
30 | + | |
31 | +@section('content') | |
32 | + <section class="cabinet"> | |
33 | + <div class="container"> | |
34 | + <ul class="breadcrumbs cabinet__breadcrumbs"> | |
35 | + <li><a href="{{ route('index') }}">Главная</a></li> | |
36 | + <li><b>Личный кабинет</b></li> | |
37 | + </ul> | |
38 | + <div class="cabinet__wrapper"> | |
39 | + <div class="cabinet__side"> | |
40 | + <div class="cabinet__side-toper"> | |
41 | + @include('employers.emblema') | |
42 | + </div> | |
43 | + @include('employers.menu', ['item' => 8]) | |
44 | + </div> | |
45 | + <div class="cabinet__body"> | |
46 | + <div class="cabinet__body-item"> | |
47 | + <h2 class="title cabinet__title">База резюме</h2> | |
48 | + </div> | |
49 | + <div class="cabinet__body-item"> | |
50 | + <div class="cabinet__table-header"> | |
51 | + <div><!--_if (isset($it->workers[0]->job_titles[0]->name)) _ $it->workers[0]->job_titles[0]->name }}_else Не указано _endif--> | |
52 | + Данные нельзя просмотреть, прочтите инструкцию | |
53 | + <a style="text-decoration:underline" href="{{ route('page', ['pages' => 'Usloviya-razmescheniya']) }}">Условия размещения</a> | |
54 | + </div> | |
55 | + </div> | |
56 | + </div> | |
57 | + </div> | |
58 | + </section> | |
59 | + </div> | |
60 | +@endsection |
resources/views/employers/menu.blade.php
... | ... | @@ -33,6 +33,7 @@ |
33 | 33 | </i> |
34 | 34 | <span>Профиль</span> |
35 | 35 | </a> |
36 | + @if ((!Auth()->user()->is_worker) && (Auth()->user()->is_public)) | |
36 | 37 | <a href="{{ route('employer.cabinet_vacancie') }}" class="cabinet__menu-item @if ($item==2) active @endif"> |
37 | 38 | <i> |
38 | 39 | <svg> |
... | ... | @@ -41,6 +42,16 @@ |
41 | 42 | </i> |
42 | 43 | <span>Разместить вакансию</span> |
43 | 44 | </a> |
45 | + @else | |
46 | + <a href="{{ route('employer.cabinet_vacancie_danger') }}" class="cabinet__menu-item @if ($item==2) active @endif"> | |
47 | + <i> | |
48 | + <svg> | |
49 | + <use xlink:href="{{ asset('images/sprite.svg#cabinet-2') }}"></use> | |
50 | + </svg> | |
51 | + </i> | |
52 | + <span>Разместить вакансию</span> | |
53 | + </a> | |
54 | + @endif | |
44 | 55 | <a href="{{ route('employer.vacancy_list') }}" class="cabinet__menu-item @if ($item==3) active @endif"> |
45 | 56 | <i> |
46 | 57 | <svg> |
... | ... | @@ -81,6 +92,7 @@ |
81 | 92 | </i> |
82 | 93 | <span>База данных</span> |
83 | 94 | </a> |
95 | + @if ((!Auth()->user()->is_worker) && (Auth()->user()->is_lookin)) | |
84 | 96 | <a href="{{ route('bd_resume') }}" target="_blank" class="cabinet__menu-item @if ($item==8) active @endif"> |
85 | 97 | <i> |
86 | 98 | <svg> |
... | ... | @@ -89,6 +101,16 @@ |
89 | 101 | </i> |
90 | 102 | <span>База резюме</span> |
91 | 103 | </a> |
104 | + @else | |
105 | + <a href="{{ route('bd_resume_danger') }}" target="_blank" class="cabinet__menu-item @if ($item==8) active @endif"> | |
106 | + <i> | |
107 | + <svg> | |
108 | + <use xlink:href="{{ asset('images/sprite.svg#cabinet-8') }}"></use> | |
109 | + </svg> | |
110 | + </i> | |
111 | + <span>База резюме</span> | |
112 | + </a> | |
113 | + @endif | |
92 | 114 | <a href="{{ route('employer.send_all_messages') }}" class="cabinet__menu-item @if ($item==9) active @endif"> |
93 | 115 | <i> |
94 | 116 | <svg> |
resources/views/index.blade.php
resources/views/resume.blade.php
... | ... | @@ -340,18 +340,21 @@ |
340 | 340 | </button> |
341 | 341 | @else |
342 | 342 | @if (App\Classes\StatusUser::Status()==0) |
343 | + @if ((!Auth()->user()->is_worker) && (Auth()->user()->is_message)) | |
343 | 344 | <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}'> |
344 | 345 | <svg> |
345 | 346 | <use xlink:href="{{ asset('images/sprite.svg#chat') }}"></use> |
346 | 347 | </svg> |
347 | 348 | </button> |
349 | + @endif | |
348 | 350 | @else |
349 | 351 | <button type="button" data-fancybox data-src="#question2" data-options='{"touch":false,"autoFocus":false}' |
350 | 352 | class="chat js-toggle js_it_button"> |
351 | 353 | <svg> |
352 | 354 | <use xlink:href="{{ asset('images/sprite.svg#chat') }}"></use> |
353 | 355 | </svg> |
354 | - </button> @endif | |
356 | + </button> | |
357 | + @endif | |
355 | 358 | @endif |
356 | 359 | </div> |
357 | 360 | <div class="main__resume-base-body-item-wrapper"> |
... | ... | @@ -413,11 +416,36 @@ |
413 | 416 | <use xlink:href="{{ asset('images/sprite.svg#heart') }}"></use> |
414 | 417 | </svg> |
415 | 418 | </button> |
416 | - <button type="button" class="chat js-toggle js_it_button" data-fancybox data-src="#send2" data-vacancy="0" data-uid="{{ $idiot}}" data-tuid="{{ $res->id }}" data-options='{"touch":false,"autoFocus":false}'> | |
419 | + <!--<button type="button" class="chat js-toggle js_it_button" data-fancybox data-src="#send2" data-vacancy="0" data-uid=" $idiot}}" data-tuid=" $res->id }}" data-options='{"touch":false,"autoFocus":false}'> | |
417 | 420 | <svg> |
418 | - <use xlink:href="{{ asset('images/sprite.svg#chat') }}"></use> | |
421 | + <use xlink:href=" asset('images/sprite.svg#chat') }}"></use> | |
419 | 422 | </svg> |
420 | - </button> | |
423 | + </button>--> | |
424 | + @guest | |
425 | + <button type="button" data-fancybox data-src="#question" data-options='{"touch":false,"autoFocus":false}' | |
426 | + class="chat js-toggle js_it_button"> | |
427 | + <svg> | |
428 | + <use xlink:href="{{ asset('images/sprite.svg#chat') }}"></use> | |
429 | + </svg> | |
430 | + </button> | |
431 | + @else | |
432 | + @if (App\Classes\StatusUser::Status()==0) | |
433 | + @if ((!Auth()->user()->is_worker) && (Auth()->user()->is_message)) | |
434 | + <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}'> | |
435 | + <svg> | |
436 | + <use xlink:href="{{ asset('images/sprite.svg#chat') }}"></use> | |
437 | + </svg> | |
438 | + </button> | |
439 | + @endif | |
440 | + @else | |
441 | + <button type="button" data-fancybox data-src="#question2" data-options='{"touch":false,"autoFocus":false}' | |
442 | + class="chat js-toggle js_it_button"> | |
443 | + <svg> | |
444 | + <use xlink:href="{{ asset('images/sprite.svg#chat') }}"></use> | |
445 | + </svg> | |
446 | + </button> | |
447 | + @endif | |
448 | + @endif | |
421 | 449 | </div> |
422 | 450 | <div class="main__resume-base-body-item-wrapper"> |
423 | 451 | <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"> |
routes/web.php
... | ... | @@ -444,6 +444,9 @@ Route::get('contacts', [MainController::class, 'contacts'])->name('contacts'); |
444 | 444 | |
445 | 445 | //База резюме |
446 | 446 | Route::get('bd-resume', [WorkerController::class, 'bd_resume'])->name('bd_resume'); |
447 | +Route::get('bd_resume_danger', function(){ | |
448 | + return view('employers.bd_resume_danger'); | |
449 | +})->name('bd_resume_danger'); | |
447 | 450 | |
448 | 451 | Route::get('like-resume', [MainController::class, 'like_worker'])->name('like_resume'); |
449 | 452 | |
... | ... | @@ -564,6 +567,8 @@ Route::group([ |
564 | 567 | // 2 страница - Добавление вакансий |
565 | 568 | Route::get('cabinet/vacancie', [EmployerController::class, 'cabinet_vacancie'])->name('cabinet_vacancie'); |
566 | 569 | Route::post('vacancie', [EmployerController::class, 'cabinet_vacancy_save1'])->name('vac_save'); |
570 | + Route::get('cabinet/vacancie_danger', [EmployerController::class, 'cabinet_vacancie_danger'])->name('cabinet_vacancie_danger'); | |
571 | + | |
567 | 572 | |
568 | 573 | Route::get('selected_people', [EmployerController::class, 'selected_people'])->name('selected_people'); |
569 | 574 |