Commit 70d1f8db75f56fcbc9ce5c56bb4c1a4b050c4a9b

Authored by Hayk Nazaryan
1 parent 1eb15338b3
Exists in master

fix upload images

Showing 2 changed files with 2 additions and 2 deletions Inline Diff

resources/views/employers/cabinet.blade.php
1 @extends('layout.frontend', ['title' => 'Образование и образовательные программы - РекаМоре']) 1 @extends('layout.frontend', ['title' => 'Образование и образовательные программы - РекаМоре'])
2 2
3 @section('scripts') 3 @section('scripts')
4 <script> 4 <script>
5 $(document).on('click', '.die_black', function() { 5 $(document).on('click', '.die_black', function() {
6 var this_ = $(this); 6 var this_ = $(this);
7 var ajax_ = $('#ajax_flot_div'); 7 var ajax_ = $('#ajax_flot_div');
8 var id_ = this_.attr('data-test'); 8 var id_ = this_.attr('data-test');
9 var url_ = this_.attr('data-link'); 9 var url_ = this_.attr('data-link');
10 10
11 console.log(url_); 11 console.log(url_);
12 $.ajax({ 12 $.ajax({
13 type: "GET", 13 type: "GET",
14 url: url_, 14 url: url_,
15 success: function (data) { 15 success: function (data) {
16 console.log('Ответка'); 16 console.log('Ответка');
17 ajax_.html(data); 17 ajax_.html(data);
18 }, 18 },
19 headers: { 19 headers: {
20 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') 20 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
21 }, 21 },
22 error: function (data) { 22 error: function (data) {
23 console.log('Error: ' + data); 23 console.log('Error: ' + data);
24 } 24 }
25 }); 25 });
26 26
27 }); 27 });
28 </script> 28 </script>
29 @endsection 29 @endsection
30 @section('content') 30 @section('content')
31 <section class="cabinet"> 31 <section class="cabinet">
32 <div class="container"> 32 <div class="container">
33 <ul class="breadcrumbs cabinet__breadcrumbs"> 33 <ul class="breadcrumbs cabinet__breadcrumbs">
34 <li><a href="{{ route('index') }}">Главная</a></li> 34 <li><a href="{{ route('index') }}">Главная</a></li>
35 <li><b>Личный кабинет</b></li> 35 <li><b>Личный кабинет</b></li>
36 </ul> 36 </ul>
37 <div class="cabinet__wrapper"> 37 <div class="cabinet__wrapper">
38 <div class="cabinet__side"> 38 <div class="cabinet__side">
39 <div class="cabinet__side-toper"> 39 <div class="cabinet__side-toper">
40 <div class="cabinet__side-toper-pic"> 40 <div class="cabinet__side-toper-pic">
41 @if (isset($Employer[0]->logo)) 41 @if (isset($Employer[0]->logo))
42 <img src="{{ asset(Storage::url($Employer[0]->logo)) }}" width="150" alt="{{ $Employer[0]->name_company }}"> 42 <img src="{{ asset(Storage::url($Employer[0]->logo)) }}" width="150" alt="{{ $Employer[0]->name_company }}">
43 @else 43 @else
44 <img src="{{ asset('images/logo_emp.png') }}" width="150" alt="{{ $Employer[0]->name_company }}"/> 44 <img src="{{ asset('images/logo_emp.png') }}" width="150" alt="{{ $Employer[0]->name_company }}"/>
45 @endif 45 @endif
46 </div> 46 </div>
47 <b>{{ $Employer[0]->name_company }}</b> 47 <b>{{ $Employer[0]->name_company }}</b>
48 </div> 48 </div>
49 49
50 @include('employers.menu') 50 @include('employers.menu')
51 51
52 </div> 52 </div>
53 <div class="cabinet__body"> 53 <div class="cabinet__body">
54 @include('messages_error') 54 @include('messages_error')
55 55
56 <form action="{{ route('employer.cabinet_save', ['Employer' => $Employer[0]->id]) }}" method="POST" enctype="multipart/form-data"> 56 <form action="{{ route('employer.cabinet_save', ['Employer' => $Employer[0]->id]) }}" method="POST" enctype="multipart/form-data">
57 @csrf 57 @csrf
58 <div class="cabinet__body-item"> 58 <div class="cabinet__body-item">
59 <div class="cabinet__descr"> 59 <div class="cabinet__descr">
60 <h2 class="title cabinet__title">Мой профиль</h2> 60 <h2 class="title cabinet__title">Мой профиль</h2>
61 <p class="cabinet__text">Все поля обязательны для заполнения *</p> 61 <p class="cabinet__text">Все поля обязательны для заполнения *</p>
62 </div> 62 </div>
63 <div class="cabinet__avatar"> 63 <div class="cabinet__avatar">
64 <div class="cabinet__avatar-pic"> 64 <div class="cabinet__avatar-pic">
65 @if (isset($Employer[0]->logo)) 65 @if (isset($Employer[0]->logo))
66 <img src="{{ asset(Storage::url($Employer[0]->logo)) }}" width="150" alt="{{ $Employer[0]->name_company }}"> 66 <img src="{{ asset(Storage::url($Employer[0]->logo)) }}" width="150" alt="{{ $Employer[0]->name_company }}">
67 @else 67 @else
68 <img src="{{ asset('images/logo_emp.png') }}" width="150" alt="{{ $Employer[0]->name_company }}"/> 68 <img src="{{ asset('images/logo_emp.png') }}" width="150" alt="{{ $Employer[0]->name_company }}"/>
69 @endif 69 @endif
70 </div> 70 </div>
71 <div class="cabinet__avatar-form"> 71 <div class="cabinet__avatar-form">
72 <label class="file"> 72 <label class="file">
73 <span class="file__input"> 73 <span class="file__input">
74 <input type="file" name="logo" accept=".svg, .jpg, .png или .jpeg" capture="filesystem"> 74 <input type="file" name="logo" accept=".svg,.jpg,.png,.jpeg">
75 <span class="button"> 75 <span class="button">
76 <svg> 76 <svg>
77 <use xlink:href="{{ asset('images/sprite.svg#plus') }}"></use> 77 <use xlink:href="{{ asset('images/sprite.svg#plus') }}"></use>
78 </svg> 78 </svg>
79 Загрузить 79 Загрузить
80 </span> 80 </span>
81 </span> 81 </span>
82 </label> 82 </label>
83 <p class="cabinet__text">Загрузите логотип в формате .svg, .jpg, .png или .jpeg</p> 83 <p class="cabinet__text">Загрузите логотип в формате .svg, .jpg, .png или .jpeg</p>
84 </div> 84 </div>
85 </div> 85 </div>
86 <div class="cabinet__inputs"> 86 <div class="cabinet__inputs">
87 <div class="cabinet__inputs-item form-group"> 87 <div class="cabinet__inputs-item form-group">
88 <label class="form-group__label">Название судоходной компании</label> 88 <label class="form-group__label">Название судоходной компании</label>
89 <div class="form-group__item"> 89 <div class="form-group__item">
90 <input type="text" class="input" name="name_company" id="name_company" placeholder="ООО Река Море" value="{{ old('name_company') ?? $Employer[0]->name_company ?? '' }}" required> 90 <input type="text" class="input" name="name_company" id="name_company" placeholder="ООО Река Море" value="{{ old('name_company') ?? $Employer[0]->name_company ?? '' }}" required>
91 @error('name_company') 91 @error('name_company')
92 <span class="text-xs text-red-600"> 92 <span class="text-xs text-red-600">
93 {{ $message }} 93 {{ $message }}
94 </span> 94 </span>
95 @enderror 95 @enderror
96 </div> 96 </div>
97 </div> 97 </div>
98 <div class="cabinet__inputs-item form-group"> 98 <div class="cabinet__inputs-item form-group">
99 <label class="form-group__label">Электронная почта</label> 99 <label class="form-group__label">Электронная почта</label>
100 <div class="form-group__item"> 100 <div class="form-group__item">
101 <input type="email" name="email" class="input" placeholder="info@rekamore.su" value="{{ old('email') ?? $Employer[0]->email ?? '' }}" required> 101 <input type="email" name="email" class="input" placeholder="info@rekamore.su" value="{{ old('email') ?? $Employer[0]->email ?? '' }}" required>
102 @error('email') 102 @error('email')
103 <span class="text-xs text-red-600"> 103 <span class="text-xs text-red-600">
104 {{ $message }} 104 {{ $message }}
105 </span> 105 </span>
106 @enderror 106 @enderror
107 </div> 107 </div>
108 </div> 108 </div>
109 <div class="cabinet__inputs-item form-group"> 109 <div class="cabinet__inputs-item form-group">
110 <label class="form-group__label">Номер телефона</label> 110 <label class="form-group__label">Номер телефона</label>
111 <div class="form-group__item"> 111 <div class="form-group__item">
112 <input type="tel" name="telephone" class="input" placeholder="+7 (___) ___-__-__" value="{{ old('telephone') ?? $Employer[0]->telephone ?? '' }}" required> 112 <input type="tel" name="telephone" class="input" placeholder="+7 (___) ___-__-__" value="{{ old('telephone') ?? $Employer[0]->telephone ?? '' }}" required>
113 @error('telephone') 113 @error('telephone')
114 <span class="text-xs text-red-600"> 114 <span class="text-xs text-red-600">
115 {{ $message }} 115 {{ $message }}
116 </span> 116 </span>
117 @enderror 117 @enderror
118 </div> 118 </div>
119 </div> 119 </div>
120 <div class="cabinet__inputs-item form-group"> 120 <div class="cabinet__inputs-item form-group">
121 <label class="form-group__label">Адрес компании</label> 121 <label class="form-group__label">Адрес компании</label>
122 <div class="form-group__item"> 122 <div class="form-group__item">
123 <input type="text" name="address" class="input" value="{{ old('address') ?? $Employer[0]->address ?? '' }}" placeholder="692904, Приморский край, г. Находка, ул. Портовая 3А, 5 этаж"> 123 <input type="text" name="address" class="input" value="{{ old('address') ?? $Employer[0]->address ?? '' }}" placeholder="692904, Приморский край, г. Находка, ул. Портовая 3А, 5 этаж">
124 @error('address') 124 @error('address')
125 <span class="text-xs text-red-600"> 125 <span class="text-xs text-red-600">
126 {{ $message }} 126 {{ $message }}
127 </span> 127 </span>
128 @enderror 128 @enderror
129 </div> 129 </div>
130 </div> 130 </div>
131 <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> 131 <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group">
132 <label class="form-group__label">Ссылка на сайт</label> 132 <label class="form-group__label">Ссылка на сайт</label>
133 <div class="form-group__item"> 133 <div class="form-group__item">
134 <input type="url" name="site" class="input" value="{{ old('site') ?? $Employer[0]->site ?? '' }}" placeholder="https://rekamore.su"> 134 <input type="url" name="site" class="input" value="{{ old('site') ?? $Employer[0]->site ?? '' }}" placeholder="https://rekamore.su">
135 @error('site') 135 @error('site')
136 <span class="text-xs text-red-600"> 136 <span class="text-xs text-red-600">
137 {{ $message }} 137 {{ $message }}
138 </span> 138 </span>
139 @enderror 139 @enderror
140 </div> 140 </div>
141 </div> 141 </div>
142 <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> 142 <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group">
143 <label class="form-group__label">О компании</label> 143 <label class="form-group__label">О компании</label>
144 <div class="form-group__item"> 144 <div class="form-group__item">
145 <textarea name="text" class="textarea" required>{{ old('text') ?? $Employer[0]->text ?? '' }}</textarea> 145 <textarea name="text" class="textarea" required>{{ old('text') ?? $Employer[0]->text ?? '' }}</textarea>
146 @error('text') 146 @error('text')
147 <span class="text-xs text-red-600"> 147 <span class="text-xs text-red-600">
148 {{ $message }} 148 {{ $message }}
149 </span> 149 </span>
150 @enderror 150 @enderror
151 </div> 151 </div>
152 </div> 152 </div>
153 </div> 153 </div>
154 </div><br> 154 </div><br>
155 <button type="submit" class="button cabinet__submit">Сохранить изменения</button> 155 <button type="submit" class="button cabinet__submit">Сохранить изменения</button>
156 </form> 156 </form>
157 157
158 <div class="cabinet__body-item"> 158 <div class="cabinet__body-item">
159 <div class="cabinet__descr"> 159 <div class="cabinet__descr">
160 <h2 class="title cabinet__title">Мой флот</h2> 160 <h2 class="title cabinet__title">Мой флот</h2>
161 </div> 161 </div>
162 162
163 <form action="{{ route('employer.save_add_flot') }}" method="POST" class="cabinet__add" enctype="multipart/form-data"> 163 <form action="{{ route('employer.save_add_flot') }}" method="POST" class="cabinet__add" enctype="multipart/form-data">
164 @csrf 164 @csrf
165 <label class="cabinet__add-pic" style="vertical-align: top"> 165 <label class="cabinet__add-pic" style="vertical-align: top">
166 <input type="file" name="image" id="image"> 166 <input type="file" name="image" id="image">
167 <input type="hidden" name="employer_id" id="employer_id" value="{{ $Employer[0]->id }}"/> 167 <input type="hidden" name="employer_id" id="employer_id" value="{{ $Employer[0]->id }}"/>
168 <svg> 168 <svg>
169 <use xlink:href="{{ asset('images/sprite.svg#pic') }}"></use> 169 <use xlink:href="{{ asset('images/sprite.svg#pic') }}"></use>
170 </svg> 170 </svg>
171 <span> 171 <span>
172 <svg> 172 <svg>
173 <use xlink:href="{{ asset('images/sprite.svg#plus') }}"></use> 173 <use xlink:href="{{ asset('images/sprite.svg#plus') }}"></use>
174 </svg> 174 </svg>
175 Загрузить фото 175 Загрузить фото
176 </span> 176 </span>
177 </label> 177 </label>
178 178
179 <div class="cabinet__add-body"> 179 <div class="cabinet__add-body">
180 <div class="form-group"> 180 <div class="form-group">
181 <label class="form-group__label">Название корабля</label> 181 <label class="form-group__label">Название корабля</label>
182 <div class="form-group__item"> 182 <div class="form-group__item">
183 <input type="text" name="name" id="flot_name" class="input" placeholder="Корабль №000001" required> 183 <input type="text" name="name" id="flot_name" class="input" placeholder="Корабль №000001" required>
184 </div> 184 </div>
185 </div> 185 </div>
186 <div class="form-group"> 186 <div class="form-group">
187 <label class="form-group__label">Описание</label> 187 <label class="form-group__label">Описание</label>
188 <div class="form-group__item"> 188 <div class="form-group__item">
189 <input type="text" name="text" id="flot_text" class="input" placeholder="Это судно находится..." required> 189 <input type="text" name="text" id="flot_text" class="input" placeholder="Это судно находится..." required>
190 </div> 190 </div>
191 </div> 191 </div>
192 <div class="form-group"> 192 <div class="form-group">
193 <label class="form-group__label">Регион</label> 193 <label class="form-group__label">Регион</label>
194 <div class="form-group__item"> 194 <div class="form-group__item">
195 <input type="text" name="region" id="region" class="input" placeholder="Мурманск" required> 195 <input type="text" name="region" id="region" class="input" placeholder="Мурманск" required>
196 </div> 196 </div>
197 </div> 197 </div>
198 <div class="form-group"> 198 <div class="form-group">
199 <label class="form-group__label">Мощность</label> 199 <label class="form-group__label">Мощность</label>
200 <div class="form-group__item"> 200 <div class="form-group__item">
201 <input type="text" name="power" id="flot_power" class="input" placeholder="Dw 40000 9000Kw" required> 201 <input type="text" name="power" id="flot_power" class="input" placeholder="Dw 40000 9000Kw" required>
202 </div> 202 </div>
203 </div> 203 </div>
204 <button type="submit" class="button" id="ajax_flot" name="ajax_flot">Добавить флот</button> 204 <button type="submit" class="button" id="ajax_flot" name="ajax_flot">Добавить флот</button>
205 </div> 205 </div>
206 206
207 </form> 207 </form>
208 208
209 <div class="cabinet__fleet" id="ajax_flot_div" name="ajax_flot_div"> 209 <div class="cabinet__fleet" id="ajax_flot_div" name="ajax_flot_div">
210 @if (isset($Employer[0]->flots)) 210 @if (isset($Employer[0]->flots))
211 @if ($Employer[0]->flots->count()) 211 @if ($Employer[0]->flots->count())
212 @foreach ($Employer[0]->flots as $it) 212 @foreach ($Employer[0]->flots as $it)
213 <div class="cabinet__fleet-item main__employer-page-one-item"> 213 <div class="cabinet__fleet-item main__employer-page-one-item">
214 <div class="del die_black" data-test="{{ $it->id }}" data-link="{{ route('employer.delete_flot', ['Flot' => $it->id]) }}"> 214 <div class="del die_black" data-test="{{ $it->id }}" data-link="{{ route('employer.delete_flot', ['Flot' => $it->id]) }}">
215 <svg> 215 <svg>
216 <use xlink:href="{{ asset('images/sprite.svg#del') }}"></use> 216 <use xlink:href="{{ asset('images/sprite.svg#del') }}"></use>
217 </svg> 217 </svg>
218 </div> 218 </div>
219 @if (!empty($it->image)) 219 @if (!empty($it->image))
220 <img src="{{ asset(Storage::url($it->image)) }}" alt="{{ $it->name }}"> 220 <img src="{{ asset(Storage::url($it->image)) }}" alt="{{ $it->name }}">
221 @else 221 @else
222 <img src="{{ asset('images/default_ship.jpg') }}" alt="{{ $it->name }}"/> 222 <img src="{{ asset('images/default_ship.jpg') }}" alt="{{ $it->name }}"/>
223 @endif 223 @endif
224 <b>{{ $it->name }}</b> 224 <b>{{ $it->name }}</b>
225 <span>{{ $it->text }}</span> 225 <span>{{ $it->text }}</span>
226 </div> 226 </div>
227 @endforeach 227 @endforeach
228 @endif 228 @endif
229 @endif 229 @endif
230 </div> 230 </div>
231 </div> 231 </div>
232 </div> 232 </div>
233 </div> 233 </div>
234 </div> 234 </div>
235 </section> 235 </section>
236 </div> <!-- END TOP WRAPPER --> 236 </div> <!-- END TOP WRAPPER -->
237 @endsection 237 @endsection
238 238
resources/views/employers/cabinet45.blade.php
1 @extends('layout.frontend', ['title' => 'Кабинет работодателя - РекаМоре']) 1 @extends('layout.frontend', ['title' => 'Кабинет работодателя - РекаМоре'])
2 2
3 @section('scripts') 3 @section('scripts')
4 <script src="https://cdn.ckeditor.com/ckeditor5/23.0.0/classic/ckeditor.js"></script> 4 <script src="https://cdn.ckeditor.com/ckeditor5/23.0.0/classic/ckeditor.js"></script>
5 <script> 5 <script>
6 ClassicEditor 6 ClassicEditor
7 .create( document.querySelector( '#text' ) ) 7 .create( document.querySelector( '#text' ) )
8 .catch( error => { 8 .catch( error => {
9 console.error( error ); 9 console.error( error );
10 } ); 10 } );
11 </script> 11 </script>
12 @endsection 12 @endsection
13 @section('content') 13 @section('content')
14 <section class="cabinet"> 14 <section class="cabinet">
15 <div class="container"> 15 <div class="container">
16 <ul class="breadcrumbs cabinet__breadcrumbs"> 16 <ul class="breadcrumbs cabinet__breadcrumbs">
17 <li><a href="{{ route('index') }}">Главная</a></li> 17 <li><a href="{{ route('index') }}">Главная</a></li>
18 <li><b>Личный кабинет</b></li> 18 <li><b>Личный кабинет</b></li>
19 </ul> 19 </ul>
20 <div class="cabinet__wrapper"> 20 <div class="cabinet__wrapper">
21 <div class="cabinet__side"> 21 <div class="cabinet__side">
22 <div class="cabinet__side-toper"> 22 <div class="cabinet__side-toper">
23 @include('employers.emblema') 23 @include('employers.emblema')
24 </div> 24 </div>
25 25
26 @include('employers.menu', ['item' => 1]) 26 @include('employers.menu', ['item' => 1])
27 27
28 </div> 28 </div>
29 <div class="cabinet__body"> 29 <div class="cabinet__body">
30 @include('messages_error') 30 @include('messages_error')
31 31
32 <form action="{{ route('employer.cabinet_save', ['Employer' => $Employer[0]->id]) }}" method="POST" enctype="multipart/form-data"> 32 <form action="{{ route('employer.cabinet_save', ['Employer' => $Employer[0]->id]) }}" method="POST" enctype="multipart/form-data">
33 @csrf 33 @csrf
34 <div class="cabinet__body-item"> 34 <div class="cabinet__body-item">
35 <div class="cabinet__descr"> 35 <div class="cabinet__descr">
36 <h2 class="title cabinet__title">Мой профиль</h2> 36 <h2 class="title cabinet__title">Мой профиль</h2>
37 <p class="cabinet__text">Все поля обязательны для заполнения *</p> 37 <p class="cabinet__text">Все поля обязательны для заполнения *</p>
38 </div> 38 </div>
39 <div class="cabinet__avatar"> 39 <div class="cabinet__avatar">
40 <div class="cabinet__avatar-pic"> 40 <div class="cabinet__avatar-pic">
41 @if (!empty($Employer[0]->logo)) 41 @if (!empty($Employer[0]->logo))
42 <img src="{{ asset(Storage::url($Employer[0]->logo)) }}" width="150" alt="{{ $Employer[0]->name_company }}"> 42 <img src="{{ asset(Storage::url($Employer[0]->logo)) }}" width="150" alt="{{ $Employer[0]->name_company }}">
43 @else 43 @else
44 <img src="{{ asset('images/logo_emp.png') }}" width="150" alt="{{ $Employer[0]->name_company }}"/> 44 <img src="{{ asset('images/logo_emp.png') }}" width="150" alt="{{ $Employer[0]->name_company }}"/>
45 @endif 45 @endif
46 </div> 46 </div>
47 <div class="cabinet__avatar-form"> 47 <div class="cabinet__avatar-form">
48 <label class="file"> 48 <label class="file">
49 <span class="file__input"> 49 <span class="file__input">
50 <input type="file" name="logo" accept=".svg, .jpg, .png или .jpeg" capture="filesystem"> 50 <input type="file" name="logo" accept=".svg,.jpg,.png,.jpeg">
51 <span class="button"> 51 <span class="button">
52 <svg> 52 <svg>
53 <use xlink:href="{{ asset('images/sprite.svg#plus') }}"></use> 53 <use xlink:href="{{ asset('images/sprite.svg#plus') }}"></use>
54 </svg> 54 </svg>
55 Загрузить 55 Загрузить
56 </span> 56 </span>
57 </span> 57 </span>
58 </label> 58 </label>
59 <p class="cabinet__text">Загрузите логотип в формате .svg, .jpg, .png или .jpeg</p> 59 <p class="cabinet__text">Загрузите логотип в формате .svg, .jpg, .png или .jpeg</p>
60 </div> 60 </div>
61 </div> 61 </div>
62 <div class="cabinet__inputs"> 62 <div class="cabinet__inputs">
63 <div class="cabinet__inputs-item form-group"> 63 <div class="cabinet__inputs-item form-group">
64 <label class="form-group__label">Название судоходной компании</label> 64 <label class="form-group__label">Название судоходной компании</label>
65 <div class="form-group__item"> 65 <div class="form-group__item">
66 <input type="text" class="input" name="name_company" id="name_company" placeholder="ООО Река Море" value="{{ old('name_company') ?? $Employer[0]->name_company ?? '' }}" required> 66 <input type="text" class="input" name="name_company" id="name_company" placeholder="ООО Река Море" value="{{ old('name_company') ?? $Employer[0]->name_company ?? '' }}" required>
67 @error('name_company') 67 @error('name_company')
68 <span class="text-xs text-red-600"> 68 <span class="text-xs text-red-600">
69 {{ $message }} 69 {{ $message }}
70 </span> 70 </span>
71 @enderror 71 @enderror
72 </div> 72 </div>
73 </div> 73 </div>
74 <div class="cabinet__inputs-item form-group"> 74 <div class="cabinet__inputs-item form-group">
75 <label class="form-group__label">Электронная почта</label> 75 <label class="form-group__label">Электронная почта</label>
76 <div class="form-group__item"> 76 <div class="form-group__item">
77 <input type="email" name="email" class="input" placeholder="info@rekamore.su" value="{{ old('email') ?? $Employer[0]->email ?? '' }}" required> 77 <input type="email" name="email" class="input" placeholder="info@rekamore.su" value="{{ old('email') ?? $Employer[0]->email ?? '' }}" required>
78 @error('email') 78 @error('email')
79 <span class="text-xs text-red-600"> 79 <span class="text-xs text-red-600">
80 {{ $message }} 80 {{ $message }}
81 </span> 81 </span>
82 @enderror 82 @enderror
83 </div> 83 </div>
84 </div> 84 </div>
85 85
86 <div class="cabinet__inputs-item form-group"> 86 <div class="cabinet__inputs-item form-group">
87 <label class="form-group__label">Электронная почта (alt)</label> 87 <label class="form-group__label">Электронная почта (alt)</label>
88 <div class="form-group__item"> 88 <div class="form-group__item">
89 <input type="email" name="email_2" class="input" placeholder="info@rekamore.su" value="{{ old('email_2') ?? $Employer[0]->email_2 ?? '' }}"> 89 <input type="email" name="email_2" class="input" placeholder="info@rekamore.su" value="{{ old('email_2') ?? $Employer[0]->email_2 ?? '' }}">
90 @error('email') 90 @error('email')
91 <span class="text-xs text-red-600"> 91 <span class="text-xs text-red-600">
92 {{ $message }} 92 {{ $message }}
93 </span> 93 </span>
94 @enderror 94 @enderror
95 </div> 95 </div>
96 </div> 96 </div>
97 97
98 <div class="cabinet__inputs-item form-group"> 98 <div class="cabinet__inputs-item form-group">
99 <label class="form-group__label">Номер телефона</label> 99 <label class="form-group__label">Номер телефона</label>
100 <div class="form-group__item"> 100 <div class="form-group__item">
101 <input type="tel" name="telephone" class="input" placeholder="+7 (___) ___-__-__" value="{{ old('telephone') ?? $Employer[0]->telephone ?? '' }}" required> 101 <input type="tel" name="telephone" class="input" placeholder="+7 (___) ___-__-__" value="{{ old('telephone') ?? $Employer[0]->telephone ?? '' }}" required>
102 @error('telephone') 102 @error('telephone')
103 <span class="text-xs text-red-600"> 103 <span class="text-xs text-red-600">
104 {{ $message }} 104 {{ $message }}
105 </span> 105 </span>
106 @enderror 106 @enderror
107 </div> 107 </div>
108 </div> 108 </div>
109 109
110 <div class="cabinet__inputs-item form-group"> 110 <div class="cabinet__inputs-item form-group">
111 <label class="form-group__label">Номер телефона (alt)</label> 111 <label class="form-group__label">Номер телефона (alt)</label>
112 <div class="form-group__item"> 112 <div class="form-group__item">
113 <input type="tel" name="telephone_2" class="input" placeholder="+7 (___) ___-__-__" value="{{ old('telephone_2') ?? $Employer[0]->telephone_2 ?? '' }}"> 113 <input type="tel" name="telephone_2" class="input" placeholder="+7 (___) ___-__-__" value="{{ old('telephone_2') ?? $Employer[0]->telephone_2 ?? '' }}">
114 @error('telephone') 114 @error('telephone')
115 <span class="text-xs text-red-600"> 115 <span class="text-xs text-red-600">
116 {{ $message }} 116 {{ $message }}
117 </span> 117 </span>
118 @enderror 118 @enderror
119 </div> 119 </div>
120 </div> 120 </div>
121 121
122 <div class="cabinet__inputs-item form-group"> 122 <div class="cabinet__inputs-item form-group">
123 <label class="form-group__label">Адрес компании</label> 123 <label class="form-group__label">Адрес компании</label>
124 <div class="form-group__item"> 124 <div class="form-group__item">
125 <input type="text" name="address" class="input" value="{{ old('address') ?? $Employer[0]->address ?? '' }}" placeholder="692904, Приморский край, г. Находка, ул. Портовая 3А, 5 этаж"> 125 <input type="text" name="address" class="input" value="{{ old('address') ?? $Employer[0]->address ?? '' }}" placeholder="692904, Приморский край, г. Находка, ул. Портовая 3А, 5 этаж">
126 @error('address') 126 @error('address')
127 <span class="text-xs text-red-600"> 127 <span class="text-xs text-red-600">
128 {{ $message }} 128 {{ $message }}
129 </span> 129 </span>
130 @enderror 130 @enderror
131 </div> 131 </div>
132 </div> 132 </div>
133 <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> 133 <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group">
134 <label class="form-group__label">Ссылка на сайт</label> 134 <label class="form-group__label">Ссылка на сайт</label>
135 <div class="form-group__item"> 135 <div class="form-group__item">
136 <input type="url" name="site" class="input" value="{{ old('site') ?? $Employer[0]->site ?? '' }}" placeholder="https://rekamore.su"> 136 <input type="url" name="site" class="input" value="{{ old('site') ?? $Employer[0]->site ?? '' }}" placeholder="https://rekamore.su">
137 @error('site') 137 @error('site')
138 <span class="text-xs text-red-600"> 138 <span class="text-xs text-red-600">
139 {{ $message }} 139 {{ $message }}
140 </span> 140 </span>
141 @enderror 141 @enderror
142 </div> 142 </div>
143 </div> 143 </div>
144 144
145 <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> 145 <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group">
146 <label class="form-group__label">О компании</label> 146 <label class="form-group__label">О компании</label>
147 <div class="form-group__item"> 147 <div class="form-group__item">
148 148
149 <textarea name="text" id="txtarea" class="textarea ckeditor">{{ old('text') ?? $Employer[0]->text ?? '' }}</textarea> 149 <textarea name="text" id="txtarea" class="textarea ckeditor">{{ old('text') ?? $Employer[0]->text ?? '' }}</textarea>
150 @error('text') 150 @error('text')
151 <span class="text-xs text-red-600"> 151 <span class="text-xs text-red-600">
152 {{ $message }} 152 {{ $message }}
153 </span> 153 </span>
154 @enderror 154 @enderror
155 </div> 155 </div>
156 </div> 156 </div>
157 </div> 157 </div>
158 </div><br> 158 </div><br>
159 <button type="submit" class="button cabinet__submit">Сохранить изменения</button> 159 <button type="submit" class="button cabinet__submit">Сохранить изменения</button>
160 </form> 160 </form>
161 161
162 </div> 162 </div>
163 </div> 163 </div>
164 </div> 164 </div>
165 165
166 </section> 166 </section>
167 </div> 167 </div>
168 <!-- END TOP WRAPPER --> 168 <!-- END TOP WRAPPER -->
169 <script src="//cdn.ckeditor.com/4.14.0/standard/ckeditor.js"></script> 169 <script src="//cdn.ckeditor.com/4.14.0/standard/ckeditor.js"></script>
170 <script> 170 <script>
171 CKEDITOR.replace('txtarea'); 171 CKEDITOR.replace('txtarea');
172 //CKEDITOR.replace( 'text', { 172 //CKEDITOR.replace( 'text', {
173 // filebrowserUploadUrl: "{{route('ckeditor.image-upload', ['_token' => csrf_token() ])}}", 173 // filebrowserUploadUrl: "{{route('ckeditor.image-upload', ['_token' => csrf_token() ])}}",
174 // filebrowserImageUploadUrl: "{{ route('ckeditor.image-upload', ['_token' => csrf_token() ])}}", 174 // filebrowserImageUploadUrl: "{{ route('ckeditor.image-upload', ['_token' => csrf_token() ])}}",
175 // filebrowserUploadMethod: 'form' 175 // filebrowserUploadMethod: 'form'
176 // }); 176 // });
177 </script> 177 </script>
178 178
179 @endsection 179 @endsection
180 180