{{ Form::open(['url' => route('admin.users'),'method' => 'get']) }}
{{ Form::select('status', ['' => 'All',1 => 'Active', 0 => 'Inactive'], app('request')->query('status'), ['class' => 'form-control']) }}
{{ Form::text('keyword', app('request')->query('keyword'), ['class' => 'form-control','placeholder' => 'Keyword e.g: name, email']) }}
{{ Form::close() }}
# |
@php
$sorting['sort'] = "name";
$sorting['direction'] = request()->direction == 'asc' ? 'desc' : 'asc';
@endphp
First Name |
Photo |
@php
$sorting['sort'] = "email";
$sorting['direction'] = request()->direction == 'asc' ? 'desc' : 'asc';
@endphp
Email |
@php
$sorting['sort'] = "status";
$sorting['direction'] = request()->direction == 'asc' ? 'desc' : 'asc';
@endphp
Status |
@php
$sorting['sort'] = "is_verified";
$sorting['direction'] = request()->direction == 'asc' ? 'desc' : 'asc';
@endphp
Verified |
@php
$sorting['sort'] = "created_at";
$sorting['direction'] = request()->direction == 'asc' ? 'desc' : 'asc';
@endphp
Created |
Action |
@if($users->count() > 0)
@php
$i = (($users->currentPage() - 1) * ($users->perPage()) + 1)
@endphp
@foreach($users as $user)
{{$i}}. |
{{$user->name}} |
@php
$filepath = '/uploads/users/';
@endphp
@if(!empty($user->photo) && file_exists(public_path() . $filepath . $user->photo))
|