|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/easysfm.edukrypt.in/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('content'); ?>
<!-- begin::main content -->
<main class="main-content">
<div class="container">
<!-- begin::page header -->
<div class="page-header">
<h3>Student List</h3>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<?php echo e(asset('dashboard')); ?>">Dashboard</a></li>
<li class="breadcrumb-item active" aria-current="page">Student List</li>
</ol>
</nav>
</div>
<!-- end::page header -->
<div class="card">
<?php
$permission = App\Helpers\PermissionActivity::getPermissionByAdminId(session('loggedIn')['id'], 8);
?>
<div class="card-header">
<form action="" method="GET">
<div class="row">
<div class="col-md-2">
<select class="form-control" name="per_page" id="per_page">
<option value="25">25</option>
<option <?php echo e(isset($_GET['per_page']) && $_GET['per_page']==50?'selected':''); ?> value="50">50</option>
<option <?php echo e(isset($_GET['per_page']) && $_GET['per_page']==100?'selected':''); ?> value="100">100</option>
<option <?php echo e(isset($_GET['per_page']) && $_GET['per_page']==200?'selected':''); ?> value="200">200</option>
</select>
</div>
<div class="col-md-2">
<input placeholder="Date range filter" value="<?php echo e(request()->input('datefilter')); ?>" type="text" name="datefilter" class="form-control">
</div>
<div class="col-md-2">
<input type="text" class="form-control" name="query" placeholder="Search By (name, UniqueID, Email, Phone)" value="<?php echo e(request()->input('query')); ?>">
<span class="text-danger"><?php $__errorArgs = ['query'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?></span>
</div>
<div class="col-md-6">
<button data-toggle="tooltip" data-original-title="Search" type="submit" class="btn m-r-10 btn-primary pull-left"><i class="fa fa-search"></i></button>
<a data-toggle="tooltip" data-original-title="Reset Filters" href="<?php echo e(asset('admin/user-list')); ?>" class="btn m-r-10 btn-warning pull-left text-white"><i class="fa fa-refresh"></i></a>
<a id="deleteAll" data-toggle="tooltip" data-original-title="Multiple Delete" href="javascript:;" class="btn m-r-10 btn-danger pull-left text-white"><i class="fa fa-trash-o"></i></a>
<?php if($permission == 'delete'): ?>
<a data-toggle="tooltip" data-original-title="Import CSV" href="<?php echo e(asset('admin/import-user')); ?>" class="btn m-r-10 btn-primary pull-right text-white" style="margin-left: 5px;"><i class="fa fa-upload"></i></a>
<a data-toggle="tooltip" data-original-title="Add New Student" href="<?php echo e(asset('admin/add-user')); ?>" class="btn m-r-10 btn-primary pull-right text-white"><i class="fa fa-plus"></i></a>
<?php endif; ?>
<a data-toggle="tooltip" data-original-title="Export CSV" href="<?php echo e(asset('admin/export-user')); ?>" class="btn m-r-10 btn-success text-white" style="margin-left: 5px;"><i class="fa fa-download"></i></a>
</div>
</div>
</form>
</div>
<div class="card-body">
<?php if(isset($users)): ?>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>
<input type="checkbox" id="checkAll"/>
</th>
<th>ID</th>
<th>Date</th>
<th>Report</th>
<th>UniqueID</th>
<th>Email</th>
<th>Mobile</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php if(!empty($users)): ?>
<?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td>
<input class="deleteall" type="checkbox" name="delete[]" value="<?php echo e($user->id); ?>"/>
</td>
<td><?php echo e($user->id); ?></td>
<td><?php echo e(date('d-m-Y',strtotime($user->created_at))); ?></td>
<td>
<a target="_blank" href="<?php echo e(asset('admin/report-dashboard/' . $user->user_unique_id)); ?>">
<i class="fa fa-bar-chart-o fa-lg text-google"></i>
</a>
</td>
<td><?php echo e($user->user_unique_id); ?></td>
<td><a href="<?php echo e(asset('admin/order-list?query=' . $user->email)); ?>"><?php echo e($user->email); ?></a>
</td>
<td><?php echo e($user->phone); ?></td>
<td>
<?php if($user->status == 1): ?>
<label for="" class="text-success">Active</label>
<?php endif; ?>
<?php if($user->status == 0): ?>
<label for="" class="text-danger">Inactive</label>
<?php endif; ?>
</td>
<td>
<?php
$permission = App\Helpers\PermissionActivity::getPermissionByAdminId(session('loggedIn')['id'], 8);
?>
<?php if($permission == 'read'): ?>
<a href="<?php echo e(asset('admin/view-product/' . $user->id)); ?>"><i class="fa fa-eye text-primary fa-lg"></i></a>
<?php endif; ?>
<?php if($permission == 'write'): ?>
<a href="<?php echo e(asset('admin/view-product/' . $user->id)); ?>"><i class="fa fa-eye text-primary fa-lg"></i></a>
<a href="<?php echo e(asset('admin/edit-product/' . $user->id)); ?>"><i class="fa fa-edit text-success fa-lg"></i></a>
<?php endif; ?>
<?php if($permission == 'delete'): ?>
<a class="m-l-5" data-toggle="tooltip" data-original-title="Registerd Devices" href="<?php echo e(asset('admin/user-device-list/' . $user->id)); ?>"><i class="fa fa-android text-inverse fa-lg"></i></a>
<a class="m-l-5" data-toggle="tooltip" data-original-title="Change Password" href="<?php echo e(asset('admin/user-password-reset/' . $user->id)); ?>"><i class="fa fa-refresh text-danger fa-lg"></i></a>
<a class="m-l-5" data-toggle="tooltip" data-original-title="Student Info" href="<?php echo e(asset('admin/view-user/' . $user->id)); ?>"><i class="fa fa-eye text-primary fa-lg"></i></a>
<a class="m-l-5" data-toggle="tooltip" data-original-title="Edit Student" href="<?php echo e(asset('admin/edit-user/' . $user->id)); ?>"><i class="fa fa-edit text-success fa-lg"></i></a>
<!--<a data-toggle="tooltip" data-original-title="Delete Student" href="<?php echo e(asset('admin/delete-user/' . $user->id)); ?>" class="delete-confirm m-l-5"><i class="fa fa-trash text-danger fa-lg"></i></a>-->
<?php endif; ?>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php else: ?>
<h1>No Record Found!!</h1>
<?php endif; ?>
</tbody>
</table>
<div class="pagination-block">
<?php if(isset($_GET['query'])): ?>
<?php echo e($users->appends(['query' => $_GET['query'],'per_page' => $_GET['per_page'],'datefilter' => $_GET['datefilter']])->links('admin.includes.paginationlinks')); ?>
<?php else: ?>
<?php echo e($users->links('admin.includes.paginationlinks')); ?>
<?php endif; ?>
<label>Total Record Found- <?php echo count($users); ?></label>
</div>
<?php endif; ?>
</div>
</div>
</div>
</main>
<!-- end::main content -->
<?php $__env->stopSection(); ?>
<?php $__env->startPush('footer-script'); ?>
<!-- begin::dataTable -->
<script src="<?php echo e(asset('public/admin/js/examples/datatable.js')); ?>"></script>
<!-- end::dataTable -->
<script>
$(document).ready(function(){
$("#checkAll").click(function(){
$('input:checkbox').not(this).prop('checked', this.checked);
});
$('#deleteAll').click(function(){
if (confirm("Are you sure you want to delete Users? ")) {
var val = [];
$('.deleteall:checked').each(function(i){
val[i] = $(this).val();
});
if(val.length>0)
{
$.ajax({
method: "POST",
headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
url: "<?php echo e(asset('admin/delete-multiple-users')); ?>",
data:{
"ids": val
}
}).done(function(data) {
if(data){
location.reload();
}else{
alert("Something went wrong!, Try again");
}
});
}
}
//alert(<?php echo e(asset('admin/delete-multiple-users')); ?>);
});
});
</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('admin.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/easysfm.edukrypt.in/resources/views/admin/user/user-list.blade.php ENDPATH**/ ?>