Blame view
resources/views/employers/dialog.blade.php
15.1 KB
e3c7b0ffb Коммит на понедел... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
@extends('layout.frontend', ['title' => 'Диалог-переписка - РекаМоре']) @section('scripts') <script> console.log('Test system'); $(document).on('change', '#send_btn', function() { var this_ = $(this); var val_ = this_.val(); console.log('sort items '+val_); $.ajax({ type: "GET", url: "{{ route('shipping_companies') }}", data: "sort="+val_+"&block=1", success: function (data) { console.log('Выбор сортировки'); console.log(data); $('#block_1').html(data); }, headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, error: function (data) { data = JSON.stringify(data); console.log('Error: ' + data); } }); $.ajax({ type: "GET", url: "{{ route('shipping_companies') }}", data: "sort="+val_+"&block=2", success: function (data) { console.log('Выбор сортировки2'); console.log(data); history.pushState({}, '', "{{ route('shipping_companies') }}?sort="+val_+"@if (isset($_GET['page']))&page={{ $_GET['page'] }}@endif"); $('#block_2').html(data); }, headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, error: function (data) { data = JSON.stringify(data); console.log('Error: ' + data); } }); }); </script> @endsection @section('content') <section class="cabinet"> <div class="container"> <ul class="breadcrumbs cabinet__breadcrumbs"> <li><a href="{{ route('index') }}">Главная</a></li> <li><b>Личный кабинет</b></li> </ul> <div class="cabinet__wrapper"> <div class="cabinet__side"> |
6e2255214 Работа над сообще... |
60 |
<div class="cabinet__side-toper"> |
e3c7b0ffb Коммит на понедел... |
61 |
@include('employers.emblema') |
6e2255214 Работа над сообще... |
62 |
</div> |
e3c7b0ffb Коммит на понедел... |
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
@include('employers.menu', ['item' => 5]) </div> <div class="cabinet__body"> <div class="cabinet__body-item"> <h2 class="title cabinet__title">Сообщения</h2> </div> <div class="cabinet__body-item"> <a href="{{ route('employer.messages', ['type_message' => 'input']) }}" class="back"> <svg> <use xlink:href="{{ asset('images/sprite.svg#back') }}"></use> </svg> <span> К списку чатов </span> </a> <div class="chatbox"> <div class="chatbox__toper"> @if ($companion->is_worker) <div class="chatbox__toper-info messages__item-info"> <div class="messages__item-photo"> <svg> <use xlink:href="{{ asset('images/sprite.svg#pic') }}"></use> </svg> |
7f2872aa3 Коммит Работа-среда |
86 87 88 89 90 91 |
@if ((isset($companion->workers[0]->photo)) && (!empty($companion->workers[0]->photo))) <img src="{{ asset(\Illuminate\Support\Facades\Storage::url($companion->workers[0]->photo)) }}" alt=""> @else <img src="{{ asset('images/default_man.jpg') }}" alt=""> @endif |
e3c7b0ffb Коммит на понедел... |
92 93 94 |
</div> <div class="messages__item-text"> <div>{{ $companion->surname." ".$companion->name_man." ".$companion->surname2." (".$companion->id.")" }} </div> |
6e2255214 Работа над сообще... |
95 96 97 98 99 100 101 102 103 |
<div><span>Вакансия:</span> @if ($ad_employer == 0) @if (isset($_GET['ad_name'])){{ $_GET['ad_name'] }}@else Не указано @endif @else <a href="{{ route('vacancie', ['vacancy' => $ad_employer]) }}"> @if (isset($_GET['ad_name'])){{ $_GET['ad_name'] }} ({{ $ad_employer }}) @else Не указано @endif </a> @endif </div> |
e3c7b0ffb Коммит на понедел... |
104 105 |
</div> </div> |
e4a225e47 Коммит по ссылке ... |
106 107 |
@if (isset($companion->workers[0]->id)) <a href="{{ route('resume_profile', ['worker' => $companion->workers[0]->id]) }}" class="button chatbox__toper-button"> |
e3c7b0ffb Коммит на понедел... |
108 109 110 111 112 113 114 115 116 117 118 119 |
<svg> <use xlink:href="{{ asset('images/sprite.svg#cabinet-1') }}"></use> </svg> Перейти в резюме </a> @endif @else <div class="chatbox__toper-info messages__item-info"> <div class="messages__item-photo"> <svg> <use xlink:href="{{ asset('images/sprite.svg#pic') }}"></use> </svg> |
7f2872aa3 Коммит Работа-среда |
120 121 122 123 124 125 |
@if ((isset($companion->employers[0]->logo)) && (!empty($companion->employers[0]->logo))) <img src="{{ asset(\Illuminate\Support\Facades\Storage::url($companion->employers[0]->logo)) }}" alt=""> @else <img src="{{ asset('images/default_man.jpg') }}" alt=""> @endif |
e3c7b0ffb Коммит на понедел... |
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 |
</div> <div class="messages__item-text"> <div>{{ $companion->surname." ".$companion->name_man." ".$companion->surname2." (".$companion->id.")" }} </div> <div><span>Статус:</span> Работодатель или Администратор</div> </div> </div> @if (isset($companion->employer->id)) <a href="" class="button chatbox__toper-button"> <svg> <use xlink:href="{{ asset('images/sprite.svg#cabinet-1') }}"></use> </svg> Перейти в резюме </a> @endif @endif </div> <div class="chatbox__list" id="dialogs" name="dialogs"> @if ($Messages->count()) @foreach ($Messages as $it) @if ($it->user_id == $companion->id) <div class="chatbox__item"> <div class="chatbox__item-photo"> <svg> <use xlink:href="{{ asset('images/sprite.svg#pic') }}"></use> </svg> |
7f2872aa3 Коммит Работа-среда |
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
@if ($companion->is_worker) @if ((isset($companion->workers[0]->photo)) && (!empty($companion->workers[0]->photo))) <img src="{{ asset(\Illuminate\Support\Facades\Storage::url($companion->workers[0]->photo)) }}" alt=""> @else <img src="{{ asset('images/default_man.jpg') }}" alt=""> @endif @else @if ((isset($companion->employers[0]->logo)) && (!empty($companion->employers[0]->logo))) <img src="{{ asset(\Illuminate\Support\Facades\Storage::url($companion->employers[0]->logo)) }}" alt=""> @else <img src="{{ asset('images/default_man.jpg') }}" alt=""> @endif @endif |
e3c7b0ffb Коммит на понедел... |
168 169 170 171 172 173 174 175 176 177 178 179 |
</div> <div class="chatbox__item-body"> <div class="chatbox__item-text">{{ $it->text }}</div> </div> <div class="chatbox__item-time">{{ $it->created_at }}</div> </div> @else <div class="chatbox__item chatbox__item_reverse"> <div class="chatbox__item-photo"> <svg> <use xlink:href="{{ asset('images/sprite.svg#pic') }}"></use> </svg> |
7f2872aa3 Коммит Работа-среда |
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 |
@if ($sender->is_worker) @if ((isset($sender->workers[0]->photo)) && (!empty($sender->workers[0]->photo))) <img src="{{ asset(\Illuminate\Support\Facades\Storage::url($sender->workers[0]->photo)) }}" alt=""> @else <img src="{{ asset('images/default_man.jpg') }}" alt=""> @endif @else @if ((isset($sender->employers[0]->logo)) && (!empty($sender->employers[0]->logo))) <img src="{{ asset(\Illuminate\Support\Facades\Storage::url($sender->employers[0]->logo)) }}" alt=""> @else <img src="{{ asset('images/default_man.jpg') }}" alt=""> @endif @endif |
e3c7b0ffb Коммит на понедел... |
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 |
</div> <div class="chatbox__item-body"> <div class="chatbox__item-text">{{ $it->text }}</div> @if ((isset($it->file)) && (!empty($it->file))) <a href="{{ asset(Storage::url($it->file)) }}" class="chatbox__item-text"> <svg> <use xlink:href="{{ asset('images/sprite.svg#clip') }}"></use> </svg> </a> @endif </div> <div class="chatbox__item-time">{{ $it->created_at }}</div> </div> @endif @endforeach @endif </div> <form action="{{ route('employer.test123') }}" class="chatbox__bottom" enctype="multipart/form-data" method="POST" > @csrf <label class="chatbox__bottom-file"> <input id="file" name="file" type="file"> <svg> <use xlink:href="{{ asset('images/sprite.svg#clip') }}"></use> </svg> </label> <input type="hidden" name="_token" value="{{ csrf_token() }}"/> <input type="hidden" id="user_id" name="user_id" value="{{ $sender->id }}"/> <input type="hidden" id="to_user_id" name="to_user_id" value="{{ $companion->id }}"/> |
0ea985223 Коммит по диалога... |
225 226 |
<input type="hidden" id="ad_employer_id" name="ad_employer_id" value="{{ $ad_employer }}"/> <input type="hidden" id="ad_name" name="ad_name" value="@if (isset($_GET['ad_name'])){{ $_GET['ad_name'] }} @endif"/> |
e3c7b0ffb Коммит на понедел... |
227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 |
<input id="text" name="text" type="text" class="input chatbox__bottom-text" placeholder="Ответить"> <button type="submit" id="send_btn" name="send_btn" class="chatbox__bottom-send"> <svg> <use xlink:href="{{ asset('images/sprite.svg#arrow') }}"></use> </svg> </button> </form> </div> </div> </div> </div> </div> </section> </div> @endsection |