Blame view

resources/views/employers/ajax/list_vacancy.blade.php 4.56 KB
365e6ad01   Андрей Ларионов   Реализация проекта
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
  @if ($vacancy_list->count())
      <!--<button type="button" class="table__button js-toggle js-parent-toggle button button_light button_more">
                                      <span>Показать ещё</span>
                                      <span>Свернуть</span>
                                  </button>-->
      <div class="table__scroll">
          <div class="table__body table__body_min-width">
              <table>
                  <thead>
                  <tr>
                      <th>Название</th>
                      <th>Дата добавления<br>/&nbsp;обновления</th>
                      <th>Статус</th>
                      <th>Действия</th>
                  </tr>
                  </thead>
                  <tbody>
                  @foreach($vacancy_list as $it)
                      <tr>
                          <td>{{ $it->name }}</td>
                          <td>{{ date('d.m.Y H:i:s', strtotime($it->created_at)) }} / {{ date('d.m.Y H:i:s', strtotime($it->updated_at)) }}</td>
                          <td>
                              @if ($it->active_is)
                                  <span class="table__status green"><i></i>Опубликовано</span>
                              @else
                                  <span class="table__status"><i></i>Не опубликовано</span>
                              @endif
                          </td>
                          <td>
                                                      <span class="table__controls">
                                                          <a class="table__controls-item up-it" href="{{ route('employer.vacancy_up', ['ad_employer' => $it->id]) }}">
                                                              <svg>
                                                                  <use xlink:href="{{ asset('images/sprite.svg#arrow-radius') }}"></use>
                                                              </svg>
                                                          </a>
                                                          <a href="{{ route('employer.vacancy_edit', ['ad_employer' => $it->id]) }}" class="table__controls-item">
                                                              <svg>
                                                                  <use xlink:href="{{ asset('images/sprite.svg#pencil') }}"></use>
                                                              </svg>
                                                          </a>
                                                          <a class="table__controls-item" href="{{ route('employer.vacancy_delete', ['ad_employer' => $it->id]) }}">
                                                              <svg>
                                                                  <use xlink:href="{{ asset('images/sprite.svg#cross') }}"></use>
                                                              </svg>
                                                          </a>
                                                          @if ($it->active_is)
                                                              <a href="{{ route('employer.vacancy_eye', ['ad_employer' => $it->id, 'status' => 0]) }}" class="table__controls-item">
                                                                  <svg>
                                                                      <use xlink:href="{{ asset('images/sprite.svg#eye') }}"></use>
                                                                  </svg>
                                                              </a>
                                                          @else
                                                              <a href="{{ route('employer.vacancy_eye', ['ad_employer' => $it->id, 'status' => 1]) }}" class="table__controls-item">
                                                                  <svg>
                                                                      <use xlink:href="{{ asset('images/sprite.svg#eye-3') }}"></use>
                                                                  </svg>
                                                              </a>
                                                      @endif
  
                               </span>
                          </td>
                      </tr>
                  @endforeach
                  </tbody>
              </table>
          </div>
      </div>
  @else
  
      <div class="notify">
          <svg>
              <use xlink:href="{{ asset('images/sprite.svg#i') }}"></use>
          </svg>
          <span>Вы ещё не разместили ни одной вакансии</span>
      </div>
  @endif