Commit 2a5b45db10a2fd907357554ec3ed1c84295fcbdb
Exists in
master
Коммит по кабинету
Showing 2 changed files Side-by-side Diff
resources/views/employers/cabinet45.blade.php
1 | 1 | @extends('layout.frontend', ['title' => 'Образование и образовательные программы - РекаМоре']) |
2 | 2 | |
3 | 3 | @section('scripts') |
4 | - | |
4 | + <script src="https://cdn.ckeditor.com/ckeditor5/23.0.0/classic/ckeditor.js"></script> | |
5 | + <script> | |
6 | + ClassicEditor | |
7 | + .create( document.querySelector( '#txtarea' ) ) | |
8 | + .catch( error => { | |
9 | + console.error( error ); | |
10 | + } ); | |
11 | + </script> | |
5 | 12 | @endsection |
6 | 13 | @section('content') |
7 | 14 | <section class="cabinet"> |
... | ... | @@ -14,7 +21,7 @@ |
14 | 21 | <div class="cabinet__side"> |
15 | 22 | <div class="cabinet__side-toper"> |
16 | 23 | <div class="cabinet__side-toper-pic"> |
17 | - @if (isset($Employer[0]->logo)) | |
24 | + @if (!empty($Employer[0]->logo)) | |
18 | 25 | <img src="{{ asset(Storage::url($Employer[0]->logo)) }}" width="150" alt="{{ $Employer[0]->name_company }}"> |
19 | 26 | @else |
20 | 27 | <img src="{{ asset('images/logo_emp.png') }}" width="150" alt="{{ $Employer[0]->name_company }}"/> |
... | ... | @@ -38,7 +45,7 @@ |
38 | 45 | </div> |
39 | 46 | <div class="cabinet__avatar"> |
40 | 47 | <div class="cabinet__avatar-pic"> |
41 | - @if (isset($Employer[0]->logo)) | |
48 | + @if (!empty($Employer[0]->logo)) | |
42 | 49 | <img src="{{ asset(Storage::url($Employer[0]->logo)) }}" width="150" alt="{{ $Employer[0]->name_company }}"> |
43 | 50 | @else |
44 | 51 | <img src="{{ asset('images/logo_emp.png') }}" width="150" alt="{{ $Employer[0]->name_company }}"/> |
... | ... | @@ -118,7 +125,7 @@ |
118 | 125 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> |
119 | 126 | <label class="form-group__label">О компании</label> |
120 | 127 | <div class="form-group__item"> |
121 | - <textarea name="text" class="textarea" required>{{ old('text') ?? $Employer[0]->text ?? '' }}</textarea> | |
128 | + <textarea name="text" id="txtarea" class="textarea ckeditor" required>{{ old('text') ?? $Employer[0]->text ?? '' }}</textarea> | |
122 | 129 | @error('text') |
123 | 130 | <span class="text-xs text-red-600"> |
124 | 131 | {{ $message }} |
resources/views/info_company_new.blade.php
... | ... | @@ -99,9 +99,14 @@ |
99 | 99 | </div> |
100 | 100 | @endif |
101 | 101 | |
102 | - <img src="{{ asset(Storage::url($company[0]->logo)) }}" alt="{{ $company[0]->name_company }}" class="thing__pic"> | |
102 | + @if (!empty($company[0]->logo)) | |
103 | + <img src="{{ asset(Storage::url($company[0]->logo)) }}" alt="{{ $company[0]->name_company }}" class="thing__pic"> | |
104 | + @else | |
105 | + <img src="{{ asset('images/logo_emp.png') }}" alt="{{ $company[0]->name_company }}" class="thing__pic"> | |
106 | + @endif | |
107 | + | |
103 | 108 | <h1 class="thing__title">{{ $company[0]->name_company }}</h1> |
104 | - <p class="thing__text">{{ $company[0]->text }}</p> | |
109 | + <p class="thing__text">{!! $company[0]->text !!}</p> | |
105 | 110 | <div class="thing__buttons"> |
106 | 111 | <button type="button" class="button"> |
107 | 112 | <svg> |
... | ... | @@ -190,8 +195,11 @@ |
190 | 195 | @foreach ($job->ad_job as $item) |
191 | 196 | <div class="main__employer-page-two-item"> |
192 | 197 | <div class="main__employer-page-two-item-toper"> |
193 | - <!-- end --> | |
194 | - <img src="{{ asset(Storage::url($company[0]->logo)) }}" alt="{{ $job->name }}"> | |
198 | + @if (!empty($company[0]->logo)) | |
199 | + <img src="{{ asset(Storage::url($company[0]->logo)) }}" alt="{{ $job->name }}"> | |
200 | + @else | |
201 | + <img src="{{ asset('images/default_ship.jpg') }}" alt="{{ $job->name }}"> | |
202 | + @endif | |
195 | 203 | <span>{{ $job->name }}</span> |
196 | 204 | </div> |
197 | 205 | <div class="main__employer-page-two-item-title">{{ $item->flot }}</div> |