Commit b8701187c1cd1e25e6025f705c06598792d4dac4

Authored by Андрей Ларионов
1 parent 5104f48b21

Работодатель - кабинет должности

Showing 2 changed files with 1 additions and 7 deletions Side-by-side Diff

app/Http/Controllers/EmployerController.php
... ... @@ -230,13 +230,7 @@ class EmployerController extends Controller
230 230 // Карточка вакансии
231 231 public function vacancy_edit(Ad_employer $ad_employer) {
232 232 $id = Auth()->user()->id;
233   -
234 233 $Positions = Category::query()->where('is_remove', '=', '0')->get();
235   - //if ($Positions->count()) {
236   - // $jobs = Job_title::query()->OrderBy('name')->where('position_id', $Positions[0]->id)->get();
237   - //} else {
238   - // $jobs = Job_title::query()->OrderBy('name')->where('position_id', 0)->get();
239   - //}
240 234 $jobs = Job_title::query()->OrderBy('name')->where('is_remove', 0)->get();
241 235  
242 236 $Employer = Employer::query()->with('users')->with('ads')->with('flots')->
resources/views/employers/add_vacancy.blade.php
... ... @@ -148,7 +148,7 @@
148 148 <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group">
149 149 <label class="form-group__label">Описание вакансии</label>
150 150 <div class="form-group__item">
151   - <textarea class="textarea" name="text" id="text">{{ $Employer[0]->text ?? '' }}</textarea>
  151 + <textarea class="textarea" name="text" id="text">{{ old('text') ?? '' }}</textarea>
152 152 @error('text')
153 153 <span class="text-xs text-red-600">
154 154 {{ $message }}