Commit b31627c31ccf6fcc1e63fc6fc7ceba3a021cbb35

Authored by Hayk Nazaryan
Exists in master

Merge branch 'master' of http://gitlab.nologostudio.ru/alarionov/rekamore-su

Showing 2 changed files Inline Diff

resources/views/admin/employer/edit.blade.php
1 @extends('layout.admin', ['title' => 'Админка - Редактирование работодателя']) 1 @extends('layout.admin', ['title' => 'Админка - Редактирование работодателя'])
2 2
3 @section('content') 3 @section('content')
4 <h4 class="mb-4 text-lg font-semibold text-gray-600 dark:text-gray-300"> 4 <h4 class="mb-4 text-lg font-semibold text-gray-600 dark:text-gray-300">
5 Работодатель-пользователь: "{{$employer->users->name_man}} ({{$employer->user_id}})" 5 Работодатель-пользователь: "{{$employer->users->name_man}} ({{$employer->user_id}})"
6 </h4> 6 </h4>
7 <form method="POST" action="" enctype="multipart/form-data"> 7 <form method="POST" action="" enctype="multipart/form-data">
8 <div class="px-4 py-3 mb-8 bg-white rounded-lg shadow-md dark:bg-gray-800"> 8 <div class="px-4 py-3 mb-8 bg-white rounded-lg shadow-md dark:bg-gray-800">
9 @csrf 9 @csrf
10 <div class="tabs"> 10 <div class="tabs">
11 <input type="radio" name="tab-btn" id="tab-btn-1" value="" checked> 11 <input type="radio" name="tab-btn" id="tab-btn-1" value="" checked>
12 <label for="tab-btn-1">Персональная информация</label> 12 <label for="tab-btn-1">Персональная информация</label>
13 <input type="radio" name="tab-btn" id="tab-btn-2" value=""> 13 <input type="radio" name="tab-btn" id="tab-btn-2" value="">
14 <label for="tab-btn-2">Настройки</label> 14 <label for="tab-btn-2">Настройки</label>
15 <input type="radio" name="tab-btn" id="tab-btn-3" value=""> 15 <input type="radio" name="tab-btn" id="tab-btn-3" value="">
16 <label for="tab-btn-3">Флот</label> 16 <label for="tab-btn-3">Флот</label>
17 <div id="content-1"> 17 <div id="content-1">
18 18
19 <label class="block text-sm"> 19 <label class="block text-sm">
20 <span class="text-gray-700 dark:text-gray-400">Имя компании</span> 20 <span class="text-gray-700 dark:text-gray-400">Имя компании</span>
21 <input name="name" id="name" 21 <input name="name" id="name"
22 class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input" 22 class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
23 placeholder="Имя компании" value="{{ old('name') ?? $employer->users->name ?? '' }}" 23 placeholder="Имя компании" value="{{ old('name') ?? $employer->users->name ?? '' }}"
24 /> 24 />
25 @error('name') 25 @error('name')
26 <span class="text-xs text-red-600 dark:text-red-400"> 26 <span class="text-xs text-red-600 dark:text-red-400">
27 {{ $message }} 27 {{ $message }}
28 </span> 28 </span>
29 @enderror 29 @enderror
30 </label><br> 30 </label><br>
31 31
32 <label class="block text-sm"> 32 <label class="block text-sm">
33 <span class="text-gray-700 dark:text-gray-400">Email(Login)</span>
34 <input name="user_email" id="email" readonly
35 class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
36 placeholder="Почта(Логин)" value="{{ $employer->users->email }}"
37 />
38 </label><br>
39
40 <label class="block text-sm">
33 <span class="text-gray-700 dark:text-gray-400">Email</span> 41 <span class="text-gray-700 dark:text-gray-400">Email</span>
34 <input name="email" id="email" 42 <input name="email" id="email"
35 class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input" 43 class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
36 placeholder="Почта" value="{{ old('email') ?? $employer->email ?? '' }}" 44 placeholder="Почта" value="{{ old('email') ?? $employer->email ?? '' }}"
37 /> 45 />
38 @error('email') 46 @error('email')
39 <span class="text-xs text-red-600 dark:text-red-400"> 47 <span class="text-xs text-red-600 dark:text-red-400">
40 {{ $message }} 48 {{ $message }}
41 </span> 49 </span>
42 @enderror 50 @enderror
43 </label><br> 51 </label><br>
44 52
45 <label class="block text-sm"> 53 <label class="block text-sm">
46 <span class="text-gray-700 dark:text-gray-400">Телефон</span> 54 <span class="text-gray-700 dark:text-gray-400">Телефон</span>
47 <input name="telephone" id="telephone" 55 <input name="telephone" id="telephone"
48 class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input" 56 class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
49 placeholder="Телефон" value="{{ old('telephone') ?? $employer->telephone ?? '' }}" 57 placeholder="Телефон" value="{{ old('telephone') ?? $employer->telephone ?? '' }}"
50 /> 58 />
51 @error('telephone') 59 @error('telephone')
52 <span class="text-xs text-red-600 dark:text-red-400"> 60 <span class="text-xs text-red-600 dark:text-red-400">
53 {{ $message }} 61 {{ $message }}
54 </span> 62 </span>
55 @enderror 63 @enderror
56 </label><br> 64 </label><br>
57 65
58 <label class="block text-sm"> 66 <label class="block text-sm">
59 <span class="text-gray-700 dark:text-gray-400">Адрес</span> 67 <span class="text-gray-700 dark:text-gray-400">Адрес</span>
60 <input name="address" id="address" 68 <input name="address" id="address"
61 class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input" 69 class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
62 placeholder="Адрес" value="{{ old('address') ?? $employer->address ?? '' }}" 70 placeholder="Адрес" value="{{ old('address') ?? $employer->address ?? '' }}"
63 /> 71 />
64 @error('address') 72 @error('address')
65 <span class="text-xs text-red-600 dark:text-red-400"> 73 <span class="text-xs text-red-600 dark:text-red-400">
66 {{ $message }} 74 {{ $message }}
67 </span> 75 </span>
68 @enderror 76 @enderror
69 </label><br> 77 </label><br>
70 78
71 <label class="block text-sm"> 79 <label class="block text-sm">
72 <span class="text-gray-700 dark:text-gray-400">Сайт</span> 80 <span class="text-gray-700 dark:text-gray-400">Сайт</span>
73 <input name="site" id="site" 81 <input name="site" id="site"
74 class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input" 82 class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
75 placeholder="Сайт" value="{{ old('site') ?? $employer->site ?? '' }}" 83 placeholder="Сайт" value="{{ old('site') ?? $employer->site ?? '' }}"
76 /> 84 />
77 @error('site') 85 @error('site')
78 <span class="text-xs text-red-600 dark:text-red-400"> 86 <span class="text-xs text-red-600 dark:text-red-400">
79 {{ $message }} 87 {{ $message }}
80 </span> 88 </span>
81 @enderror 89 @enderror
82 </label><br> 90 </label><br>
83 91
84 <label class="block text-sm"> 92 <label class="block text-sm">
85 <span class="text-gray-700 dark:text-gray-400">Лого</span> 93 <span class="text-gray-700 dark:text-gray-400">Лого</span>
86 94
87 <input name="logo" id="logo" type="file" 95 <input name="logo" id="logo" type="file"
88 class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input" 96 class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
89 placeholder="Лого" value="" 97 placeholder="Лого" value=""
90 /> 98 />
91 @isset($employer->logo) 99 @isset($employer->logo)
92 <img src="<?=asset(Storage::url($employer->logo))?>" width="150"/> 100 <img src="<?=asset(Storage::url($employer->logo))?>" width="150"/>
93 @endisset 101 @endisset
94 @error('logo') 102 @error('logo')
95 <span class="text-xs text-red-600 dark:text-red-400"> 103 <span class="text-xs text-red-600 dark:text-red-400">
96 {{ $message }} 104 {{ $message }}
97 </span> 105 </span>
98 @enderror 106 @enderror
99 </label><br> 107 </label><br>
100 108
101 <label class="block mt-4 text-sm"> 109 <label class="block mt-4 text-sm">
102 <span class="text-gray-700 dark:text-gray-400">Описание</span> 110 <span class="text-gray-700 dark:text-gray-400">Описание</span>
103 <textarea name="text" id="text" 111 <textarea name="text" id="text"
104 class="block w-full mt-1 text-sm dark:text-gray-300 dark:border-gray-600 dark:bg-gray-700 form-textarea focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:focus:shadow-outline-gray" 112 class="block w-full mt-1 text-sm dark:text-gray-300 dark:border-gray-600 dark:bg-gray-700 form-textarea focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:focus:shadow-outline-gray"
105 rows="3" 113 rows="3"
106 placeholder="Описание компании" 114 placeholder="Описание компании"
107 >{{ old('text') ?? $employer->text ?? '' }}</textarea> 115 >{{ old('text') ?? $employer->text ?? '' }}</textarea>
108 </label> 116 </label>
109 117
110 <hr> 118 <hr>
111 119
112 <label class="block mt-4 text-sm"> 120 <label class="block mt-4 text-sm">
113 <span class="text-gray-700 dark:text-gray-400">Категории</span> 121 <span class="text-gray-700 dark:text-gray-400">Категории</span>
114 122
115 <select name="category" id="category" class="form-control"> 123 <select name="category" id="category" class="form-control">
116 @foreach($select_category as $cat) 124 @foreach($select_category as $cat)
117 <option value="{{ $cat->name }}" 125 <option value="{{ $cat->name }}"
118 @isset($employer) 126 @isset($employer)
119 @if($cat->name == $employer->category) 127 @if($cat->name == $employer->category)
120 selected 128 selected
121 @endif 129 @endif
122 @endisset 130 @endisset
123 >{{ $cat->name }}</option> 131 >{{ $cat->name }}</option>
124 @endforeach 132 @endforeach
125 </select> 133 </select>
126 134
127 @error('category') 135 @error('category')
128 <div class="alert alert-danger">{{ $message }}</div> 136 <div class="alert alert-danger">{{ $message }}</div>
129 @enderror 137 @enderror
130 </label> 138 </label>
131 139
132 <label class="block mt-4 text-sm"> 140 <label class="block mt-4 text-sm">
133 <span class="text-gray-700 dark:text-gray-400">Комментарий админа</span> 141 <span class="text-gray-700 dark:text-gray-400">Комментарий админа</span>
134 <textarea name="comment_admin" id="comment_admin" 142 <textarea name="comment_admin" id="comment_admin"
135 class="block w-full mt-1 text-sm dark:text-gray-300 dark:border-gray-600 dark:bg-gray-700 form-textarea focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:focus:shadow-outline-gray" 143 class="block w-full mt-1 text-sm dark:text-gray-300 dark:border-gray-600 dark:bg-gray-700 form-textarea focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:focus:shadow-outline-gray"
136 rows="3" 144 rows="3"
137 placeholder="Комментарий админа" 145 placeholder="Комментарий админа"
138 >{{ old('comment_admin') ?? $employer->comment_admin ?? '' }}</textarea> 146 >{{ old('comment_admin') ?? $employer->comment_admin ?? '' }}</textarea>
139 </label> 147 </label>
140 148
141 </div> 149 </div>
142 <div id="content-2"> 150 <div id="content-2">
143 <label class="block text-sm"> 151 <label class="block text-sm">
144 <h4 class="mb-4 text-lg font-semibold text-gray-600 dark:text-gray-300"> 152 <h4 class="mb-4 text-lg font-semibold text-gray-600 dark:text-gray-300">
145 Права работодателя: 153 Права работодателя:
146 </h4> 154 </h4>
147 <p class="text-gray-700 dark:text-gray-400" style="float:left; margin-right: 10px">Просмотр базы резюме </p> 155 <p class="text-gray-700 dark:text-gray-400" style="float:left; margin-right: 10px">Просмотр базы резюме </p>
148 <input type="hidden" name="is_lookin" value="0" /> 156 <input type="hidden" name="is_lookin" value="0" />
149 <input name="is_lookin" <?php if ($employer->users->is_lookin) echo "checked";?> 157 <input name="is_lookin" <?php if ($employer->users->is_lookin) echo "checked";?>
150 class="block mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray " 158 class="block mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray "
151 placeholder="" type="checkbox" value="1" 159 placeholder="" type="checkbox" value="1"
152 /><br> 160 /><br>
153 161
154 <p class="text-gray-700 dark:text-gray-400" style="float:left; margin-right: 10px">Отправка сообщений</p> 162 <p class="text-gray-700 dark:text-gray-400" style="float:left; margin-right: 10px">Отправка сообщений</p>
155 <input type="hidden" name="is_message" value="0" /> 163 <input type="hidden" name="is_message" value="0" />
156 <input name="is_message" id="is_message" <?php if ($employer->users->is_message) echo "checked";?> 164 <input name="is_message" id="is_message" <?php if ($employer->users->is_message) echo "checked";?>
157 class="block mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray " 165 class="block mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray "
158 placeholder="" type="checkbox" value="1" 166 placeholder="" type="checkbox" value="1"
159 /><br> 167 /><br>
160 168
161 <p class="text-gray-700 dark:text-gray-400" style="float:left; margin-right: 10px">Публикация вакансий</p> 169 <p class="text-gray-700 dark:text-gray-400" style="float:left; margin-right: 10px">Публикация вакансий</p>
162 <input type="hidden" name="is_public" value="0" /> 170 <input type="hidden" name="is_public" value="0" />
163 <input name="is_public" id="is_public" <?php if ($employer->users->is_public) echo "checked";?> 171 <input name="is_public" id="is_public" <?php if ($employer->users->is_public) echo "checked";?>
164 class="block mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray " 172 class="block mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray "
165 placeholder="" type="checkbox" value="1" 173 placeholder="" type="checkbox" value="1"
166 /><br> 174 /><br>
167 175
168 </label> 176 </label>
169 177
170 <label class="block text-sm"> 178 <label class="block text-sm">
171 <p class="text-gray-700 dark:text-gray-400" style="float:left; margin-right: 10px">Работодатель скрыт </p> 179 <p class="text-gray-700 dark:text-gray-400" style="float:left; margin-right: 10px">Работодатель скрыт </p>
172 <input type="hidden" name="status_hidden" value="0" /> 180 <input type="hidden" name="status_hidden" value="0" />
173 <input name="status_hidden" <?php if ($employer->status_hidden) echo "checked";?> 181 <input name="status_hidden" <?php if ($employer->status_hidden) echo "checked";?>
174 class="block mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray " 182 class="block mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray "
175 placeholder="" type="checkbox" value="1" 183 placeholder="" type="checkbox" value="1"
176 /> 184 />
177 </label><br> 185 </label><br>
178 186
179 <label class="block text-sm"> 187 <label class="block text-sm">
180 <p class="text-gray-700 dark:text-gray-400" style="float:left; margin-right: 10px">Компания подтверждена </p> 188 <p class="text-gray-700 dark:text-gray-400" style="float:left; margin-right: 10px">Компания подтверждена </p>
181 <input type="hidden" name="oficial_status" value="0" /> 189 <input type="hidden" name="oficial_status" value="0" />
182 <input name="oficial_status" <?php if ($employer->oficial_status) echo "checked";?> 190 <input name="oficial_status" <?php if ($employer->oficial_status) echo "checked";?>
183 class="block mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray " 191 class="block mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray "
184 placeholder="" type="checkbox" value="1" 192 placeholder="" type="checkbox" value="1"
185 /> 193 />
186 </label><br> 194 </label><br>
187 195
188 <label class="block text-sm"> 196 <label class="block text-sm">
189 <p class="text-gray-700 dark:text-gray-400" style="float:left; margin-right: 10px">Разрешение публикации в соц.сетях </p> 197 <p class="text-gray-700 dark:text-gray-400" style="float:left; margin-right: 10px">Разрешение публикации в соц.сетях </p>
190 <input type="hidden" name="social_is" value="0" /> 198 <input type="hidden" name="social_is" value="0" />
191 <input name="social_is" <?php if ($employer->social_is) echo "checked";?> 199 <input name="social_is" <?php if ($employer->social_is) echo "checked";?>
192 class="block mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray " 200 class="block mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray "
193 placeholder="" type="checkbox" value="1" 201 placeholder="" type="checkbox" value="1"
194 /> 202 />
195 </label><br> 203 </label><br>
196 204
197 <label class="block text-sm"> 205 <label class="block text-sm">
198 <p class="text-gray-700 dark:text-gray-400" style="float:left; margin-right: 10px">Рассылка </p> 206 <p class="text-gray-700 dark:text-gray-400" style="float:left; margin-right: 10px">Рассылка </p>
199 <input type="hidden" name="sending_is" value="0" /> 207 <input type="hidden" name="sending_is" value="0" />
200 <input name="sending_is" <?php if ($employer->sending_is) echo "checked";?> 208 <input name="sending_is" <?php if ($employer->sending_is) echo "checked";?>
201 class="block mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray " 209 class="block mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray "
202 placeholder="" type="checkbox" value="1" 210 placeholder="" type="checkbox" value="1"
203 /> 211 />
204 </label><br> 212 </label><br>
205 213
206 </div> 214 </div>
207 215
208 <div id="content-3"> 216 <div id="content-3">
209 <label class="block text-sm"> 217 <label class="block text-sm">
210 <span class="text-gray-700 dark:text-gray-400">Флоты</span> 218 <span class="text-gray-700 dark:text-gray-400">Флоты</span>
211 <a href="{{ route('admin.flot_add', ['employer' => $employer->id]) }}" 219 <a href="{{ route('admin.flot_add', ['employer' => $employer->id]) }}"
212 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" 220 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"
213 style="display: -webkit-inline-box; height: 30px!important;" 221 style="display: -webkit-inline-box; height: 30px!important;"
214 >Новый корабль</a> 222 >Новый корабль</a>
215 @if ($flots->count()) 223 @if ($flots->count())
216 <table class="w-full whitespace-no-wrap"> 224 <table class="w-full whitespace-no-wrap">
217 <thead> 225 <thead>
218 <tr 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"> 226 <tr 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">
219 <th class="px-4 py-3">ID</th> 227 <th class="px-4 py-3">ID</th>
220 <th class="px-4 py-3">Название</th> 228 <th class="px-4 py-3">Название</th>
221 <th class="px-4 py-3">Картинка</th> 229 <th class="px-4 py-3">Картинка</th>
222 <th class="px-4 py-3">Дата регист.</th> 230 <th class="px-4 py-3">Дата регист.</th>
223 <th class="px-4 py-3">Редакт.</th> 231 <th class="px-4 py-3">Редакт.</th>
224 </tr> 232 </tr>
225 </thead> 233 </thead>
226 <tbody class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800"> 234 <tbody class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800">
227 @foreach($flots as $flot) 235 @foreach($flots as $flot)
228 <tr class="text-gray-700 dark:text-gray-400"> 236 <tr class="text-gray-700 dark:text-gray-400">
229 <td class="px-4 py-3 text-xs"> 237 <td class="px-4 py-3 text-xs">
230 {{ $flot->id }} 238 {{ $flot->id }}
231 </td> 239 </td>
232 <td class="px-4 py-3 text-xs"> 240 <td class="px-4 py-3 text-xs">
233 {{ $flot->name }} 241 {{ $flot->name }}
234 </td> 242 </td>
235 <td class="px-4 py-3 text-xs"> 243 <td class="px-4 py-3 text-xs">
236 @if (isset($flot->image)) 244 @if (isset($flot->image))
237 <div class="flex items-center text-sm"> 245 <div class="flex items-center text-sm">
238 <div class="relative hidden w-8 h-8 mr-3 rounded-full md:block"> 246 <div class="relative hidden w-8 h-8 mr-3 rounded-full md:block">
239 <img 247 <img
240 class="object-cover w-full h-full rounded-full" 248 class="object-cover w-full h-full rounded-full"
241 src="{{ asset(Storage::url($flot->image)) }}" 249 src="{{ asset(Storage::url($flot->image)) }}"
242 alt="{{ $flot->name }}" 250 alt="{{ $flot->name }}"
243 loading="lazy" 251 loading="lazy"
244 /> 252 />
245 <div 253 <div
246 class="absolute inset-0 rounded-full shadow-inner" 254 class="absolute inset-0 rounded-full shadow-inner"
247 aria-hidden="true" 255 aria-hidden="true"
248 ></div> 256 ></div>
249 </div> 257 </div>
250 </div> 258 </div>
251 @else 259 @else
252 - 260 -
253 @endif 261 @endif
254 </td> 262 </td>
255 <td class="px-4 py-3 text-xs"> 263 <td class="px-4 py-3 text-xs">
256 {{ $flot->created_at }} 264 {{ $flot->created_at }}
257 </td> 265 </td>
258 <td class="px-4 py-3 text-xs"> 266 <td class="px-4 py-3 text-xs">
259 <div class="flex items-center text-sm"> 267 <div class="flex items-center text-sm">
260 <div> 268 <div>
261 <a href="{{ route('admin.flot', ['flot' => $flot->id, 'employer' => $flot->employer_id]) }}" class="text-xs text-gray-600 dark:text-gray-400"> 269 <a href="{{ route('admin.flot', ['flot' => $flot->id, 'employer' => $flot->employer_id]) }}" class="text-xs text-gray-600 dark:text-gray-400">
262 Редактировать 270 Редактировать
263 </a> | 271 </a> |
264 <a href="{{ route('admin.flot_delete', ['flot' => $flot->id, 'employer_id' => $flot->employer_id]) }}" class="text-xs text-gray-600 dark:text-gray-400"> 272 <a href="{{ route('admin.flot_delete', ['flot' => $flot->id, 'employer_id' => $flot->employer_id]) }}" class="text-xs text-gray-600 dark:text-gray-400">
265 Удалить 273 Удалить
266 </a> 274 </a>
267 </div> 275 </div>
268 </div> 276 </div>
269 </td> 277 </td>
270 </tr> 278 </tr>
271 @endforeach 279 @endforeach
272 </tbody> 280 </tbody>
273 </table> 281 </table>
274 @else 282 @else
275 <h2>Нет данных</h2> 283 <h2>Нет данных</h2>
276 @endif 284 @endif
277 </label> 285 </label>
278 </div> 286 </div>
279 </div> 287 </div>
280 <br> 288 <br>
281 <div class="flex flex-col flex-wrap mb-4 space-y-4 md:flex-row md:items-end md:space-x-4"> 289 <div class="flex flex-col flex-wrap mb-4 space-y-4 md:flex-row md:items-end md:space-x-4">
282 <div> 290 <div>
283 <button type="submit" 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"> 291 <button type="submit" 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">
284 Сохранить 292 Сохранить
285 </button> 293 </button>
286 <a href="{{ route('admin.employers') }}" 294 <a href="{{ route('admin.employers') }}"
287 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" 295 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"
288 style="display: -webkit-inline-box; height: 30px!important;" 296 style="display: -webkit-inline-box; height: 30px!important;"
289 >Назад</a> 297 >Назад</a>
290 298
291 </div> 299 </div>
292 </div> 300 </div>
293 </div> 301 </div>
294 </form> 302 </form>
295 @endsection 303 @endsection
296 304
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']?>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="text-gray-700 dark:text-gray-400"> 119 <div class="text-gray-700 dark:text-gray-400">
120 <p class="px-4 py-3">Количество: {{ $all_current }}</p> 120 <p class="px-4 py-3">Количество: {{ $all_current }}</p>
121 </div> 121 </div>
122 122
123 <div class="w-full overflow-hidden rounded-lg shadow-xs" id="ajax_block"> 123 <div class="w-full overflow-hidden rounded-lg shadow-xs" id="ajax_block">
124 <div class="w-full overflow-x-auto"> 124 <div class="w-full overflow-x-auto">
125 <table class="w-full whitespace-no-wrap"> 125 <table class="w-full whitespace-no-wrap">
126 <thead> 126 <thead>
127 <tr 127 <tr
128 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" 128 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"
129 > 129 >
130 <th class="px-4 py-3">№</th> 130 <th class="px-4 py-3">№</th>
131 <th class="px-4 py-3">ID</th> 131 <th class="px-4 py-3">ID</th>
132 <th class="px-4 py-3">Лого</th> 132 <th class="px-4 py-3">Лого</th>
133 <th class="px-4 py-3">Компания/Email/Тел/Пароль</th> 133 <th class="px-4 py-3">Компания/Email/Тел/Пароль</th>
134 <th class="px-4 py-3">Категория</th> 134 <th class="px-4 py-3">Категория</th>
135 <th class="px-4 py-3">Коммент.</th> 135 <th class="px-4 py-3">Коммент.</th>
136 <th class="px-4 py-3">Дата регист.</th> 136 <th class="px-4 py-3">Дата регист.</th>
137 <th class="px-4 py-3">Редакт.</th> 137 <th class="px-4 py-3">Редакт.</th>
138 </tr> 138 </tr>
139 </thead> 139 </thead>
140 <tbody class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800"> 140 <tbody class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800">
141 @foreach($users as $user) 141 @foreach($users as $user)
142 <tr class="text-gray-700 dark:text-gray-400"> 142 <tr class="text-gray-700 dark:text-gray-400">
143 <td class="px-4 py-3 text-xs"> 143 <td class="px-4 py-3 text-xs">
144 {{$user->id}} 144 {{$user->id}}
145 </td> 145 </td>
146 <td class="px-4 py-3 text-xs"> 146 <td class="px-4 py-3 text-xs">
147 @if (isset($user->code_id)) 147 @if (isset($user->code_id))
148 {{$user->code_id}} 148 {{$user->code_id}}
149 @endif 149 @endif
150 </td> 150 </td>
151 <td class="px-4 py-3 text-xs"> 151 <td class="px-4 py-3 text-xs">
152 @if (isset($user->emp_logo) && ($user->emp_logo)) 152 @if (isset($user->emp_logo) && ($user->emp_logo))
153 <div class="flex items-center text-sm"> 153 <div class="flex items-center text-sm">
154 <div 154 <div
155 class="relative hidden w-8 h-8 mr-3 rounded-full md:block" 155 class="relative hidden w-8 h-8 mr-3 rounded-full md:block"
156 > 156 >
157 <img 157 <img
158 class="object-cover w-full h-full rounded-full" 158 class="object-cover w-full h-full rounded-full"
159 src="{{ asset(Storage::url($user->emp_logo)) }}" 159 src="{{ asset(Storage::url($user->emp_logo)) }}"
160 alt="" 160 alt=""
161 loading="lazy" 161 loading="lazy"
162 /> 162 />
163 <div 163 <div
164 class="absolute inset-0 rounded-full shadow-inner" 164 class="absolute inset-0 rounded-full shadow-inner"
165 aria-hidden="true" 165 aria-hidden="true"
166 ></div> 166 ></div>
167 </div> 167 </div>
168 </div> 168 </div>
169 @else 169 @else
170 - 170 -
171 @endif 171 @endif
172 </td> 172 </td>
173 173
174 <td class="px-4 py-3 text-xs"> 174 <td class="px-4 py-3 text-xs">
175 <div class="flex items-center text-sm"> 175 <div class="flex items-center text-sm">
176 <div> 176 <div>
177 @if (isset($user->name_company)) 177 @if (isset($user->name_company))
178 <p class="font-semibold">{{$user->name_company}}</p> 178 <p class="font-semibold">{{$user->name_company}}</p>
179 @endif 179 @endif
180 <p class="font-semibold">{{$user->name}}</p> 180 <p class="font-semibold">{{$user->name}}</p>
181 <p class="font-semibold">{{ empty($user->employers->email) ? $user->email : $user->employers->email }}</p> 181 {{-- <p class="font-semibold">{{ empty($user->employers->email) ? $user->email : $user->employers->email }}</p>--}}
182 <p class="font-semibold">{{ $user->email }}</p>
182 <p class="text-xs text-gray-600 dark:text-gray-400"> 183 <p class="text-xs text-gray-600 dark:text-gray-400">
183 {{ empty($user->employers->telephone) ? $user->telephone : $user->employers->telephone }} 184 {{ empty($user->employers->telephone) ? $user->telephone : $user->employers->telephone }}
184 </p> 185 </p>
185 <p class="text-xs text-gray-600 dark:text-gray-400"> 186 <p class="text-xs text-gray-600 dark:text-gray-400">
186 @if (!empty($user->pubpassword)) 187 @if (!empty($user->pubpassword))
187 {{ base64_decode($user->pubpassword) }} 188 {{ base64_decode($user->pubpassword) }}
188 @endif 189 @endif
189 </p> 190 </p>
190 </div> 191 </div>
191 </div> 192 </div>
192 193
193 </td> 194 </td>
194 <td class="px-4 py-3 text-xs"> 195 <td class="px-4 py-3 text-xs">
195 {{ $user->category }} 196 {{ $user->category }}
196 </td> 197 </td>
197 <td class="px-4 py-3 text-xs"> 198 <td class="px-4 py-3 text-xs">
198 @if (!empty($user->comment_admin)) 199 @if (!empty($user->comment_admin))
199 200
200 <a style="text-decoration: underline;" href="{{ route('admin.comment-employer', ['employer' => $user->emp_id]) }}">Есть</a> 201 <a style="text-decoration: underline;" href="{{ route('admin.comment-employer', ['employer' => $user->emp_id]) }}">Есть</a>
201 @else 202 @else
202 Нет 203 Нет
203 @endif 204 @endif
204 </td> 205 </td>
205 <td class="px-4 py-3 text-xs"> 206 <td class="px-4 py-3 text-xs">
206 {{ date('d.m.Y', strtotime($user->created_at)) }} 207 {{ date('d.m.Y', strtotime($user->created_at)) }}
207 </td> 208 </td>
208 <td class="px-4 py-3 text-xs"> 209 <td class="px-4 py-3 text-xs">
209 @if (!empty($user->emp_id)) 210 @if (!empty($user->emp_id))
210 <a href="{{ route('admin.employer-profile', ['employer' => $user->emp_id]) }}">Изменить</a> 211 <a href="{{ route('admin.employer-profile', ['employer' => $user->emp_id]) }}">Изменить</a>
211 @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> 212 @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>
212 @endif 213 @endif
213 @endif 214 @endif
214 </td> 215 </td>
215 <!--<td class="px-4 py-3 text-sm"> 216 <!--<td class="px-4 py-3 text-sm">
216 @if ($user->usr_id > 1) 217 @if ($user->usr_id > 1)
217 <input type="checkbox" class="checkban" value="{{$user->usr_id}}" name="ban_{{$user->usr_id}}" {{ ($user->is_ban) ? "checked" : "" }}/> 218 <input type="checkbox" class="checkban" value="{{$user->usr_id}}" name="ban_{{$user->usr_id}}" {{ ($user->is_ban) ? "checked" : "" }}/>
218 @endif 219 @endif
219 </td>--> 220 </td>-->
220 </tr> 221 </tr>
221 @endforeach 222 @endforeach
222 </tbody> 223 </tbody>
223 </table> 224 </table>
224 </div> 225 </div>
225 226
226 <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"> 227 <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">
227 <?=$users->appends($_GET)->links('admin.pagginate'); ?> 228 <?=$users->appends($_GET)->links('admin.pagginate'); ?>
228 </div> 229 </div>
229 </div> 230 </div>
230 @endsection 231 @endsection
231 232