From 8cbda1e869d85fe47d125a8a81c96c560f6a501c Mon Sep 17 00:00:00 2001 From: Sergey Panarin Date: Mon, 24 Jun 2024 09:54:45 +0200 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D1?= =?UTF-8?q?=8F=20=D0=B4=D0=BB=D1=8F=20"=D0=9C=D0=BE=D0=B8=20=D0=B2=D0=B0=D0=BA?= =?UTF-8?q?=D0=B0=D0=BD=D1=81=D0=B8=D0=B8"=20+=20=D1=80=D0=B0=D0=B7=D0=BD=D1?= =?UTF-8?q?=8B=D0=B5=20=D1=83=D0=BB=D1=83=D1=87=D1=88=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/EmployerController.php | 5 ++++- public/css/style_may2024.css | 3 +++ public/index.php | 14 ++++++++++++++ resources/views/info_company_new.blade.php | 2 +- 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/EmployerController.php b/app/Http/Controllers/EmployerController.php index 1c70fd2..20f97da 100644 --- a/app/Http/Controllers/EmployerController.php +++ b/app/Http/Controllers/EmployerController.php @@ -226,8 +226,11 @@ class EmployerController extends Controller case 'default': $vacancy_list = $vacancy_list->orderbyDesc('updated_at')->orderBy('name'); break; default: $vacancy_list = $vacancy_list->orderByDesc('id')->orderbyDesc('updated_at'); break; } + } else { + $vacancy_list = $vacancy_list->orderByDesc('created_at')->orderBy('id'); } - $vacancy_list = $vacancy_list->paginate(4); + + $vacancy_list = $vacancy_list->paginate(10); //ajax if ($request->ajax()) { diff --git a/public/css/style_may2024.css b/public/css/style_may2024.css index f2b5603..7e13831 100644 --- a/public/css/style_may2024.css +++ b/public/css/style_may2024.css @@ -3446,6 +3446,9 @@ h1 { line-height: 1.4; width: 190px; } +.main__employer-page-item.main__employer-page-description{ + width: unset; +} @media (min-width: 768px) { .main__employer-page-item { font-size: 18px; diff --git a/public/index.php b/public/index.php index 1d69f3a..46d8c08 100644 --- a/public/index.php +++ b/public/index.php @@ -2,6 +2,7 @@ use Illuminate\Contracts\Http\Kernel; use Illuminate\Http\Request; +use Symfony\Component\VarDumper\VarDumper; define('LARAVEL_START', microtime(true)); @@ -53,3 +54,16 @@ $response = $kernel->handle( )->send(); $kernel->terminate($request, $response); + + +function d(...$vars): void +{ + if (!in_array(\PHP_SAPI, ['cli', 'phpdbg'], true) && !headers_sent()) { + header('HTTP/1.1 500 Internal Server Error'); + } + + foreach ($vars as $v) { + VarDumper::dump($v); + } +} + diff --git a/resources/views/info_company_new.blade.php b/resources/views/info_company_new.blade.php index 27811b8..40d4634 100644 --- a/resources/views/info_company_new.blade.php +++ b/resources/views/info_company_new.blade.php @@ -175,7 +175,7 @@ -
+
Описание {!! $company[0]->text !!} -- 1.7.10.4