<?php $__env->startSection('title'); ?>Manage User
<?php $__env->stopSection(); ?>
<?php $__env->startPush('css'); ?>
    <style>
        span.st_active {
            color: green;
        }
    </style>
<?php $__env->stopPush(); ?>
<!-- page content -->
<?php $__env->startSection('content'); ?>
    <div class="right_col" role="main">
        <div class="">
            <div class="clearfix"></div>
            <?php if(Session::has('success_message')): ?>
                <div class="alert alert-success">
                    <?php echo e(Session::get('success_message')); ?>

                </div>
            <?php endif; ?>
            <?php if(Session::has('error_message')): ?>
                <div class="alert alert-danger">
                    <?php echo e(Session::get('error_message')); ?>

                </div>
            <?php endif; ?>
            <div class="row">
                <div class="col-md-12 col-sm-12 col-xs-12">
                    <div class="x_panel">
                        <div class="x_title">
                            <h2>Manage User
                                <a href="<?php echo e(route('user.register')); ?>" class="btn btn-xs btn-primary">New User</a>
                            </h2>
                            <ul class="nav navbar-right panel_toolbox">
                                <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                                </li>
                                <li class="dropdown">
                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
                                    <ul class="dropdown-menu" role="menu">
                                        <li><a href="#">Settings 1</a>
                                        </li>
                                        <li><a href="#">Settings 2</a>
                                        </li>
                                    </ul>
                                </li>
                                <li><a class="close-link"><i class="fa fa-close"></i></a>
                                </li>
                            </ul>
                            <div class="clearfix"></div>
                        </div>
                        <div class="x_content table-responsive">
                            <table class="table table-bordered table-condensed">
                                <thead>
									<tr>
										<th>SL</th>
										<th>Name</th>
                                        <th>Roles</th>
                                        <th>Date:Times</th>
										<th>IP</th>
										<th>Url</th>
										<th>Browser</th>
									</tr>
								</thead>
								<tbody>
									<?php $__currentLoopData = $logs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$log): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
										<tr>
											<td><?php echo e($key + 1); ?></td>
											<td >
                                                <a href="<?php echo e(route('admin.users.user_activities',$log->user_id)); ?>"><?php echo e($log->user->name); ?></a>
                                            </td>
                                            <td><?php echo e($log->ro->role->name); ?></td>
                                            <td><?php echo e($log->created_at->diffForHumans()); ?></td>
											<td><?php echo e($log->ip); ?></td>
											<td><?php echo e($log->url); ?></td>
											<td><?php echo e($log->agent,50); ?></td>
										</tr>
									<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
								</tbody>
                            </table>
                            <div class="text-center">
                                <?php echo e($logs->links()); ?>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- /page content -->
<?php $__env->stopSection(); ?>

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

<?php $__env->stopSection(); ?>
<?php echo $__env->make('backend.layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>