@extends('layouts.main') @section('content') @php //fetch users with pagination if (!empty($_GET['search'])) { $neenoe = request()->query('search'); //where('title','like','%'.$search.'%') $users = DB::table('users')->where('status','free_agent')->where('name','like','%'.$neenoe.'%')->orWhere('email','like','%'.$neenoe.'%')->orWhere('phone','like','%'.$neenoe.'%')->paginate(10); }else { $users = DB::table('users')->where('status','free_agent')->paginate(10); } @endphp
List of All Free Agent Users
@csrf
List of All Free Agent Users
@if ($users->count() > 0) @foreach ($users as $user) @endforeach @else @endif
Join Time Full Name Username Email Phone Balance Action
{{ \Carbon\Carbon::parse($user->created_at)->diffForHumans() }} {{ $user->name }} {{ $user->username }} {{ $user->email }} {{ $user->phone }} KES.{{ $user->balance }}

No user Found

@endsection