Commit a873cda1eb12742954e844a5c60f77a1328de37b
1 parent
2726f0123a
Exists in
master
and in
1 other branch
Коммит обновление патча
Showing 3 changed files with 14 additions and 2 deletions Side-by-side Diff
app/Http/Controllers/MainController.php
... | ... | @@ -90,7 +90,11 @@ class MainController extends Controller |
90 | 90 | $Main_Job[$name_cat][] = $it_arr; |
91 | 91 | } |
92 | 92 | |
93 | - $employers = employers_main::query()->with('employer')->orderBy('id')->limit(8)->get(); | |
93 | + $employers = employers_main::query()->with('employer')-> | |
94 | + whereHas('employer', function ($query) { | |
95 | + $query->where('status_hidden', '=', '0'); | |
96 | + })-> | |
97 | + orderBy('id')->limit(8)->get(); | |
94 | 98 | $vacancy = Ad_jobs::query()->with('job_title')->orderBy('position_ship')->get(); |
95 | 99 | return view('index', compact('news', 'Job_title', 'categories', 'employers', 'vacancy', 'Main_Job')); |
96 | 100 | } |
resources/views/employers/list_vacancy.blade.php
... | ... | @@ -149,6 +149,13 @@ |
149 | 149 | </svg> |
150 | 150 | </a> |
151 | 151 | @endif |
152 | + @if ($Employer->social_is == 1) | |
153 | + <a href="https://telegram.me/share/url?url={{ route('vacancie', ['vacancy' => $it->id]) }}&text={{ $it->text }}" class="table__controls-item"> | |
154 | + <svg> | |
155 | + <use xlink:href="{{ asset('images/sprite.svg#tg') }}"></use> | |
156 | + </svg> | |
157 | + </a> | |
158 | + @endif | |
152 | 159 | <!--<a class="btn_telegram_share table__controls-item" href="https://telegram.me/share/url?url=ВАШ_URL&text={{ $it->name }}"> |
153 | 160 | <svg> |
154 | 161 | <use xlink:href=" asset('images/sprite.svg#arrow-radius') }}"></use> |
resources/views/vacance-item.blade.php
... | ... | @@ -103,7 +103,8 @@ |
103 | 103 | </div> |
104 | 104 | </div> |
105 | 105 | @endif |
106 | - <h2 class="main__employer-page-title">Описание вакансии</h2> | |
106 | + <h2 class="main__employer-page-title">{{ $Query[0]->name }}</h2> | |
107 | + <h3 class="main__employer-page-title_">Описание вакансии</h3> | |
107 | 108 | |
108 | 109 | </div> |
109 | 110 |