diff --git a/app/Http/Controllers/Admin/JobTitlesController.php b/app/Http/Controllers/Admin/JobTitlesController.php index eb62bdb..501da9b 100644 --- a/app/Http/Controllers/Admin/JobTitlesController.php +++ b/app/Http/Controllers/Admin/JobTitlesController.php @@ -34,7 +34,7 @@ class JobTitlesController extends Controller orderBy('name')-> active()-> get();*/ - $category = Category::query()->get(); + $category = Category::query()->active()->get(); return view('admin.job_titles.add', compact('category')); } @@ -70,7 +70,7 @@ class JobTitlesController extends Controller */ public function edit(Job_title $job_title) { - $category = Category::query()->get(); + $category = Category::query()->active()->get(); return view('admin.job_titles.edit', compact('job_title', 'category')); } diff --git a/resources/views/companies.blade.php b/resources/views/companies.blade.php index be08680..d48038e 100644 --- a/resources/views/companies.blade.php +++ b/resources/views/companies.blade.php @@ -184,8 +184,8 @@ @endif @endforeach - - {{ $emps->appends($_GET)->links('paginate') }} + hgfhgfhgfghf + {{ $emps->appends($_GET)->onEachSide(0)->links('paginate') }} @else

Нет данных

@endif