Commit 39f6b321c6cb69374d144545657d8dd989cc7ac2

Authored by Андрей Ларионов
1 parent f54a583e78

Коммит по попке и блокировке сообщений

Showing 1 changed file with 5 additions and 1 deletions Side-by-side Diff

resources/views/worker.blade.php
... ... @@ -246,7 +246,11 @@
246 246 <div class="main__resume-profile-about">
247 247 <h2 class="main__resume-profile-about-title">О себе</h2>
248 248 <p class="main__resume-profile-about-text">{{ $Query[0]->text }}</p>
249   - <div class="button main__resume-profile-about-button js_it_button" data-fancybox data-src="#send2" data-vacancy="0" data-uid="{{ $idiot }}" data-tuid="{{ $Query[0]->users->id }}" data-options='{"touch":false,"autoFocus":false}'>Написать сообщение</div>
  249 + @if (App\Classes\StatusUser::Status()==0)
  250 + @if ((!Auth()->user()->is_worker) && (Auth()->user()->is_message))
  251 + <div class="button main__resume-profile-about-button js_it_button" data-fancybox data-src="#send2" data-vacancy="0" data-uid="{{ $idiot }}" data-tuid="{{ $Query[0]->users->id }}" data-options='{"touch":false,"autoFocus":false}'>Написать сообщение</div>
  252 + @endif
  253 + @endif
250 254 </div>
251 255 <div class="main__resume-profile-info">
252 256 <h2 class="main__resume-profile-info-title">Данные о прошлых компаниях</h2>