Commit 7db5ce20a653825a7fdafe8866cd3aabe0487819
1 parent
70d1f8db75
Exists in
master
fix chat design
Showing 1 changed file with 21 additions and 26 deletions Side-by-side Diff
resources/views/employers/dialog.blade.php
... | ... | @@ -178,39 +178,16 @@ |
178 | 178 | @elseif($companion->id == $superAdmin->id) |
179 | 179 | @include('svg.logo_icon') |
180 | 180 | @else |
181 | - @if ((isset($companion->employers[0]->logo)) && | |
182 | - (!empty($companion->employers[0]->logo))) | |
181 | + @if ((isset($companion->employers[0]->logo)) && (!empty($companion->employers[0]->logo))) | |
183 | 182 | <img src="{{ asset(\Illuminate\Support\Facades\Storage::url($companion->employers[0]->logo)) }}" alt=""> |
184 | 183 | @else |
185 | - <div class="chatbox__item-photo "> | |
186 | - | |
184 | + <div class="chatbox__item-photo"> | |
187 | 185 | <img src="{{ asset('images/default_man.jpg') }}" alt=""> |
188 | 186 | </div> |
189 | - | |
190 | 187 | @endif |
191 | 188 | @endif |
192 | 189 | </div> |
193 | 190 | <div class="chatbox__item-body"> |
194 | - <div class="chatbox__item-text"> | |
195 | - | |
196 | - <button class="button admin-chat-answer" data-fancybox data-src="#answer_to_admin_chat_modal" | |
197 | - data-to-user-id="{{ $it->user_id }}" data-message-id="{{ $it->id }}" | |
198 | - > | |
199 | - Ответить | |
200 | - </button> | |
201 | - | |
202 | - @if(\App\Models\Ad_employer::where('id', $it->ad_employer_id)->exists()) | |
203 | - Отклик на вакансию {{ \App\Models\Ad_employer::find($it->ad_employer_id)->name }} | |
204 | - @if($it->text) | |
205 | - Комментарий: {{ $it->text }} | |
206 | - @endif | |
207 | - @else | |
208 | - @if($it->text) | |
209 | - {{ $it->text }} | |
210 | - @endif | |
211 | - </div> | |
212 | - | |
213 | - @endif | |
214 | 191 | @if ((isset($it->file)) && (!empty($it->file))) |
215 | 192 | <div class="chatbox__item-text chatbox__item-body-file-name-wrap"> |
216 | 193 | <div class=""> |
... | ... | @@ -226,6 +203,24 @@ |
226 | 203 | Скачать |
227 | 204 | </a> |
228 | 205 | </div> |
206 | + @else | |
207 | + <div class="chatbox__item-text"> | |
208 | + <button class="button admin-chat-answer" | |
209 | + data-fancybox data-src="#answer_to_admin_chat_modal" | |
210 | + data-to-user-id="{{ $it->user_id }}" data-message-id="{{ $it->id }}"> | |
211 | + Ответить | |
212 | + </button> | |
213 | + @if(\App\Models\Ad_employer::where('id', $it->ad_employer_id)->exists()) | |
214 | + Отклик на вакансию {{ \App\Models\Ad_employer::find($it->ad_employer_id)->name }} | |
215 | + @if($it->text) | |
216 | + Комментарий: {{ $it->text }} | |
217 | + @endif | |
218 | + @else | |
219 | + @if($it->text) | |
220 | + {{ $it->text }} | |
221 | + @endif | |
222 | + @endif | |
223 | + </div> | |
229 | 224 | @endif |
230 | 225 | </div> |
231 | 226 | <div class="chatbox__item-time">{{ $it->created_at }}</div> |
... | ... | @@ -260,7 +255,7 @@ |
260 | 255 | <div class="chatbox__item-text"> |
261 | 256 | |
262 | 257 | @if(\App\Models\Ad_employer::where('id', $it->ad_employer_id)->exists())) |
263 | - <b>Отклик на вакансию</b> "{{ \App\Models\Ad_employer::find($it->ad_employer_id)->name }}"<br> | |
258 | + <b>Отклик на вакансию</b> "{{ \App\Models\Ad_employer::find($it->ad_employer_id)->name }}"<br> | |
264 | 259 | @if($it->text) |
265 | 260 | <b>Комментарий:</b> {{ $it->text }} |
266 | 261 | @endif |