<?php $__env->startSection('content'); ?>

<div class="col-md-12 content-header" >

    <h1><i class="fa fa-user"></i> <?php echo e(trans('application.system_users')); ?></h1>

</div>

<section class="content">

<div class="row">

    <div class="col-md-12">

        <div class="box">

            <div class="box-header with-border">
                <h3 class="box-title pull-right">
                    <div class="box-tools ">
                        <a href="<?php echo e(route('users.create')); ?>" class="btn btn-primary btn-sm pull-right" data-toggle="ajax-modal"> <i class="fa fa-user-plus"></i><?php echo e(trans('application.new_user')); ?></a>
                    </div>
                </h3>
            </div>

            <div class="box-body">

                    <table class="table table-bordered table-striped table-hover datatable">

                        <thead>

                        <tr>

                            <th></th>

                            <th><?php echo e(trans('application.photo')); ?> </th>

                            <th><?php echo e(trans('application.name')); ?> </th>

                            <th><?php echo e(trans('application.username')); ?> </th>

                            <th><?php echo e(trans('application.email')); ?> </th>

                            <th><?php echo e(trans('application.phone')); ?> </th>

                            <th><?php echo e(trans('application.action')); ?> </th>

                        </tr>

                        </thead>

                        <tbody>

                        <?php foreach($users as $user): ?>

                        <tr>

                            <td></td>

                            <td><img src="<?php echo e(asset($user->photo != '' ? 'assets/img/uploads/'.$user->photo : 'assets/img/uploads/no-image.jpg' )); ?>" class="listthumb img-circle" width="60px"/></td>

                            <td><?php echo e($user->name); ?> </td>

                            <td><?php echo e($user->username); ?> </td>

                            <td><?php echo e($user->email); ?> </td>

                            <td><?php echo e($user->phone); ?> </td>

                            <td>

                                <?php echo edit_btn('users.edit', $user->uuid); ?>

                                <?php if(Auth::user()->uuid != $user->uuid): ?>

                                <?php echo delete_btn('users.destroy', $user->uuid); ?>

                                <?php endif; ?>

                            </td>

                        </tr>

                        <?php endforeach; ?>

                        </tbody>

                    </table>

            </div>

        </div>

        <!-- End  Hover Rows  -->

    </div>

</div>

</section>

<?php $__env->stopSection(); ?>


<?php echo $__env->make('app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>