Commit aa824458b7dbb2f2101b3bbadbfe9fd2e419354d

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

Сетевые пути для удаления записей

Showing 5 changed files with 3 additions and 4 deletions Inline Diff

No preview for this file type
resources/views/admin/ad_employers/index_ajax.blade.php
1 <div class="w-full overflow-x-auto"> 1 <div class="w-full overflow-x-auto">
2 <table class="w-full whitespace-no-wrap"> 2 <table class="w-full whitespace-no-wrap">
3 <thead> 3 <thead>
4 <tr 4 <tr
5 class="text-xs font-semibold tracking-wide text-left text-gray-500 uppercase border-b dark:border-gray-700 bg-gray-50 dark:text-gray-400 dark:bg-gray-800" 5 class="text-xs font-semibold tracking-wide text-left text-gray-500 uppercase border-b dark:border-gray-700 bg-gray-50 dark:text-gray-400 dark:bg-gray-800"
6 > 6 >
7 <th class="px-4 py-3"></th> 7 <th class="px-4 py-3"></th>
8 <th class="px-4 py-3 class1">№</th> 8 <th class="px-4 py-3 class1">№</th>
9 <th class="px-4 py-3 class2">Лого/Заголовок/Компания</th> 9 <th class="px-4 py-3 class2">Лого/Заголовок/Компания</th>
10 <th class="px-4 py-3 class4">Должности</th> 10 <th class="px-4 py-3 class4">Должности</th>
11 <th class="px-4 py-3 class5">Избр.</th> 11 <th class="px-4 py-3 class5">Избр.</th>
12 <th class="px-4 py-3 class6">Сроч.</th> 12 <th class="px-4 py-3 class6">Сроч.</th>
13 <th class="px-4 py-3 class7">Статус</th> 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">Дата создан/изменен.</th>
15 <th class="px-4 py-3 class10">Изменить</th> 15 <th class="px-4 py-3 class10">Изменить</th>
16 </tr> 16 </tr>
17 </thead> 17 </thead>
18 <tbody class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800"> 18 <tbody class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800">
19 @foreach($ad_employers as $ad) 19 @foreach($ad_employers as $ad)
20 <tr class="text-gray-700 dark:text-gray-400"> 20 <tr class="text-gray-700 dark:text-gray-400">
21 <td class="px-4 py-3 class1 text-xs"> 21 <td class="px-4 py-3 class1 text-xs">
22 <input type="checkbox" class="box" name="vacan_{{$ad->id}}" id="vacan_{{$ad->id}}" value="{{$ad->id}}"/> 22 <input type="checkbox" class="box" name="vacan_{{$ad->id}}" id="vacan_{{$ad->id}}" value="{{$ad->id}}"/>
23 </td> 23 </td>
24 <td class="px-4 py-3 class1 text-xs"> 24 <td class="px-4 py-3 class1 text-xs">
25 {{$ad->id}} 25 {{$ad->id}}
26 </td> 26 </td>
27 <td class="px-4 py-3 class2 text-xs"> 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">
29 <div 29 <div
30 class="relative hidden w-8 h-8 mr-3 rounded-full md:block" 30 class="relative hidden w-8 h-8 mr-3 rounded-full md:block"
31 > 31 >
32 @if (isset($ad->employer->logo)) 32 @if (isset($ad->employer->logo))
33 <img 33 <img
34 class="object-cover w-full h-full rounded-full" 34 class="object-cover w-full h-full rounded-full"
35 src="{{ asset(Storage::url($ad->employer->logo)) }}" 35 src="{{ asset(Storage::url($ad->employer->logo)) }}"
36 alt="" 36 alt=""
37 loading="lazy" 37 loading="lazy"
38 /> 38 />
39 @endif 39 @endif
40 <div 40 <div
41 class="absolute inset-0 rounded-full shadow-inner" 41 class="absolute inset-0 rounded-full shadow-inner"
42 aria-hidden="true" 42 aria-hidden="true"
43 ></div> 43 ></div>
44 </div> 44 </div>
45 <div> 45 <div>
46 <p class="font-semibold">{{$ad->name}}</p> 46 <p class="font-semibold">{{$ad->name}}</p>
47 <p class="text-xs text-gray-600 dark:text-gray-400"> 47 <p class="text-xs text-gray-600 dark:text-gray-400">
48 {{$ad->employer->name_company}} 48 {{$ad->employer->name_company}}
49 </p> 49 </p>
50 </div> 50 </div>
51 </div> 51 </div>
52 </td> 52 </td>
53 53
54 <td class="px-4 py-3 class4 text-xs"> 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-xs">
56 @if ($ad->jobs->count()) 56 @if ($ad->jobs->count())
57 <div> 57 <div>
58 <?php $i = 0;?> 58 <?php $i = 0;?>
59 @foreach ($ad->jobs as $title) 59 @foreach ($ad->jobs as $title)
60 <?php if ($i==0) {?> 60 <?php if ($i==0) {?>
61 <p class="font-semibold">{{$title->name}}</p> 61 <p class="font-semibold">{{$title->name}}</p>
62 <?php } else {?> 62 <?php } else {?>
63 <p class="font-semibold">/ {{$title->name}}</p> 63 <p class="font-semibold">/ {{$title->name}}</p>
64 <?php } 64 <?php }
65 $i++; 65 $i++;
66 ?> 66 ?>
67 @endforeach 67 @endforeach
68 </div> 68 </div>
69 @endif 69 @endif
70 </div> 70 </div>
71 71
72 </td> 72 </td>
73 73
74 <td class="px-4 py-3 text-sm class5 text-xs"> 74 <td class="px-4 py-3 text-sm class5 text-xs">
75 @if ($ad->favorite_vacancy==1) 75 @if ($ad->favorite_vacancy==1)
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"> 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 Да 77 Да
78 </span> 78 </span>
79 @else 79 @else
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"> 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 Нет 81 Нет
82 </span> 82 </span>
83 @endif 83 @endif
84 </td> 84 </td>
85 85
86 <td class="px-4 py-3 text-sm class6 text-xs"> 86 <td class="px-4 py-3 text-sm class6 text-xs">
87 @if ($ad->sroch_vacancy==1) 87 @if ($ad->sroch_vacancy==1)
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"> 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 Да 89 Да
90 </span> 90 </span>
91 @else 91 @else
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"> 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 Нет 93 Нет
94 </span> 94 </span>
95 @endif 95 @endif
96 </td> 96 </td>
97 97
98 <td class="px-4 py-3 text-sm class7 text-xs"> 98 <td class="px-4 py-3 text-sm class7 text-xs">
99 {{ $ad->status }} 99 {{ $ad->status }}
100 </td> 100 </td>
101 101
102 <td class="px-4 py-3 text-sm class8 text-xs"> 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-sm">
104 <div> 104 <div>
105 <p class="font-semibold">{{ date('d.m.Y', strtotime($ad->created_at)) }}</p> 105 <p class="font-semibold">{{ date('d.m.Y', strtotime($ad->created_at)) }}</p>
106 <p class="text-xs text-gray-600 dark:text-gray-400"> 106 <p class="text-xs text-gray-600 dark:text-gray-400">
107 {{ date('d.m.Y', strtotime($ad->updated_at)) }} 107 {{ date('d.m.Y', strtotime($ad->updated_at)) }}
108 </p> 108 </p>
109 </div> 109 </div>
110 </div> 110 </div>
111
112 </td> 111 </td>
113 112
114 <td class="px-4 py-3 text-sm class10 text-xs"> 113 <td class="px-4 py-3 text-sm class10 text-xs">
115 <a href="{{ route('admin.edit-ad-employers', ['ad_employer' => $ad->id]) }}"> 114 <a href="{{ route('admin.edit-ad-employers', ['ad_employer' => $ad->id]) }}">
116 Изменить 115 Изменить
117 </a> 116 </a>
118 </td> 117 </td>
119 </tr> 118 </tr>
120 @endforeach 119 @endforeach
121 </tbody> 120 </tbody>
122 </table> 121 </table>
123 </div> 122 </div>
124 123
125 <div class="grid px-4 py-3 text-xs font-semibold tracking-wide text-gray-500 uppercase border-t dark:border-gray-700 bg-gray-50 sm:grid-cols-9 dark:text-gray-400 dark:bg-gray-800"> 124 <div class="grid px-4 py-3 text-xs font-semibold tracking-wide text-gray-500 uppercase border-t dark:border-gray-700 bg-gray-50 sm:grid-cols-9 dark:text-gray-400 dark:bg-gray-800">
126 <?=$ad_employers->appends($_GET)->links('admin.pagginate'); ?> 125 <?=$ad_employers->appends($_GET)->links('admin.pagginate'); ?>
127 </div> 126 </div>
128 127
129 128
resources/views/admin/education/index.blade.php
1 @extends('layout.admin', ['title' => 'Админка - Справочник образование']) 1 @extends('layout.admin', ['title' => 'Админка - Справочник образование'])
2 2
3 @section('script') 3 @section('script')
4 <script> 4 <script>
5 const btns = document.querySelectorAll('.btn_del'); 5 const btns = document.querySelectorAll('.btn_del');
6 btns.forEach(btn => { 6 btns.forEach(btn => {
7 btn.addEventListener('click', (e) => { 7 btn.addEventListener('click', (e) => {
8 console.log('click button'); 8 console.log('click button');
9 let id = e.target.id; 9 let id = e.target.id;
10 let form = document.getElementById("form_modal_del"); 10 let form = document.getElementById("form_modal_del");
11 form.action = "<?=$_SERVER['APP_URL']?>public/admin/education/"+e.target.getAttribute('data-education'); 11 form.action = "<?=$_SERVER['APP_URL']?>admin/education/"+e.target.getAttribute('data-education');
12 //document.getElementById("title_modal").innerHTML = id; 12 //document.getElementById("title_modal").innerHTML = id;
13 console.log(e.target.getAttribute('data-education')); 13 console.log(e.target.getAttribute('data-education'));
14 }); 14 });
15 }); 15 });
16 </script> 16 </script>
17 @endsection 17 @endsection
18 18
19 @section('modal') 19 @section('modal')
20 @include('admin.education.modal') 20 @include('admin.education.modal')
21 @endsection 21 @endsection
22 22
23 @section('search') 23 @section('search')
24 24
25 @endsection 25 @endsection
26 26
27 @section('content') 27 @section('content')
28 28
29 <a href="{{ route('admin.education.create') }}" style="width: 195px" class="px-3 py-1 text-sm font-medium leading-5 text-white transition-colors duration-150 bg-purple-600 border border-transparent rounded-md active:bg-purple-600 hover:bg-purple-700 focus:outline-none focus:shadow-outline-purple"> 29 <a href="{{ route('admin.education.create') }}" style="width: 195px" class="px-3 py-1 text-sm font-medium leading-5 text-white transition-colors duration-150 bg-purple-600 border border-transparent rounded-md active:bg-purple-600 hover:bg-purple-700 focus:outline-none focus:shadow-outline-purple">
30 Добавить образование 30 Добавить образование
31 </a> 31 </a>
32 <br> 32 <br>
33 <div class="w-full overflow-hidden rounded-lg shadow-xs" id="ajax_block"> 33 <div class="w-full overflow-hidden rounded-lg shadow-xs" id="ajax_block">
34 34
35 <div class="w-full overflow-x-auto"> 35 <div class="w-full overflow-x-auto">
36 <table class="w-full whitespace-no-wrap"> 36 <table class="w-full whitespace-no-wrap">
37 <thead> 37 <thead>
38 <tr 38 <tr
39 class="text-xs font-semibold tracking-wide text-left text-gray-500 uppercase border-b dark:border-gray-700 bg-gray-50 dark:text-gray-400 dark:bg-gray-800" 39 class="text-xs font-semibold tracking-wide text-left text-gray-500 uppercase border-b dark:border-gray-700 bg-gray-50 dark:text-gray-400 dark:bg-gray-800"
40 > 40 >
41 <th class="px-4 py-3">№</th> 41 <th class="px-4 py-3">№</th>
42 <th class="px-4 py-3">Название образования</th> 42 <th class="px-4 py-3">Название образования</th>
43 <th class="px-4 py-3">Редактировать</th> 43 <th class="px-4 py-3">Редактировать</th>
44 <th class="px-4 py-3">Дата создан/изменен</th> 44 <th class="px-4 py-3">Дата создан/изменен</th>
45 </tr> 45 </tr>
46 </thead> 46 </thead>
47 <tbody class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800"> 47 <tbody class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800">
48 @foreach($education as $cat) 48 @foreach($education as $cat)
49 <tr class="text-gray-700 dark:text-gray-400"> 49 <tr class="text-gray-700 dark:text-gray-400">
50 <td class="px-4 py-3"> 50 <td class="px-4 py-3">
51 {{$cat->id}} 51 {{$cat->id}}
52 </td> 52 </td>
53 <td class="px-4 py-3"> 53 <td class="px-4 py-3">
54 {{ mb_strimwidth($cat->name, 0, 50, "...") }} 54 {{ mb_strimwidth($cat->name, 0, 50, "...") }}
55 </td> 55 </td>
56 56
57 <td class="px-4 py-3 text-sm_"> 57 <td class="px-4 py-3 text-sm_">
58 @if ($cat->id) 58 @if ($cat->id)
59 <a href="{{ route('admin.education.edit', ['education' => $cat->id]) }}">Изменить</a> 59 <a href="{{ route('admin.education.edit', ['education' => $cat->id]) }}">Изменить</a>
60 | <a @click="openModal" style="cursor: pointer;" data-education="{{$cat->id}}" class="btn_del btn btn-danger">Удалить</a> 60 | <a @click="openModal" style="cursor: pointer;" data-education="{{$cat->id}}" class="btn_del btn btn-danger">Удалить</a>
61 @endif 61 @endif
62 </td> 62 </td>
63 <td class="px-4 py-3"> 63 <td class="px-4 py-3">
64 <div class="flex items-center text-sm"> 64 <div class="flex items-center text-sm">
65 <div> 65 <div>
66 <p class="font-semibold">{{ date('d.m.Y', strtotime($cat->created_at)) }}</p> 66 <p class="font-semibold">{{ date('d.m.Y', strtotime($cat->created_at)) }}</p>
67 <p class="text-xs text-gray-600 dark:text-gray-400"> 67 <p class="text-xs text-gray-600 dark:text-gray-400">
68 {{ date('d.m.Y', strtotime($cat->updated_at)) }} 68 {{ date('d.m.Y', strtotime($cat->updated_at)) }}
69 </p> 69 </p>
70 </div> 70 </div>
71 </div> 71 </div>
72 </td> 72 </td>
73 </tr> 73 </tr>
74 @endforeach 74 @endforeach
75 </tbody> 75 </tbody>
76 </table> 76 </table>
77 </div> 77 </div>
78 78
79 <div class="grid px-4 py-3 text-xs font-semibold tracking-wide text-gray-500 uppercase border-t dark:border-gray-700 bg-gray-50 sm:grid-cols-9 dark:text-gray-400 dark:bg-gray-800"> 79 <div class="grid px-4 py-3 text-xs font-semibold tracking-wide text-gray-500 uppercase border-t dark:border-gray-700 bg-gray-50 sm:grid-cols-9 dark:text-gray-400 dark:bg-gray-800">
80 <?=$education->appends($_GET)->links('admin.pagginate'); ?> 80 <?=$education->appends($_GET)->links('admin.pagginate'); ?>
81 </div> 81 </div>
82 </div> 82 </div>
83 @endsection 83 @endsection
84 84
resources/views/admin/employer/index.blade.php
1 @extends('layout.admin', ['title' => 'Админка - Работодатели']) 1 @extends('layout.admin', ['title' => 'Админка - Работодатели'])
2 2
3 @section('script') 3 @section('script')
4 <script> 4 <script>
5 $(document).ready(function() { 5 $(document).ready(function() {
6 $(document).on('click', '.checkban', function () { 6 $(document).on('click', '.checkban', function () {
7 var this_ = $(this); 7 var this_ = $(this);
8 var value = this_.val(); 8 var value = this_.val();
9 var ajax_block = $('#ajax_block'); 9 var ajax_block = $('#ajax_block');
10 var bool = 0; 10 var bool = 0;
11 11
12 if(this.checked){ 12 if(this.checked){
13 bool = 1; 13 bool = 1;
14 } else { 14 } else {
15 bool = 0; 15 bool = 0;
16 } 16 }
17 17
18 $.ajax({ 18 $.ajax({
19 type: "GET", 19 type: "GET",
20 url: "{{ url()->full()}}", 20 url: "{{ url()->full()}}",
21 data: "id=" + value + "&is_ban=" + bool, 21 data: "id=" + value + "&is_ban=" + bool,
22 success: function (data) { 22 success: function (data) {
23 console.log('Обновление таблицы пользователей '); 23 console.log('Обновление таблицы пользователей ');
24 //data = JSON.parse(data); 24 //data = JSON.parse(data);
25 //console.log(data); 25 //console.log(data);
26 ajax_block.html(data); 26 ajax_block.html(data);
27 }, 27 },
28 headers: { 28 headers: {
29 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') 29 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
30 }, 30 },
31 error: function (data) { 31 error: function (data) {
32 console.log('Error: ' + data); 32 console.log('Error: ' + data);
33 } 33 }
34 }); 34 });
35 }); 35 });
36 36
37 }); 37 });
38 </script> 38 </script>
39 <script> 39 <script>
40 const btns = document.querySelectorAll('.btn_del'); 40 const btns = document.querySelectorAll('.btn_del');
41 btns.forEach(btn => { 41 btns.forEach(btn => {
42 btn.addEventListener('click', (e) => { 42 btn.addEventListener('click', (e) => {
43 console.log('click button'); 43 console.log('click button');
44 let id = e.target.id; 44 let id = e.target.id;
45 let form = document.getElementById("form_modal_del"); 45 let form = document.getElementById("form_modal_del");
46 form.action = "<?=$_SERVER['APP_URL']?>public/admin/employers/delete/"+e.target.getAttribute('data-employer')+'/'+e.target.getAttribute('data-user'); 46 form.action = "<?=$_SERVER['APP_URL']?>admin/employers/delete/"+e.target.getAttribute('data-employer')+'/'+e.target.getAttribute('data-user');
47 //document.getElementById("title_modal").innerHTML = id; 47 //document.getElementById("title_modal").innerHTML = id;
48 console.log(e.target.getAttribute('data-employer')); 48 console.log(e.target.getAttribute('data-employer'));
49 console.log(e.target.getAttribute('data-user')); 49 console.log(e.target.getAttribute('data-user'));
50 50
51 }); 51 });
52 }); 52 });
53 </script> 53 </script>
54 @endsection 54 @endsection
55 55
56 @section('search') 56 @section('search')
57 @include('admin.find_employer', ['select_category' => $select_category]) 57 @include('admin.find_employer', ['select_category' => $select_category])
58 @endsection 58 @endsection
59 59
60 @section('modal') 60 @section('modal')
61 @include('admin.employer.modal') 61 @include('admin.employer.modal')
62 @endsection 62 @endsection
63 63
64 @section('content') 64 @section('content')
65 <div class="grid gap-6 mb-8 md:grid-cols-2 xl:grid-cols-4"> 65 <div class="grid gap-6 mb-8 md:grid-cols-2 xl:grid-cols-4">
66 66
67 <div class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800"> 67 <div class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800">
68 <div class="p-3 mr-4 text-orange-500 bg-orange-100 rounded-full dark:text-orange-100 dark:bg-orange-500"> 68 <div class="p-3 mr-4 text-orange-500 bg-orange-100 rounded-full dark:text-orange-100 dark:bg-orange-500">
69 <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> 69 <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
70 <path 70 <path
71 d="M13 6a3 3 0 11-6 0 3 3 0 016 0zM18 8a2 2 0 11-4 0 2 2 0 014 0zM14 15a4 4 0 00-8 0v3h8v-3zM6 8a2 2 0 11-4 0 2 2 0 014 0zM16 18v-3a5.972 5.972 0 00-.75-2.906A3.005 3.005 0 0119 15v3h-3zM4.75 12.094A5.973 5.973 0 004 15v3H1v-3a3 3 0 013.75-2.906z"></path> 71 d="M13 6a3 3 0 11-6 0 3 3 0 016 0zM18 8a2 2 0 11-4 0 2 2 0 014 0zM14 15a4 4 0 00-8 0v3h8v-3zM6 8a2 2 0 11-4 0 2 2 0 014 0zM16 18v-3a5.972 5.972 0 00-.75-2.906A3.005 3.005 0 0119 15v3h-3zM4.75 12.094A5.973 5.973 0 004 15v3H1v-3a3 3 0 013.75-2.906z"></path>
72 </svg> 72 </svg>
73 </div> 73 </div>
74 <div> 74 <div>
75 <p class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400"> 75 <p class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400">
76 Всего работодателей 76 Всего работодателей
77 </p> 77 </p>
78 <p class="text-lg font-semibold text-gray-700 dark:text-gray-200"> 78 <p class="text-lg font-semibold text-gray-700 dark:text-gray-200">
79 {{ $all_employer }} 79 {{ $all_employer }}
80 </p> 80 </p>
81 </div> 81 </div>
82 </div> 82 </div>
83 83
84 <div class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800"> 84 <div class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800">
85 <div class="p-3 mr-4 text-orange-500 bg-orange-100 rounded-full dark:text-orange-100 dark:bg-orange-500"> 85 <div class="p-3 mr-4 text-orange-500 bg-orange-100 rounded-full dark:text-orange-100 dark:bg-orange-500">
86 <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> 86 <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
87 <path 87 <path
88 d="M13 6a3 3 0 11-6 0 3 3 0 016 0zM18 8a2 2 0 11-4 0 2 2 0 014 0zM14 15a4 4 0 00-8 0v3h8v-3zM6 8a2 2 0 11-4 0 2 2 0 014 0zM16 18v-3a5.972 5.972 0 00-.75-2.906A3.005 3.005 0 0119 15v3h-3zM4.75 12.094A5.973 5.973 0 004 15v3H1v-3a3 3 0 013.75-2.906z"></path> 88 d="M13 6a3 3 0 11-6 0 3 3 0 016 0zM18 8a2 2 0 11-4 0 2 2 0 014 0zM14 15a4 4 0 00-8 0v3h8v-3zM6 8a2 2 0 11-4 0 2 2 0 014 0zM16 18v-3a5.972 5.972 0 00-.75-2.906A3.005 3.005 0 0119 15v3h-3zM4.75 12.094A5.973 5.973 0 004 15v3H1v-3a3 3 0 013.75-2.906z"></path>
89 </svg> 89 </svg>
90 </div> 90 </div>
91 <div> 91 <div>
92 <p class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400"> 92 <p class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400">
93 Опубликованых 93 Опубликованых
94 </p> 94 </p>
95 <p class="text-lg font-semibold text-gray-700 dark:text-gray-200"> 95 <p class="text-lg font-semibold text-gray-700 dark:text-gray-200">
96 {{ $all_public }} 96 {{ $all_public }}
97 </p> 97 </p>
98 </div> 98 </div>
99 </div> 99 </div>
100 100
101 <div class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800"> 101 <div class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800">
102 <div class="p-3 mr-4 text-orange-500 bg-orange-100 rounded-full dark:text-orange-100 dark:bg-orange-500"> 102 <div class="p-3 mr-4 text-orange-500 bg-orange-100 rounded-full dark:text-orange-100 dark:bg-orange-500">
103 <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> 103 <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
104 <path 104 <path
105 d="M13 6a3 3 0 11-6 0 3 3 0 016 0zM18 8a2 2 0 11-4 0 2 2 0 014 0zM14 15a4 4 0 00-8 0v3h8v-3zM6 8a2 2 0 11-4 0 2 2 0 014 0zM16 18v-3a5.972 5.972 0 00-.75-2.906A3.005 3.005 0 0119 15v3h-3zM4.75 12.094A5.973 5.973 0 004 15v3H1v-3a3 3 0 013.75-2.906z"></path> 105 d="M13 6a3 3 0 11-6 0 3 3 0 016 0zM18 8a2 2 0 11-4 0 2 2 0 014 0zM14 15a4 4 0 00-8 0v3h8v-3zM6 8a2 2 0 11-4 0 2 2 0 014 0zM16 18v-3a5.972 5.972 0 00-.75-2.906A3.005 3.005 0 0119 15v3h-3zM4.75 12.094A5.973 5.973 0 004 15v3H1v-3a3 3 0 013.75-2.906z"></path>
106 </svg> 106 </svg>
107 </div> 107 </div>
108 <div> 108 <div>
109 <p class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400"> 109 <p class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400">
110 На рассмотрении 110 На рассмотрении
111 </p> 111 </p>
112 <p class="text-lg font-semibold text-gray-700 dark:text-gray-200"> 112 <p class="text-lg font-semibold text-gray-700 dark:text-gray-200">
113 {{ $all_status }} 113 {{ $all_status }}
114 </p> 114 </p>
115 </div> 115 </div>
116 </div> 116 </div>
117 </div> 117 </div>
118 118
119 <div class="w-full overflow-hidden rounded-lg shadow-xs" id="ajax_block"> 119 <div class="w-full overflow-hidden rounded-lg shadow-xs" id="ajax_block">
120 <div class="w-full overflow-x-auto"> 120 <div class="w-full overflow-x-auto">
121 <table class="w-full whitespace-no-wrap"> 121 <table class="w-full whitespace-no-wrap">
122 <thead> 122 <thead>
123 <tr 123 <tr
124 class="text-xs font-semibold tracking-wide text-left text-gray-500 uppercase border-b dark:border-gray-700 bg-gray-50 dark:text-gray-400 dark:bg-gray-800" 124 class="text-xs font-semibold tracking-wide text-left text-gray-500 uppercase border-b dark:border-gray-700 bg-gray-50 dark:text-gray-400 dark:bg-gray-800"
125 > 125 >
126 <th class="px-4 py-3">№</th> 126 <th class="px-4 py-3">№</th>
127 <th class="px-4 py-3">ID</th> 127 <th class="px-4 py-3">ID</th>
128 <th class="px-4 py-3">Лого</th> 128 <th class="px-4 py-3">Лого</th>
129 <th class="px-4 py-3">Компания/Email/Тел/Пароль</th> 129 <th class="px-4 py-3">Компания/Email/Тел/Пароль</th>
130 <th class="px-4 py-3">Категория</th> 130 <th class="px-4 py-3">Категория</th>
131 <th class="px-4 py-3">Коммент.</th> 131 <th class="px-4 py-3">Коммент.</th>
132 <th class="px-4 py-3">Дата регист.</th> 132 <th class="px-4 py-3">Дата регист.</th>
133 <th class="px-4 py-3">Редакт.</th> 133 <th class="px-4 py-3">Редакт.</th>
134 </tr> 134 </tr>
135 </thead> 135 </thead>
136 <tbody class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800"> 136 <tbody class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800">
137 @foreach($users as $user) 137 @foreach($users as $user)
138 <tr class="text-gray-700 dark:text-gray-400"> 138 <tr class="text-gray-700 dark:text-gray-400">
139 <td class="px-4 py-3 text-xs"> 139 <td class="px-4 py-3 text-xs">
140 {{$user->id}} 140 {{$user->id}}
141 </td> 141 </td>
142 <td class="px-4 py-3 text-xs"> 142 <td class="px-4 py-3 text-xs">
143 @if (isset($user->code_id)) 143 @if (isset($user->code_id))
144 {{$user->code_id}} 144 {{$user->code_id}}
145 @endif 145 @endif
146 </td> 146 </td>
147 <td class="px-4 py-3 text-xs"> 147 <td class="px-4 py-3 text-xs">
148 @if (isset($user->emp_logo) && ($user->emp_logo)) 148 @if (isset($user->emp_logo) && ($user->emp_logo))
149 <div class="flex items-center text-sm"> 149 <div class="flex items-center text-sm">
150 <div 150 <div
151 class="relative hidden w-8 h-8 mr-3 rounded-full md:block" 151 class="relative hidden w-8 h-8 mr-3 rounded-full md:block"
152 > 152 >
153 <img 153 <img
154 class="object-cover w-full h-full rounded-full" 154 class="object-cover w-full h-full rounded-full"
155 src="{{ asset(Storage::url($user->emp_logo)) }}" 155 src="{{ asset(Storage::url($user->emp_logo)) }}"
156 alt="" 156 alt=""
157 loading="lazy" 157 loading="lazy"
158 /> 158 />
159 <div 159 <div
160 class="absolute inset-0 rounded-full shadow-inner" 160 class="absolute inset-0 rounded-full shadow-inner"
161 aria-hidden="true" 161 aria-hidden="true"
162 ></div> 162 ></div>
163 </div> 163 </div>
164 </div> 164 </div>
165 @else 165 @else
166 - 166 -
167 @endif 167 @endif
168 </td> 168 </td>
169 169
170 <td class="px-4 py-3 text-xs"> 170 <td class="px-4 py-3 text-xs">
171 <div class="flex items-center text-sm"> 171 <div class="flex items-center text-sm">
172 <div> 172 <div>
173 <p class="font-semibold">{{$user->name}}</p> 173 <p class="font-semibold">{{$user->name}}</p>
174 <p class="font-semibold">{{ empty($user->employers->email) ? $user->email : $user->employers->email }}</p> 174 <p class="font-semibold">{{ empty($user->employers->email) ? $user->email : $user->employers->email }}</p>
175 <p class="text-xs text-gray-600 dark:text-gray-400"> 175 <p class="text-xs text-gray-600 dark:text-gray-400">
176 {{ empty($user->employers->telephone) ? $user->telephone : $user->employers->telephone }} 176 {{ empty($user->employers->telephone) ? $user->telephone : $user->employers->telephone }}
177 </p> 177 </p>
178 <p class="text-xs text-gray-600 dark:text-gray-400"> 178 <p class="text-xs text-gray-600 dark:text-gray-400">
179 @if (!empty($user->pubpassword)) 179 @if (!empty($user->pubpassword))
180 {{ base64_decode($user->pubpassword) }} 180 {{ base64_decode($user->pubpassword) }}
181 @endif 181 @endif
182 </p> 182 </p>
183 </div> 183 </div>
184 </div> 184 </div>
185 185
186 </td> 186 </td>
187 <td class="px-4 py-3 text-xs"> 187 <td class="px-4 py-3 text-xs">
188 {{ $user->category }} 188 {{ $user->category }}
189 </td> 189 </td>
190 <td class="px-4 py-3 text-xs"> 190 <td class="px-4 py-3 text-xs">
191 @if (!empty($user->comment_admin)) 191 @if (!empty($user->comment_admin))
192 192
193 <a style="text-decoration: underline;" href="{{ route('admin.comment-employer', ['employer' => $user->emp_id]) }}">Есть</a> 193 <a style="text-decoration: underline;" href="{{ route('admin.comment-employer', ['employer' => $user->emp_id]) }}">Есть</a>
194 @else 194 @else
195 Нет 195 Нет
196 @endif 196 @endif
197 </td> 197 </td>
198 <td class="px-4 py-3 text-xs"> 198 <td class="px-4 py-3 text-xs">
199 {{ date('d.m.Y', strtotime($user->created_at)) }} 199 {{ date('d.m.Y', strtotime($user->created_at)) }}
200 </td> 200 </td>
201 <td class="px-4 py-3 text-xs"> 201 <td class="px-4 py-3 text-xs">
202 @if (!empty($user->emp_id)) 202 @if (!empty($user->emp_id))
203 <a href="{{ route('admin.employer-profile', ['employer' => $user->emp_id]) }}">Изменить</a> 203 <a href="{{ route('admin.employer-profile', ['employer' => $user->emp_id]) }}">Изменить</a>
204 @if ($user->emp_id > 2) | <a @click="openModal" style="cursor: pointer;" data-employer="{{$user->emp_id}}" data-user="{{$user->user_id}}" class="btn_del btn btn-danger">Удалить</a> 204 @if ($user->emp_id > 2) | <a @click="openModal" style="cursor: pointer;" data-employer="{{$user->emp_id}}" data-user="{{$user->user_id}}" class="btn_del btn btn-danger">Удалить</a>
205 @endif 205 @endif
206 @endif 206 @endif
207 </td> 207 </td>
208 <!--<td class="px-4 py-3 text-sm"> 208 <!--<td class="px-4 py-3 text-sm">
209 @if ($user->usr_id > 1) 209 @if ($user->usr_id > 1)
210 <input type="checkbox" class="checkban" value="{{$user->usr_id}}" name="ban_{{$user->usr_id}}" {{ ($user->is_ban) ? "checked" : "" }}/> 210 <input type="checkbox" class="checkban" value="{{$user->usr_id}}" name="ban_{{$user->usr_id}}" {{ ($user->is_ban) ? "checked" : "" }}/>
211 @endif 211 @endif
212 </td>--> 212 </td>-->
213 </tr> 213 </tr>
214 @endforeach 214 @endforeach
215 </tbody> 215 </tbody>
216 </table> 216 </table>
217 </div> 217 </div>
218 218
219 <div class="grid px-4 py-3 text-xs font-semibold tracking-wide text-gray-500 uppercase border-t dark:border-gray-700 bg-gray-50 sm:grid-cols-9 dark:text-gray-400 dark:bg-gray-800"> 219 <div class="grid px-4 py-3 text-xs font-semibold tracking-wide text-gray-500 uppercase border-t dark:border-gray-700 bg-gray-50 sm:grid-cols-9 dark:text-gray-400 dark:bg-gray-800">
220 <?=$users->appends($_GET)->links('admin.pagginate'); ?> 220 <?=$users->appends($_GET)->links('admin.pagginate'); ?>
221 </div> 221 </div>
222 </div> 222 </div>
223 @endsection 223 @endsection
224 224
resources/views/admin/users/index_bd.blade.php
1 @extends('layout.admin', ['title' => $title]) 1 @extends('layout.admin', ['title' => $title])
2 2
3 @section('script') 3 @section('script')
4 <script> 4 <script>
5 $(document).ready(function() { 5 $(document).ready(function() {
6 $(document).on('click', '.check_click', function () { 6 $(document).on('click', '.check_click', function () {
7 var this_ = $(this); 7 var this_ = $(this);
8 var value = this_.val(); 8 var value = this_.val();
9 var field = this_.attr('data-field'); 9 var field = this_.attr('data-field');
10 var ajax_block = $('#ajax_block'); 10 var ajax_block = $('#ajax_block');
11 var bool = 0; 11 var bool = 0;
12 var str_get = ''; 12 var str_get = '';
13 13
14 if(this.checked){ 14 if(this.checked){
15 bool = 1; 15 bool = 1;
16 } else { 16 } else {
17 bool = 0; 17 bool = 0;
18 } 18 }
19 console.log(field); 19 console.log(field);
20 str_get = "id=" + value + "&" + field + "=" + bool; 20 str_get = "id=" + value + "&" + field + "=" + bool;
21 console.log(str_get); 21 console.log(str_get);
22 22
23 $.ajax({ 23 $.ajax({
24 type: "GET", 24 type: "GET",
25 url: "{{ url()->full()}}", 25 url: "{{ url()->full()}}",
26 data: str_get, 26 data: str_get,
27 success: function (data) { 27 success: function (data) {
28 console.log('Обновление таблицы пользователей '); 28 console.log('Обновление таблицы пользователей ');
29 //data = JSON.parse(data); 29 //data = JSON.parse(data);
30 //console.log(data); 30 //console.log(data);
31 ajax_block.html(data); 31 ajax_block.html(data);
32 }, 32 },
33 headers: { 33 headers: {
34 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') 34 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
35 }, 35 },
36 error: function (data) { 36 error: function (data) {
37 console.log('Error: ' + data); 37 console.log('Error: ' + data);
38 } 38 }
39 }); 39 });
40 }); 40 });
41 }); 41 });
42 </script> 42 </script>
43 43
44 <script> 44 <script>
45 const btns = document.querySelectorAll('.btn_del'); 45 const btns = document.querySelectorAll('.btn_del');
46 btns.forEach(btn => { 46 btns.forEach(btn => {
47 btn.addEventListener('click', (e) => { 47 btn.addEventListener('click', (e) => {
48 console.log('click button'); 48 console.log('click button');
49 let id = e.target.id; 49 let id = e.target.id;
50 let form = document.getElementById("form_modal_del"); 50 let form = document.getElementById("form_modal_del");
51 form.action = "<?=$_SERVER['APP_URL']?>public/admin/basedata/delete/"+e.target.getAttribute('data-user'); 51 form.action = "<?=$_SERVER['APP_URL']?>admin/basedata/delete/"+e.target.getAttribute('data-user');
52 //document.getElementById("title_modal").innerHTML = id; 52 //document.getElementById("title_modal").innerHTML = id;
53 console.log(e.target.getAttribute('data-employer')); 53 console.log(e.target.getAttribute('data-employer'));
54 console.log(e.target.getAttribute('data-user')); 54 console.log(e.target.getAttribute('data-user'));
55 55
56 }); 56 });
57 }); 57 });
58 </script> 58 </script>
59 @endsection 59 @endsection
60 60
61 @section('modal') 61 @section('modal')
62 @include('admin.users.modal') 62 @include('admin.users.modal')
63 @endsection 63 @endsection
64 64
65 @section('search') 65 @section('search')
66 @include('admin.find') 66 @include('admin.find')
67 @endsection 67 @endsection
68 68
69 @section('content') 69 @section('content')
70 <div class="w-full overflow-hidden rounded-lg shadow-xs" id="ajax_block"> 70 <div class="w-full overflow-hidden rounded-lg shadow-xs" id="ajax_block">
71 <div class="w-full overflow-x-auto"> 71 <div class="w-full overflow-x-auto">
72 <a class="px-3 py-1 text-sm font-medium leading-5 text-white transition-colors duration-150 bg-purple-600 border border-transparent rounded-md active:bg-purple-600 hover:bg-purple-700 focus:outline-none focus:shadow-outline-purple" href="{{ route('admin.add-basedata') }}">Добавить пользователя</a><br><br> 72 <a class="px-3 py-1 text-sm font-medium leading-5 text-white transition-colors duration-150 bg-purple-600 border border-transparent rounded-md active:bg-purple-600 hover:bg-purple-700 focus:outline-none focus:shadow-outline-purple" href="{{ route('admin.add-basedata') }}">Добавить пользователя</a><br><br>
73 <table class="w-full whitespace-no-wrap"> 73 <table class="w-full whitespace-no-wrap">
74 <thead> 74 <thead>
75 <tr 75 <tr
76 class="text-xs font-semibold tracking-wide text-left text-gray-500 uppercase border-b dark:border-gray-700 bg-gray-50 dark:text-gray-400 dark:bg-gray-800" 76 class="text-xs font-semibold tracking-wide text-left text-gray-500 uppercase border-b dark:border-gray-700 bg-gray-50 dark:text-gray-400 dark:bg-gray-800"
77 > 77 >
78 <th class="px-4 py-3">№</th> 78 <th class="px-4 py-3">№</th>
79 <th class="px-4 py-3">Имя</th> 79 <th class="px-4 py-3">Имя</th>
80 <th class="px-4 py-3">Email/телефон</th> 80 <th class="px-4 py-3">Email/телефон</th>
81 <th class="px-4 py-3">Должность</th> 81 <th class="px-4 py-3">Должность</th>
82 <th class="px-4 py-3">Анкета</th> 82 <th class="px-4 py-3">Анкета</th>
83 <th class="px-4 py-3">Дата регистрации</th> 83 <th class="px-4 py-3">Дата регистрации</th>
84 <th class="px-4 py-3">Изменить</th> 84 <th class="px-4 py-3">Изменить</th>
85 </tr> 85 </tr>
86 </thead> 86 </thead>
87 <tbody class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800"> 87 <tbody class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800">
88 @foreach($users as $user) 88 @foreach($users as $user)
89 <tr class="text-gray-700 dark:text-gray-400"> 89 <tr class="text-gray-700 dark:text-gray-400">
90 <td class="px-4 py-3 text-xs"> 90 <td class="px-4 py-3 text-xs">
91 {{$user->id}} 91 {{$user->id}}
92 </td> 92 </td>
93 <td class="px-4 py-3 text-xs"> 93 <td class="px-4 py-3 text-xs">
94 <!--<div class="flex items-center text-sm"> 94 <!--<div class="flex items-center text-sm">
95 <div class="relative hidden w-8 h-8 mr-3 rounded-full md:block"> 95 <div class="relative hidden w-8 h-8 mr-3 rounded-full md:block">
96 <div 96 <div
97 class="absolute inset-0 rounded-full shadow-inner" 97 class="absolute inset-0 rounded-full shadow-inner"
98 aria-hidden="true" 98 aria-hidden="true"
99 ></div> 99 ></div>
100 </div> 100 </div>
101 <div> 101 <div>
102 <p class="font-semibold"><a href="{{ route('admin.users') }}">Пользователи</a></p> 102 <p class="font-semibold"><a href="{{ route('admin.users') }}">Пользователи</a></p>
103 <p class="text-xs text-gray-600 dark:text-gray-400"> 103 <p class="text-xs text-gray-600 dark:text-gray-400">
104 Все пользователи сайта 104 Все пользователи сайта
105 </p> 105 </p>
106 </div> 106 </div>
107 </div> 107 </div>
108 --> 108 -->
109 <!--<a style="text-decoration: underline;" href="{{ route('admin.user-profile', ['user' => $user->id]) }}"></a>--> 109 <!--<a style="text-decoration: underline;" href="{{ route('admin.user-profile', ['user' => $user->id]) }}"></a>-->
110 110
111 {{ $user->name }} 111 {{ $user->name }}
112 </td> 112 </td>
113 113
114 <td class="px-4 py-3 text-xs"> 114 <td class="px-4 py-3 text-xs">
115 <div class="flex items-center text-sm"> 115 <div class="flex items-center text-sm">
116 <!--<div class="relative hidden w-8 h-8 mr-3 rounded-full md:block"> 116 <!--<div class="relative hidden w-8 h-8 mr-3 rounded-full md:block">
117 <div 117 <div
118 class="absolute inset-0 rounded-full shadow-inner" 118 class="absolute inset-0 rounded-full shadow-inner"
119 aria-hidden="true" 119 aria-hidden="true"
120 ></div> 120 ></div>
121 </div>--> 121 </div>-->
122 <div> 122 <div>
123 <p class="font-semibold">{{ empty($user->employers->email) ? $user->email : $user->employers->email }}</p> 123 <p class="font-semibold">{{ empty($user->employers->email) ? $user->email : $user->employers->email }}</p>
124 <p class="text-xs text-gray-600 dark:text-gray-400"> 124 <p class="text-xs text-gray-600 dark:text-gray-400">
125 {{ empty($user->employers->telephone) ? $user->telephone : $user->employers->telephone }} 125 {{ empty($user->employers->telephone) ? $user->telephone : $user->employers->telephone }}
126 </p> 126 </p>
127 </div> 127 </div>
128 </div> 128 </div>
129 </td> 129 </td>
130 130
131 <!--<td class="px-4 py-3 text-xs"> 131 <!--<td class="px-4 py-3 text-xs">
132 <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"> 132 <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">
133 @if ($user->is_worker) 133 @if ($user->is_worker)
134 Работник 134 Работник
135 @else 135 @else
136 Работодатель 136 Работодатель
137 @endif 137 @endif
138 </span> 138 </span>
139 @if ($user->admin) 139 @if ($user->admin)
140 <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"> 140 <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">
141 Администратор 141 Администратор
142 </span> 142 </span>
143 @endif 143 @endif
144 @if ($user->is_bd) 144 @if ($user->is_bd)
145 <span class="px-2 py-1 font-semibold leading-tight text-red-700 bg-red-100 rounded-full dark:text-red-100 dark:bg-red-700"> 145 <span class="px-2 py-1 font-semibold leading-tight text-red-700 bg-red-100 rounded-full dark:text-red-100 dark:bg-red-700">
146 База данных 146 База данных
147 </span> 147 </span>
148 @endif 148 @endif
149 </td>--> 149 </td>-->
150 150
151 <td class="px-4 py-3 text-xs"> 151 <td class="px-4 py-3 text-xs">
152 @if (isset($user->jobtitles[0]->name)) 152 @if (isset($user->jobtitles[0]->name))
153 {{ $user->jobtitles[0]->name }} 153 {{ $user->jobtitles[0]->name }}
154 @else 154 @else
155 - 155 -
156 @endif 156 @endif
157 </td> 157 </td>
158 158
159 <td class="px-4 py-3 text-xs"> 159 <td class="px-4 py-3 text-xs">
160 @if (isset($user->workers[0]->id)) 160 @if (isset($user->workers[0]->id))
161 <!--<a href="{{ route('admin.worker-profile-edit', ['worker' => $user->workers[0]->id]) }}">Править</a> |--> 161 <!--<a href="{{ route('admin.worker-profile-edit', ['worker' => $user->workers[0]->id]) }}">Править</a> |-->
162 <!--<a href="{{ route('admin.doc-basedata', ['user' => $user->id]) }}">Скачать</a>--> 162 <!--<a href="{{ route('admin.doc-basedata', ['user' => $user->id]) }}">Скачать</a>-->
163 @endif 163 @endif
164 @isset($user->file) 164 @isset($user->file)
165 <a class="text-gray-700 dark:text-gray-400" target="blank" href="{{ asset(Storage::url($user->file)) }}">Скачать</a> 165 <a class="text-gray-700 dark:text-gray-400" target="blank" href="{{ asset(Storage::url($user->file)) }}">Скачать</a>
166 @else 166 @else
167 <p class="text-gray-700 dark:text-gray-400">-</p> 167 <p class="text-gray-700 dark:text-gray-400">-</p>
168 @endisset 168 @endisset
169 </td> 169 </td>
170 170
171 <td class="px-4 py-3 text-xs"> 171 <td class="px-4 py-3 text-xs">
172 {{ date('d.m.Y', strtotime($user->created_at)) }} 172 {{ date('d.m.Y', strtotime($user->created_at)) }}
173 </td> 173 </td>
174 174
175 <td class="px-4 py-3 text-xs text-sm_"> 175 <td class="px-4 py-3 text-xs text-sm_">
176 @if (!empty($user->id)) 176 @if (!empty($user->id))
177 <a href="{{ route('admin.edit-basedata', ['user' => $user->id]) }}">Изменить</a> 177 <a href="{{ route('admin.edit-basedata', ['user' => $user->id]) }}">Изменить</a>
178 | <a @click="openModal" style="cursor: pointer;" data-user="{{$user->id}}" class="btn_del btn btn-danger">Удалить</a> 178 | <a @click="openModal" style="cursor: pointer;" data-user="{{$user->id}}" class="btn_del btn btn-danger">Удалить</a>
179 @endif 179 @endif
180 </td> 180 </td>
181 </tr> 181 </tr>
182 @endforeach 182 @endforeach
183 </tbody> 183 </tbody>
184 </table> 184 </table>
185 </div> 185 </div>
186 186
187 <div class="grid px-4 py-3 text-xs font-semibold tracking-wide text-gray-500 uppercase border-t dark:border-gray-700 bg-gray-50 sm:grid-cols-9 dark:text-gray-400 dark:bg-gray-800"> 187 <div class="grid px-4 py-3 text-xs font-semibold tracking-wide text-gray-500 uppercase border-t dark:border-gray-700 bg-gray-50 sm:grid-cols-9 dark:text-gray-400 dark:bg-gray-800">
188 <?//=$users->appends($_GET)->links('admin.pagginate'); ?> 188 <?//=$users->appends($_GET)->links('admin.pagginate'); ?>
189 <?=$users->links('admin.pagginate'); ?> 189 <?=$users->links('admin.pagginate'); ?>
190 </div> 190 </div>
191 191
192 192
193 <!--<div 193 <!--<div
194 class="grid px-4 py-3 text-xs font-semibold tracking-wide text-gray-500 uppercase border-t dark:border-gray-700 bg-gray-50 sm:grid-cols-9 dark:text-gray-400 dark:bg-gray-800" 194 class="grid px-4 py-3 text-xs font-semibold tracking-wide text-gray-500 uppercase border-t dark:border-gray-700 bg-gray-50 sm:grid-cols-9 dark:text-gray-400 dark:bg-gray-800"
195 > 195 >
196 <span class="flex items-center col-span-3"> 196 <span class="flex items-center col-span-3">
197 Showing 21-30 of 100 197 Showing 21-30 of 100
198 </span> 198 </span>
199 <span class="col-span-2"></span> 199 <span class="col-span-2"></span>
200 200
201 <span class="flex col-span-4 mt-2 sm:mt-auto sm:justify-end"> 201 <span class="flex col-span-4 mt-2 sm:mt-auto sm:justify-end">
202 <nav aria-label="Table navigation"> 202 <nav aria-label="Table navigation">
203 <ul class="inline-flex items-center"> 203 <ul class="inline-flex items-center">
204 <li> 204 <li>
205 <button 205 <button
206 class="px-3 py-1 rounded-md rounded-l-lg focus:outline-none focus:shadow-outline-purple" 206 class="px-3 py-1 rounded-md rounded-l-lg focus:outline-none focus:shadow-outline-purple"
207 aria-label="Previous" 207 aria-label="Previous"
208 > 208 >
209 <svg 209 <svg
210 aria-hidden="true" 210 aria-hidden="true"
211 class="w-4 h-4 fill-current" 211 class="w-4 h-4 fill-current"
212 viewBox="0 0 20 20" 212 viewBox="0 0 20 20"
213 > 213 >
214 <path 214 <path
215 d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" 215 d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z"
216 clip-rule="evenodd" 216 clip-rule="evenodd"
217 fill-rule="evenodd" 217 fill-rule="evenodd"
218 ></path> 218 ></path>
219 </svg> 219 </svg>
220 </button> 220 </button>
221 </li> 221 </li>
222 <li> 222 <li>
223 <button 223 <button
224 class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple" 224 class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple"
225 > 225 >
226 1 226 1
227 </button> 227 </button>
228 </li> 228 </li>
229 <li> 229 <li>
230 <button 230 <button
231 class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple" 231 class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple"
232 > 232 >
233 2 233 2
234 </button> 234 </button>
235 </li> 235 </li>
236 <li> 236 <li>
237 <button 237 <button
238 class="px-3 py-1 text-white transition-colors duration-150 bg-purple-600 border border-r-0 border-purple-600 rounded-md focus:outline-none focus:shadow-outline-purple" 238 class="px-3 py-1 text-white transition-colors duration-150 bg-purple-600 border border-r-0 border-purple-600 rounded-md focus:outline-none focus:shadow-outline-purple"
239 > 239 >
240 3 240 3
241 </button> 241 </button>
242 </li> 242 </li>
243 <li> 243 <li>
244 <button 244 <button
245 class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple" 245 class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple"
246 > 246 >
247 4 247 4
248 </button> 248 </button>
249 </li> 249 </li>
250 <li> 250 <li>
251 <span class="px-3 py-1">...</span> 251 <span class="px-3 py-1">...</span>
252 </li> 252 </li>
253 <li> 253 <li>
254 <button 254 <button
255 class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple" 255 class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple"
256 > 256 >
257 8 257 8
258 </button> 258 </button>
259 </li> 259 </li>
260 <li> 260 <li>
261 <button 261 <button
262 class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple" 262 class="px-3 py-1 rounded-md focus:outline-none focus:shadow-outline-purple"
263 > 263 >
264 9 264 9
265 </button> 265 </button>
266 </li> 266 </li>
267 <li> 267 <li>
268 <button 268 <button
269 class="px-3 py-1 rounded-md rounded-r-lg focus:outline-none focus:shadow-outline-purple" 269 class="px-3 py-1 rounded-md rounded-r-lg focus:outline-none focus:shadow-outline-purple"
270 aria-label="Next" 270 aria-label="Next"
271 > 271 >
272 <svg 272 <svg
273 class="w-4 h-4 fill-current" 273 class="w-4 h-4 fill-current"
274 aria-hidden="true" 274 aria-hidden="true"
275 viewBox="0 0 20 20" 275 viewBox="0 0 20 20"
276 > 276 >
277 <path 277 <path
278 d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" 278 d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
279 clip-rule="evenodd" 279 clip-rule="evenodd"
280 fill-rule="evenodd" 280 fill-rule="evenodd"
281 ></path> 281 ></path>
282 </svg> 282 </svg>
283 </button> 283 </button>
284 </li> 284 </li>
285 </ul> 285 </ul>
286 </nav> 286 </nav>
287 </span> 287 </span>
288 </div>--> 288 </div>-->
289 </div> 289 </div>
290 290
291 <?//=$users->appends($_GET)->links('catalogs.paginate'); ?> 291 <?//=$users->appends($_GET)->links('catalogs.paginate'); ?>
292 292
293 293
294 @endsection 294 @endsection
295 295