<?php $__env->startSection('title', 'Activity Log'); ?>
<?php $__env->startSection('page_title', 'Activity Log'); ?>
<?php $__env->startSection('breadcrumbs'); ?>
    <li class="breadcrumb-item"><a href="<?php echo e(route('dashboard')); ?>">Home</a></li>
    <li class="breadcrumb-item active">Activity Log</li>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <div class="card">
        <div class="card-body">
            <div class="table-responsive">
                <table class="table table-hover align-middle">
                    <thead><tr><th>When</th><th>User</th><th>Action</th><th>Subject</th></tr></thead>
                    <tbody>
                        <?php $__empty_1 = true; $__currentLoopData = $activities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $log): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                            <tr>
                                <td class="small"><?php echo e($log->created_at->format('d M Y, H:i')); ?></td>
                                <td><?php echo e($log->causer?->name ?? 'System'); ?></td>
                                <td><span class="badge bg-soft-info text-capitalize"><?php echo e($log->event ?? $log->description); ?></span></td>
                                <td class="small text-muted"><?php echo e(class_basename($log->subject_type)); ?> #<?php echo e($log->subject_id); ?></td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                            <tr><td colspan="4" class="text-center text-muted py-4">No activity recorded yet.</td></tr>
                        <?php endif; ?>
                    </tbody>
                </table>
            </div>
            <?php echo e($activities->links()); ?>

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

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/u385418287/domains/itartificer.com/public_html/sms-erp/resources/views/activity-log/index.blade.php ENDPATH**/ ?>