Commit 831caae20a470602d9978a94321acadd416df728
1 parent
ec0dd5eea6
Exists in
master
and in
1 other branch
Баг баг textarea
Showing 1 changed file with 1 additions and 1 deletions Inline Diff
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( '#txtarea' ) ) | 7 | .create( document.querySelector( '#txtarea' ) ) |
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 | <div class="cabinet__side-toper-pic"> | 23 | <div class="cabinet__side-toper-pic"> |
24 | @if (!empty($Employer[0]->logo)) | 24 | @if (!empty($Employer[0]->logo)) |
25 | <img src="{{ asset(Storage::url($Employer[0]->logo)) }}" width="150" alt="{{ $Employer[0]->name_company }}"> | 25 | <img src="{{ asset(Storage::url($Employer[0]->logo)) }}" width="150" alt="{{ $Employer[0]->name_company }}"> |
26 | @else | 26 | @else |
27 | <img src="{{ asset('images/logo_emp.png') }}" width="150" alt="{{ $Employer[0]->name_company }}"/> | 27 | <img src="{{ asset('images/logo_emp.png') }}" width="150" alt="{{ $Employer[0]->name_company }}"/> |
28 | @endif | 28 | @endif |
29 | </div> | 29 | </div> |
30 | <b>{{ $Employer[0]->name_company }}</b> | 30 | <b>{{ $Employer[0]->name_company }}</b> |
31 | </div> | 31 | </div> |
32 | 32 | ||
33 | @include('employers.menu', ['item' => 1]) | 33 | @include('employers.menu', ['item' => 1]) |
34 | 34 | ||
35 | </div> | 35 | </div> |
36 | <div class="cabinet__body"> | 36 | <div class="cabinet__body"> |
37 | @include('messages_error') | 37 | @include('messages_error') |
38 | 38 | ||
39 | <form action="{{ route('employer.cabinet_save', ['Employer' => $Employer[0]->id]) }}" method="POST" enctype="multipart/form-data"> | 39 | <form action="{{ route('employer.cabinet_save', ['Employer' => $Employer[0]->id]) }}" method="POST" enctype="multipart/form-data"> |
40 | @csrf | 40 | @csrf |
41 | <div class="cabinet__body-item"> | 41 | <div class="cabinet__body-item"> |
42 | <div class="cabinet__descr"> | 42 | <div class="cabinet__descr"> |
43 | <h2 class="title cabinet__title">Мой профиль</h2> | 43 | <h2 class="title cabinet__title">Мой профиль</h2> |
44 | <p class="cabinet__text">Все поля обязательны для заполнения *</p> | 44 | <p class="cabinet__text">Все поля обязательны для заполнения *</p> |
45 | </div> | 45 | </div> |
46 | <div class="cabinet__avatar"> | 46 | <div class="cabinet__avatar"> |
47 | <div class="cabinet__avatar-pic"> | 47 | <div class="cabinet__avatar-pic"> |
48 | @if (!empty($Employer[0]->logo)) | 48 | @if (!empty($Employer[0]->logo)) |
49 | <img src="{{ asset(Storage::url($Employer[0]->logo)) }}" width="150" alt="{{ $Employer[0]->name_company }}"> | 49 | <img src="{{ asset(Storage::url($Employer[0]->logo)) }}" width="150" alt="{{ $Employer[0]->name_company }}"> |
50 | @else | 50 | @else |
51 | <img src="{{ asset('images/logo_emp.png') }}" width="150" alt="{{ $Employer[0]->name_company }}"/> | 51 | <img src="{{ asset('images/logo_emp.png') }}" width="150" alt="{{ $Employer[0]->name_company }}"/> |
52 | @endif | 52 | @endif |
53 | </div> | 53 | </div> |
54 | <div class="cabinet__avatar-form"> | 54 | <div class="cabinet__avatar-form"> |
55 | <label class="file"> | 55 | <label class="file"> |
56 | <span class="file__input"> | 56 | <span class="file__input"> |
57 | <input type="file" name="logo"> | 57 | <input type="file" name="logo"> |
58 | <span class="button"> | 58 | <span class="button"> |
59 | <svg> | 59 | <svg> |
60 | <use xlink:href="{{ asset('images/sprite.svg#plus') }}"></use> | 60 | <use xlink:href="{{ asset('images/sprite.svg#plus') }}"></use> |
61 | </svg> | 61 | </svg> |
62 | Загрузить | 62 | Загрузить |
63 | </span> | 63 | </span> |
64 | </span> | 64 | </span> |
65 | </label> | 65 | </label> |
66 | <p class="cabinet__text">Загрузите логотип в формате .svg, .jpg, .png или .jpeg</p> | 66 | <p class="cabinet__text">Загрузите логотип в формате .svg, .jpg, .png или .jpeg</p> |
67 | </div> | 67 | </div> |
68 | </div> | 68 | </div> |
69 | <div class="cabinet__inputs"> | 69 | <div class="cabinet__inputs"> |
70 | <div class="cabinet__inputs-item form-group"> | 70 | <div class="cabinet__inputs-item form-group"> |
71 | <label class="form-group__label">Название судоходной компании</label> | 71 | <label class="form-group__label">Название судоходной компании</label> |
72 | <div class="form-group__item"> | 72 | <div class="form-group__item"> |
73 | <input type="text" class="input" name="name_company" id="name_company" placeholder="ООО Река Море" value="{{ old('name_company') ?? $Employer[0]->name_company ?? '' }}" required> | 73 | <input type="text" class="input" name="name_company" id="name_company" placeholder="ООО Река Море" value="{{ old('name_company') ?? $Employer[0]->name_company ?? '' }}" required> |
74 | @error('name_company') | 74 | @error('name_company') |
75 | <span class="text-xs text-red-600"> | 75 | <span class="text-xs text-red-600"> |
76 | {{ $message }} | 76 | {{ $message }} |
77 | </span> | 77 | </span> |
78 | @enderror | 78 | @enderror |
79 | </div> | 79 | </div> |
80 | </div> | 80 | </div> |
81 | <div class="cabinet__inputs-item form-group"> | 81 | <div class="cabinet__inputs-item form-group"> |
82 | <label class="form-group__label">Электронная почта</label> | 82 | <label class="form-group__label">Электронная почта</label> |
83 | <div class="form-group__item"> | 83 | <div class="form-group__item"> |
84 | <input type="email" name="email" class="input" placeholder="info@rekamore.su" value="{{ old('email') ?? $Employer[0]->email ?? '' }}" required> | 84 | <input type="email" name="email" class="input" placeholder="info@rekamore.su" value="{{ old('email') ?? $Employer[0]->email ?? '' }}" required> |
85 | @error('email') | 85 | @error('email') |
86 | <span class="text-xs text-red-600"> | 86 | <span class="text-xs text-red-600"> |
87 | {{ $message }} | 87 | {{ $message }} |
88 | </span> | 88 | </span> |
89 | @enderror | 89 | @enderror |
90 | </div> | 90 | </div> |
91 | </div> | 91 | </div> |
92 | <div class="cabinet__inputs-item form-group"> | 92 | <div class="cabinet__inputs-item form-group"> |
93 | <label class="form-group__label">Номер телефона</label> | 93 | <label class="form-group__label">Номер телефона</label> |
94 | <div class="form-group__item"> | 94 | <div class="form-group__item"> |
95 | <input type="tel" name="telephone" class="input" placeholder="+7 (___) ___-__-__" value="{{ old('telephone') ?? $Employer[0]->telephone ?? '' }}" required> | 95 | <input type="tel" name="telephone" class="input" placeholder="+7 (___) ___-__-__" value="{{ old('telephone') ?? $Employer[0]->telephone ?? '' }}" required> |
96 | @error('telephone') | 96 | @error('telephone') |
97 | <span class="text-xs text-red-600"> | 97 | <span class="text-xs text-red-600"> |
98 | {{ $message }} | 98 | {{ $message }} |
99 | </span> | 99 | </span> |
100 | @enderror | 100 | @enderror |
101 | </div> | 101 | </div> |
102 | </div> | 102 | </div> |
103 | <div class="cabinet__inputs-item form-group"> | 103 | <div class="cabinet__inputs-item form-group"> |
104 | <label class="form-group__label">Адрес компании</label> | 104 | <label class="form-group__label">Адрес компании</label> |
105 | <div class="form-group__item"> | 105 | <div class="form-group__item"> |
106 | <input type="text" name="address" class="input" value="{{ old('address') ?? $Employer[0]->address ?? '' }}" placeholder="692904, Приморский край, г. Находка, ул. Портовая 3А, 5 этаж" required> | 106 | <input type="text" name="address" class="input" value="{{ old('address') ?? $Employer[0]->address ?? '' }}" placeholder="692904, Приморский край, г. Находка, ул. Портовая 3А, 5 этаж" required> |
107 | @error('address') | 107 | @error('address') |
108 | <span class="text-xs text-red-600"> | 108 | <span class="text-xs text-red-600"> |
109 | {{ $message }} | 109 | {{ $message }} |
110 | </span> | 110 | </span> |
111 | @enderror | 111 | @enderror |
112 | </div> | 112 | </div> |
113 | </div> | 113 | </div> |
114 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> | 114 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> |
115 | <label class="form-group__label">Ссылка на сайт</label> | 115 | <label class="form-group__label">Ссылка на сайт</label> |
116 | <div class="form-group__item"> | 116 | <div class="form-group__item"> |
117 | <input type="url" name="site" class="input" value="{{ old('site') ?? $Employer[0]->site ?? '' }}" placeholder="https://rekamore.su" required> | 117 | <input type="url" name="site" class="input" value="{{ old('site') ?? $Employer[0]->site ?? '' }}" placeholder="https://rekamore.su" required> |
118 | @error('site') | 118 | @error('site') |
119 | <span class="text-xs text-red-600"> | 119 | <span class="text-xs text-red-600"> |
120 | {{ $message }} | 120 | {{ $message }} |
121 | </span> | 121 | </span> |
122 | @enderror | 122 | @enderror |
123 | </div> | 123 | </div> |
124 | </div> | 124 | </div> |
125 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> | 125 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> |
126 | <label class="form-group__label">О компании</label> | 126 | <label class="form-group__label">О компании</label> |
127 | <div class="form-group__item"> | 127 | <div class="form-group__item"> |
128 | <textarea name="text" id="txtarea" name="txtarea" class="textarea ckeditor" required>{{ old('text') ?? $Employer[0]->text ?? '' }}</textarea> | 128 | <textarea name="text" id="txtarea" class="textarea ckeditor" required>{{ old('text') ?? $Employer[0]->text ?? '' }}</textarea> |
129 | @error('text') | 129 | @error('text') |
130 | <span class="text-xs text-red-600"> | 130 | <span class="text-xs text-red-600"> |
131 | {{ $message }} | 131 | {{ $message }} |
132 | </span> | 132 | </span> |
133 | @enderror | 133 | @enderror |
134 | </div> | 134 | </div> |
135 | </div> | 135 | </div> |
136 | </div> | 136 | </div> |
137 | </div><br> | 137 | </div><br> |
138 | <button type="submit" class="button cabinet__submit">Сохранить изменения</button> | 138 | <button type="submit" class="button cabinet__submit">Сохранить изменения</button> |
139 | </form> | 139 | </form> |
140 | 140 | ||
141 | <div class="cabinet__body-item"> | 141 | <div class="cabinet__body-item"> |
142 | <div class="cabinet__descr"> | 142 | <div class="cabinet__descr"> |
143 | <h2 class="title cabinet__title">Мой флот</h2> | 143 | <h2 class="title cabinet__title">Мой флот</h2> |
144 | </div> | 144 | </div> |
145 | 145 | ||
146 | <form action="{{ route('employer.save_add_flot') }}" method="POST" class="cabinet__add" enctype="multipart/form-data"> | 146 | <form action="{{ route('employer.save_add_flot') }}" method="POST" class="cabinet__add" enctype="multipart/form-data"> |
147 | @csrf | 147 | @csrf |
148 | <label class="cabinet__add-pic" style="vertical-align: top"> | 148 | <label class="cabinet__add-pic" style="vertical-align: top"> |
149 | <input type="file" name="image" id="image"> | 149 | <input type="file" name="image" id="image"> |
150 | @error('image') | 150 | @error('image') |
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 | <input type="hidden" name="employer_id" id="employer_id" value="{{ $Employer[0]->id }}"/> | 155 | <input type="hidden" name="employer_id" id="employer_id" value="{{ $Employer[0]->id }}"/> |
156 | <svg> | 156 | <svg> |
157 | <use xlink:href="{{ asset('images/sprite.svg#pic') }}"></use> | 157 | <use xlink:href="{{ asset('images/sprite.svg#pic') }}"></use> |
158 | </svg> | 158 | </svg> |
159 | <span> | 159 | <span> |
160 | <svg> | 160 | <svg> |
161 | <use xlink:href="{{ asset('images/sprite.svg#plus') }}"></use> | 161 | <use xlink:href="{{ asset('images/sprite.svg#plus') }}"></use> |
162 | </svg> | 162 | </svg> |
163 | Загрузить фото | 163 | Загрузить фото |
164 | </span> | 164 | </span> |
165 | </label> | 165 | </label> |
166 | 166 | ||
167 | <div class="cabinet__add-body"> | 167 | <div class="cabinet__add-body"> |
168 | <div class="form-group"> | 168 | <div class="form-group"> |
169 | <label class="form-group__label">Название корабля</label> | 169 | <label class="form-group__label">Название корабля</label> |
170 | <div class="form-group__item"> | 170 | <div class="form-group__item"> |
171 | <input type="text" name="name" id="flot_name" class="input" placeholder="Корабль №000001" required> | 171 | <input type="text" name="name" id="flot_name" class="input" placeholder="Корабль №000001" required> |
172 | @error('name') | 172 | @error('name') |
173 | <span class="text-xs text-red-600"> | 173 | <span class="text-xs text-red-600"> |
174 | {{ $message }} | 174 | {{ $message }} |
175 | </span> | 175 | </span> |
176 | @enderror | 176 | @enderror |
177 | </div> | 177 | </div> |
178 | </div> | 178 | </div> |
179 | <div class="form-group"> | 179 | <div class="form-group"> |
180 | <label class="form-group__label">Описание</label> | 180 | <label class="form-group__label">Описание</label> |
181 | <div class="form-group__item"> | 181 | <div class="form-group__item"> |
182 | <input type="text" name="text" id="flot_text" class="input" placeholder="Это судно находится..." required> | 182 | <input type="text" name="text" id="flot_text" class="input" placeholder="Это судно находится..." required> |
183 | @error('text') | 183 | @error('text') |
184 | <span class="text-xs text-red-600"> | 184 | <span class="text-xs text-red-600"> |
185 | {{ $message }} | 185 | {{ $message }} |
186 | </span> | 186 | </span> |
187 | @enderror | 187 | @enderror |
188 | </div> | 188 | </div> |
189 | </div> | 189 | </div> |
190 | <div class="form-group"> | 190 | <div class="form-group"> |
191 | <label class="form-group__label">Регион</label> | 191 | <label class="form-group__label">Регион</label> |
192 | <div class="form-group__item"> | 192 | <div class="form-group__item"> |
193 | <input type="text" name="region" id="region" class="input" placeholder="Мурманск" required> | 193 | <input type="text" name="region" id="region" class="input" placeholder="Мурманск" required> |
194 | @error('region') | 194 | @error('region') |
195 | <span class="text-xs text-red-600"> | 195 | <span class="text-xs text-red-600"> |
196 | {{ $message }} | 196 | {{ $message }} |
197 | </span> | 197 | </span> |
198 | @enderror | 198 | @enderror |
199 | </div> | 199 | </div> |
200 | </div> | 200 | </div> |
201 | <div class="form-group"> | 201 | <div class="form-group"> |
202 | <label class="form-group__label">Мощность</label> | 202 | <label class="form-group__label">Мощность</label> |
203 | <div class="form-group__item"> | 203 | <div class="form-group__item"> |
204 | <input type="text" name="power" id="flot_power" class="input" placeholder="Dw 40000 9000Kw" required> | 204 | <input type="text" name="power" id="flot_power" class="input" placeholder="Dw 40000 9000Kw" required> |
205 | @error('power') | 205 | @error('power') |
206 | <span class="text-xs text-red-600"> | 206 | <span class="text-xs text-red-600"> |
207 | {{ $message }} | 207 | {{ $message }} |
208 | </span> | 208 | </span> |
209 | @enderror | 209 | @enderror |
210 | </div> | 210 | </div> |
211 | </div> | 211 | </div> |
212 | <button type="submit" class="button" id="ajax_flot" name="ajax_flot">Добавить флот</button> | 212 | <button type="submit" class="button" id="ajax_flot" name="ajax_flot">Добавить флот</button> |
213 | </div> | 213 | </div> |
214 | 214 | ||
215 | </form> | 215 | </form> |
216 | 216 | ||
217 | <div class="cabinet__fleet" id="ajax_flot_div" name="ajax_flot_div"> | 217 | <div class="cabinet__fleet" id="ajax_flot_div" name="ajax_flot_div"> |
218 | @if (isset($Employer[0]->flots)) | 218 | @if (isset($Employer[0]->flots)) |
219 | @if ($Employer[0]->flots->count()) | 219 | @if ($Employer[0]->flots->count()) |
220 | @foreach ($Employer[0]->flots as $it) | 220 | @foreach ($Employer[0]->flots as $it) |
221 | <div class="cabinet__fleet-item main__employer-page-one-item"> | 221 | <div class="cabinet__fleet-item main__employer-page-one-item"> |
222 | <a class="del die_black" href="{{ route('employer.delete_flot', ['Flot' => $it->id]) }}"> | 222 | <a class="del die_black" href="{{ route('employer.delete_flot', ['Flot' => $it->id]) }}"> |
223 | <svg> | 223 | <svg> |
224 | <use xlink:href="{{ asset('images/sprite.svg#del') }}"></use> | 224 | <use xlink:href="{{ asset('images/sprite.svg#del') }}"></use> |
225 | </svg> | 225 | </svg> |
226 | </a> | 226 | </a> |
227 | @if (!empty($it->image)) | 227 | @if (!empty($it->image)) |
228 | <img src="{{ asset(Storage::url($it->image)) }}" alt="{{ $it->name }}"> | 228 | <img src="{{ asset(Storage::url($it->image)) }}" alt="{{ $it->name }}"> |
229 | @else | 229 | @else |
230 | <img src="{{ asset('images/default_ship.jpg') }}" alt="{{ $it->name }}"/> | 230 | <img src="{{ asset('images/default_ship.jpg') }}" alt="{{ $it->name }}"/> |
231 | @endif | 231 | @endif |
232 | <b>{{ $it->name }}</b> | 232 | <b>{{ $it->name }}</b> |
233 | <span>{{ $it->text }}</span> | 233 | <span>{{ $it->text }}</span> |
234 | </div> | 234 | </div> |
235 | @endforeach | 235 | @endforeach |
236 | @endif | 236 | @endif |
237 | @endif | 237 | @endif |
238 | </div> | 238 | </div> |
239 | </div> | 239 | </div> |
240 | </div> | 240 | </div> |
241 | </div> | 241 | </div> |
242 | </div> | 242 | </div> |
243 | </section> | 243 | </section> |
244 | </div> <!-- END TOP WRAPPER --> | 244 | </div> <!-- END TOP WRAPPER --> |
245 | @endsection | 245 | @endsection |
246 | 246 |