| Path : /var/www/html/backup/jewelry-pos/storage/framework/views/ |
|
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
| Current File : /var/www/html/backup/jewelry-pos/storage/framework/views/4c99aa289c976679f1127c1f72042324.php |
<?php $__env->startSection('content'); ?>
<div class="col-lg-12">
<div class="card-body shadow-1">
<div class="row">
<div class="col-lg-12 margin-tb">
<div class="pull-right mb-2" style="display: flex;justify-content:space-between;text-align: right;">
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('login-informations-list')): ?>
<a class="btn btn-sm btn-success" href="<?php echo e(route('login-informations.index')); ?>?user_id=<?php echo e(Auth::user()->id); ?>">
<i class="fal fa-info-circle"></i> <?php echo e(__('message.current login')); ?>
</a>
<?php endif; ?>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('user-create')): ?>
<a class="btn btn-sm btn-primary" href="<?php echo e(route('users.create')); ?>">
<i class="fal fa-plus"></i> <?php echo e(__('message.add new')); ?>
</a>
<?php endif; ?>
</div>
</div>
</div>
<div class="panel-container show">
<div class="d-flex flex-column h-100">
<div class="h-auto">
<table id="example" class="table table-bordered table-hover table-striped w-100">
<thead class="bg-fusion-400">
<tr>
<th>#</th>
<th><?php echo e(__('message.name')); ?></th>
<th><?php echo e(__('message.position')); ?></th>
<th><?php echo e(__('message.role')); ?></th>
<th><?php echo e(__('message.phone')); ?></th>
<th><?php echo e(__('message.gender')); ?></th>
<th><?php echo e(__('message.status')); ?></th>
<th><?php echo e(__('message.created date')); ?></th>
<th><?php echo e(__('message.action')); ?></th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr <?php if(!$user->is_active): ?> class="inactive" <?php endif; ?>>
<td><?php echo e($key+1); ?></td>
<td>
<a href="<?php echo e(route('users.show' , $user->id)); ?>" style="color: black" title="<?php echo e(__('message.show user')); ?>">
<?php echo e($user->name); ?>
</a>
</td>
<td><?php echo e($user->position); ?></td>
<td>
<?php if(!empty($user->getRoleNames())): ?>
<?php $__currentLoopData = $user->getRoleNames(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $v): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<label class="badge badge-success bg-success-700"><?php echo e($v); ?></label>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</td>
<td class="text-info">
<span <?php if(!$user->is_active): ?> style="color: red" <?php endif; ?>>
<?php echo e($user->phone); ?>
</span>
</td>
<td><?php echo e($user->gender); ?></td>
<td>
<?php if($user->is_active): ?>
<span class="badge badge-pill badge-success">Active</span>
<?php else: ?>
<span class="badge badge-pill badge-danger">Inactive</span>
<?php endif; ?>
</td>
<td><?php echo e($user->created_at->format('d/m/Y H:i')); ?>
<td>
<?php if($user->is_active): ?>
<a href="<?php echo e(route('user.inactive', $user->id)); ?>"
class="btn btn-sm btn-danger"
title="Inactive Now"><?php echo e(__('message.deactivate')); ?></a>
<?php else: ?>
<a href="<?php echo e(route('user.active', $user->id)); ?>"
class="btn btn-sm btn-success" title="Active Now">
<?php echo e(__('message.activate')); ?>
</a>
<?php endif; ?>
<?php if($user->is_active): ?>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('user-edit')): ?>
<a class="btn btn-sm btn-primary UserchangePass_modal text-light"
data-toggle="modal" data-target="#UserchangePass_modal" data-user-id="<?php echo e($user->id); ?>">
<i class="fal fa-lock" title="<?php echo e(__('message.change password')); ?>"></i>
<span><?php echo e(__('message.change password')); ?></span>
</a>
<a class="btn btn-sm btn-info"
href="<?php echo e(route('users.edit', $user->id)); ?>"><i class="fal fa-pen"
title="<?php echo e(__('message.edit')); ?>"></i>
</a>
<?php endif; ?>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('login-informations-list')): ?>
<a class="btn btn-sm btn-success"
href="<?php echo e(route('login-informations.index')); ?>?user_id=<?php echo e($user->id); ?>"><i class="fal fa-info-circle"
title="<?php echo e(__('message.login information')); ?>"></i>
</a>
<?php endif; ?>
<?php endif; ?>
<!-- <form method="POST" action="users/<?php echo e($user->id); ?>" style="display:inline">
<input name="_method" type="hidden" value="DELETE">
<?php echo e(csrf_field()); ?>
<button type="submit" class="btn btn-sm btn-danger" onclick="return confirm('<?php echo e(__('message.do you want to delete')); ?>?')">
<i class="fal fa-trash" style="color: #FFF;"></i>
</button>
</form> -->
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
<!-- userstable end -->
</div>
</div>
</div>
</div>
<div class="py-4 mt-4 mx-2 ">
<!-- Pagination bootstrap-->
<?php echo e($users->appends($_GET)->links()); ?>
</div>
</div>
<?php echo $__env->make('app.user-modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('app.edit-profile-modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
<script>
// nav
$(document).ready(function() {
$("#js-nav-menu").removeClass('active');
$("#js-nav-menu li ul li").removeClass('active');
$("#menu_user_list").addClass('active open');
$("#collapse_user").addClass('collapse in')
$("#menu_user").addClass('active')
})
$('.UserchangePass_modal').click(function(){
var user_id = $(this).data('user-id')
$('.frm-change-password').attr('action','<?php echo e(route('user.updatePassword')); ?>/'+user_id)
});
</script>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('meta'); ?>
<title><?php echo e(__('message.user list')); ?> - <?php echo e($settings_->shop_name); ?></title>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin-main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/jewelry-pos/resources/views/users/index.blade.php ENDPATH**/ ?>