From 92b3de35e986fd30810d5b7baa772e7d69a2578a Mon Sep 17 00:00:00 2001 From: Sergey Panarin Date: Thu, 11 Jul 2024 15:24:25 +0200 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B4=D0=B0=D1=87=D0=B0=2045=20+=20=D1?= =?UTF-8?q?=84=D0=B8=D0=BA=D1=81=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/WorkerController.php | 11 +- public/css/style_may2024.css | 3 + resources/views/education/show.blade.php | 2 +- resources/views/layout/pdf.blade.php | 275 ++++++++++++++++++++--------- resources/views/worker.blade.php | 2 +- 5 files changed, 202 insertions(+), 91 deletions(-) diff --git a/app/Http/Controllers/WorkerController.php b/app/Http/Controllers/WorkerController.php index f5d81a1..9bb5ac6 100644 --- a/app/Http/Controllers/WorkerController.php +++ b/app/Http/Controllers/WorkerController.php @@ -250,12 +250,19 @@ class WorkerController extends Controller ->with('place_worker')->with('sertificate')->with('prev_company') ->with('infobloks'); $Query = $Query->where('id', '=', $worker->id); - $Query = $Query->get()->toArray(); + $Query = $Query->get(); view()->share('Query',$Query); + $status_work = $this->status_work; + $infoblocks = infobloks::query()->get(); + - $pdf = PDF::loadView('layout.pdf', $Query); //->setPaper('a4', 'landscape'); + $pdf = PDF::loadView('layout.pdf', [ + 'Query' => $Query, + 'status_work' => $status_work, + 'infoblocks' => $infoblocks + ])->setPaper('a4', 'landscape'); return $pdf->stream(); } diff --git a/public/css/style_may2024.css b/public/css/style_may2024.css index 0e5807c..43e1b8c 100644 --- a/public/css/style_may2024.css +++ b/public/css/style_may2024.css @@ -8300,6 +8300,9 @@ main + .news { white-space: -moz-pre-wrap; white-space: -o-pre-wrap; } +.accordion-sub li:last-child { + border-bottom: unset; +} .education-detail-contacts{ margin-top: 50px; } diff --git a/resources/views/education/show.blade.php b/resources/views/education/show.blade.php index e3e6da0..94d8fca 100644 --- a/resources/views/education/show.blade.php +++ b/resources/views/education/show.blade.php @@ -92,7 +92,7 @@ @foreach($levels_education_programs as $level_name => $education_programs)
  • {{$level_name}}

    -
    +
      @foreach($education_programs as $education_program) diff --git a/resources/views/layout/pdf.blade.php b/resources/views/layout/pdf.blade.php index 9a3d7f7..4ded59e 100644 --- a/resources/views/layout/pdf.blade.php +++ b/resources/views/layout/pdf.blade.php @@ -1,12 +1,15 @@ +@php + $worker = $Query[0]; +@endphp + Резюме соискателя -