big smoke
This commit is contained in:
parent
47a07c6174
commit
a90c9aa8cd
|
@ -287,10 +287,13 @@ class UserController extends Controller
|
||||||
"<th style=\"width: 1em;\"><img class=\"w-100\" src=\"http://127.0.0.1:8000/images/icons/pencil.svg\" alt=\"Update\"></th>".
|
"<th style=\"width: 1em;\"><img class=\"w-100\" src=\"http://127.0.0.1:8000/images/icons/pencil.svg\" alt=\"Update\"></th>".
|
||||||
"<th style=\"width: 1em;\"><img class=\"w-100\" src=\"http://127.0.0.1:8000/images/icons/trashcan.svg\" alt=\"Delete\"></th>".
|
"<th style=\"width: 1em;\"><img class=\"w-100\" src=\"http://127.0.0.1:8000/images/icons/trashcan.svg\" alt=\"Delete\"></th>".
|
||||||
"</tr>";
|
"</tr>";
|
||||||
$users = User::query()->where('name_first', 'LIKE',$request->search.'%')
|
$users = User::query()->
|
||||||
|
where('name_first', 'LIKE',$request->search.'%')
|
||||||
->orWhere('name_last','LIKE', $request->search.'%')
|
->orWhere('name_last','LIKE', $request->search.'%')
|
||||||
->orWhere('phone','LIKE', $request->search.'%')
|
->orWhere('phone','LIKE', $request->search.'%')
|
||||||
->orWhere('email','LIKE',$request->search. '%')->get();
|
->orWhere('email','LIKE',$request->search. '%')
|
||||||
|
|
||||||
|
->get();
|
||||||
|
|
||||||
if(count($users) !== 0){
|
if(count($users) !== 0){
|
||||||
foreach ($users as $key => $user){
|
foreach ($users as $key => $user){
|
||||||
|
|
|
@ -61,7 +61,6 @@
|
||||||
</table>
|
</table>
|
||||||
{{ $users->links() }}
|
{{ $users->links() }}
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$('#search').on('keyup', function () {
|
$('#search').on('keyup', function () {
|
||||||
$value = $(this).val();
|
$value = $(this).val();
|
||||||
|
|
Loading…
Reference in New Issue