<div class="panel panel-default"> <div class="panel-heading"> <?php echo app('translator')->getFromJson('View Staff'); ?> </div> <div class="panel-body"> <div class="row advanced-search"> <div class="col-md-5"> <select class="form-control" id="select-column"> <option value=2><?php echo app('translator')->getFromJson('Name'); ?></option> <option value=3><?php echo app('translator')->getFromJson('Username'); ?></option> <option value=4><?php echo app('translator')->getFromJson('Email'); ?></option> <option value=5><?php echo app('translator')->getFromJson('Role'); ?></option> <option value=6><?php echo app('translator')->getFromJson('Status'); ?></option> <option value=7><?php echo app('translator')->getFromJson('Created'); ?></option> </select> </div> <div class="col-md-7"> <input class="form-control" type="text" id="search-by-column" placeholder="<?php echo app('translator')->getFromJson('Search by Column'); ?>"> </div> </div> <div class="table-responsive"> <div class="col-md-12 text-right"> <span class="advanced-search-toggle"><?php echo app('translator')->getFromJson('Advanced Search'); ?></span> </div> <table class="display table table-striped table-bordered table-hover" id="users-table"> <thead> <tr> <th><?php echo app('translator')->getFromJson('ID'); ?></th> <th><?php echo app('translator')->getFromJson('Photo'); ?></th> <th><?php echo app('translator')->getFromJson('Name'); ?></th> <th><?php echo app('translator')->getFromJson('Username'); ?></th> <th><?php echo app('translator')->getFromJson('Email'); ?></th> <th><?php echo app('translator')->getFromJson('Role'); ?></th> <th><?php echo app('translator')->getFromJson('Status'); ?></th> <th><?php echo app('translator')->getFromJson('Created'); ?></th> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('update', App\User::class)): ?> <th><?php echo app('translator')->getFromJson('Edit'); ?></th> <?php endif; ?> </tr> </thead> <tbody> <?php if($users): ?> <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($user->id); ?></td> <td> <?php if($user->photo): ?> <img height="50px" src="<?php echo e(route('imagecache', ['tiny', $user->photo->getOriginal('name')])); ?>" alt="Photo"> <?php else: ?> <img height="50px" src="<?php echo e($default_photo); ?>" alt="Photo"> <?php endif; ?> </td> <td><?php echo e($user->name); ?></td> <td><?php echo e($user->username); ?></td> <td><?php echo e($user->email); ?></td> <td> <?php if($user->role): ?> <?php if($user->role->id == 1): ?> <strong><span class="text-danger"><?php echo e($user->role->name); ?></span></strong> <?php else: ?> <?php echo e($user->role->name); ?> <?php endif; ?> <?php else: ?> <?php echo app('translator')->getFromJson('None'); ?> <?php endif; ?> </td> <td><?php echo e($user->is_active ? __('Active') : __('Inactive')); ?></td> <td><?php echo e($user->created_at ? $user->created_at : '-'); ?></td> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('update', App\User::class)): ?> <td> <?php if($user->id== 1 && Auth::user()->id != 1): ?> - <?php else: ?> <a href="<?php echo e(route('manage.users.edit', $user->id)); ?>"> <span class="glyphicon glyphicon-edit"></span> </a> <?php endif; ?> </td> <?php endif; ?> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </tbody> </table> </div> </div> </div>