Viewing file: a8500f12f9419e297944f597902da14f2e796e0c.php (3.36 KB) -rwxrwxrwx Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> Agent Login Logs <?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<?php $__env->startComponent('components.breadcrumb'); ?>
<?php $__env->slot('li_1'); ?> Agent <?php $__env->endSlot(); ?>
<?php $__env->slot('title'); ?>Login Logs <?php $__env->endSlot(); ?>
<?php echo $__env->renderComponent(); ?>
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h4 class="mb-3">Agent Login Logs</h4>
<div class="table-responsive">
<table class="table table-bordered table-hover" id="loginLogTable">
<thead>
<tr>
<th>#</th>
<th>Agent ID</th>
<th>Agent Name</th>
<th>Device</th>
<!-- <th>Device Info</th> -->
<th>Type</th>
<th>Date/Time</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $logs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $log): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($i + 1); ?></td>
<td><?php echo e($log->user ? $log->user->agent_id : 'N/A'); ?></td>
<td><?php echo e($log->user ? $log->user->name : 'N/A'); ?></td>
<td><?php echo e($log->device == 1 ? 'Web Application' : 'Tab Application'); ?></td>
<!-- <td><?php echo e($log->device_info); ?></td> -->
<td><?php echo e(ucfirst($log->type)); ?></td>
<td><?php echo e($log->created_at->setTimezone('Asia/Dhaka')->format('Y-m-d H:i:s')); ?></td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php if($logs->isEmpty()): ?>
<tr>
<td colspan="6" class="text-center">No logs found.</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
<?php if(method_exists($logs, 'links')): ?>
<div class="mt-3">
<?php echo e($logs->links()); ?>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<script>
$(document).ready(function () {
$('#loginLogTable').DataTable({
order: [[5, 'desc']],
pageLength: 25
});
});
</script>
<?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/queuepro/resources/views/agent/login_logs.blade.php ENDPATH**/ ?>
|