Commit f3f96e3932c28cc2b3e61fb80914886dccaea606

Authored by Андрей Ларионов
1 parent 79fe45e455

Результат финал

Showing 3 changed files with 6 additions and 6 deletions Side-by-side Diff

app/Http/Controllers/Admin/JobTitlesController.php
... ... @@ -18,7 +18,7 @@ class JobTitlesController extends Controller
18 18 */
19 19 public function index()
20 20 {
21   - $Jobs = Job_title::query()->orderBy('name')->active()->paginate(15);
  21 + $Jobs = Job_title::query()->orderBy('name')->paginate(15);
22 22 return view('admin.job_titles.index', compact('Jobs'));
23 23 }
24 24  
app/Http/Controllers/MainController.php
... ... @@ -39,7 +39,7 @@ class MainController extends Controller
39 39 ->GroupBy('categories.id')
40 40 ->get();
41 41  
42   - $Position = Category::query()->get();
  42 + $Position = Category::query()->where('is_remove', '=', '0')->get();
43 43  
44 44 /*$BigFlot = Array();
45 45 foreach ($Position as $position) {
... ... @@ -149,7 +149,7 @@ class MainController extends Controller
149 149  
150 150 $categories = $categories->OrderByDesc('created_at')->GroupBy('categories.id')->get();
151 151  
152   - $Position = Category::query()->get();
  152 + $Position = Category::query()->where('is_remove', '=', '0')->get();
153 153  
154 154 /*$BigFlot = Array();
155 155 foreach ($Position as $position) {
... ... @@ -232,9 +232,9 @@ Route::group([
232 232  
233 233 // кабинет - категории
234 234 //Route::get('categories', [AdminController::class, 'index'])->name('categories');
235   - /*
236   - * CRUD-операции над Справочником Категории
237   - */
  235 +
  236 + // СRUD-операции над Справочником Категории
  237 +
238 238 Route::resource('categories', CategoryController::class, ['except' => ['show']]);
239 239  
240 240 // CRUD-операции над справочником Категории для работодателей