Commit 185d7799ae1231b5c6077250eee54744e488e606

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

ajax-таблица после обновления в разделе вакансии

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

resources/views/admin/ad_employers/index_ajax.blade.php
... ... @@ -11,7 +11,7 @@
11 11 <th class="px-4 py-3 class5">Избр.</th>
12 12 <th class="px-4 py-3 class6">Сроч.</th>
13 13 <th class="px-4 py-3 class7">Статус</th>
14   - <th class="px-4 py-3 class8">Дата создан/изменен.</th>
  14 + <th class="px-4 py-3 class8">Дата создан/<br>изменен.</th>
15 15 <th class="px-4 py-3 class10">Изменить</th>
16 16 </tr>
17 17 </thead>
... ... @@ -25,7 +25,7 @@
25 25 {{$ad->id}}
26 26 </td>
27 27 <td class="px-4 py-3 class2 text-xs">
28   - <div class="flex items-center text-sm">
  28 + <div class="flex items-center text-sm text-xs">
29 29 <div
30 30 class="relative hidden w-8 h-8 mr-3 rounded-full md:block"
31 31 >
... ... @@ -42,7 +42,7 @@
42 42 aria-hidden="true"
43 43 ></div>
44 44 </div>
45   - <div>
  45 + <div class="text-xs">
46 46 <p class="font-semibold">{{$ad->name}}</p>
47 47 <p class="text-xs text-gray-600 dark:text-gray-400">
48 48 {{$ad->employer->name_company}}
... ... @@ -52,15 +52,15 @@
52 52 </td>
53 53  
54 54 <td class="px-4 py-3 class4 text-xs">
55   - <div class="flex items-center text-xs">
  55 + <div class="flex items-center text-sm text-xs">
56 56 @if ($ad->jobs->count())
57 57 <div>
58 58 <?php $i = 0;?>
59 59 @foreach ($ad->jobs as $title)
60 60 <?php if ($i==0) {?>
61   - <p class="font-semibold">{{$title->name}}</p>
  61 + <p class="font-semibold text-xs">{{ mb_strimwidth($title->name, 0, 35, "...") }}</p>
62 62 <?php } else {?>
63   - <p class="font-semibold">/ {{$title->name}}</p>
  63 + <p class="font-semibold text-xs">/ {{ mb_strimwidth($title->name, 0, 35, "...") }}</p>
64 64 <?php }
65 65 $i++;
66 66 ?>
... ... @@ -74,24 +74,24 @@
74 74 <td class="px-4 py-3 text-sm class5 text-xs">
75 75 @if ($ad->favorite_vacancy==1)
76 76 <span class="px-2 py-1 font-semibold leading-tight text-green-700 bg-green-100 rounded-full dark:bg-green-700 dark:text-green-100">
77   - Да
78   - </span>
  77 + Да
  78 + </span>
79 79 @else
80 80 <span class="px-2 py-1 font-semibold leading-tight text-orange-700 bg-orange-100 rounded-full dark:text-white dark:bg-orange-600">
81   - Нет
82   - </span>
  81 + Нет
  82 + </span>
83 83 @endif
84 84 </td>
85 85  
86 86 <td class="px-4 py-3 text-sm class6 text-xs">
87 87 @if ($ad->sroch_vacancy==1)
88 88 <span class="px-2 py-1 font-semibold leading-tight text-green-700 bg-green-100 rounded-full dark:bg-green-700 dark:text-green-100">
89   - Да
90   - </span>
  89 + Да
  90 + </span>
91 91 @else
92 92 <span class="px-2 py-1 font-semibold leading-tight text-orange-700 bg-orange-100 rounded-full dark:text-white dark:bg-orange-600">
93   - Нет
94   - </span>
  93 + Нет
  94 + </span>
95 95 @endif
96 96 </td>
97 97  
... ... @@ -100,7 +100,7 @@
100 100 </td>
101 101  
102 102 <td class="px-4 py-3 text-sm class8 text-xs">
103   - <div class="flex items-center text-sm">
  103 + <div class="flex items-center text-xs">
104 104 <div>
105 105 <p class="font-semibold">{{ date('d.m.Y', strtotime($ad->created_at)) }}</p>
106 106 <p class="text-xs text-gray-600 dark:text-gray-400">
... ... @@ -108,12 +108,16 @@
108 108 </p>
109 109 </div>
110 110 </div>
  111 +
111 112 </td>
112 113  
113 114 <td class="px-4 py-3 text-sm class10 text-xs">
114   - <a href="{{ route('admin.edit-ad-employers', ['ad_employer' => $ad->id]) }}">
115   - Изменить
116   - </a>
  115 + <form action="{{ route('admin.delete-ad-employer', ['ad_employer' => $ad->id]) }}" method="POST">
  116 + <a class="text-xs" href="{{ route('admin.edit-ad-employers', ['ad_employer' => $ad->id]) }}">Изменить</a> |
  117 + @csrf
  118 + @method('DELETE')
  119 + <input class="btn btn-danger text-xs" type="submit" value="Удалить"/>
  120 + </form>
117 121 </td>
118 122 </tr>
119 123 @endforeach