<div class="content-wrapper">
    <div class="container-xxl flex-grow-1 container-p-y">
        <div class="row">
            <div class="col">
                <div class="card shadow">
                    <div class="card-header text-uppercase custom-header bg-primary text-bg-info fw-bold">
                        <i class="ti ti-briefcase-2 me-2"></i> Manage Login Activity Log
                    </div>
                    <div class="card-body">
                        <table class="table table-sm datatableView">
                            <thead>
                                <tr>
                                    <th>#</th>
                                    <th>user name</th>
                                    <th>user Email</th>
                                    <th>Location</th>
                                    <th>Country</th>
                                    <th>IP Address</th>
                                    <th>Login Time</th>
                                    <th>Logout Time</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php
                                    $count = 1;
                                    use Carbon\Carbon;
                                ?>
                                <?php $__currentLoopData = $manageLoginActivity; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $logActi): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td><?php echo e($count++); ?></td>
                                        <td><?php echo e($logActi->name); ?></td>
                                        <td><?php echo e($logActi->email); ?></td>
                                        <td><?php echo e($logActi->location); ?></td>
                                        <td><?php echo e($logActi->country); ?></td>
                                        <td><?php echo e($logActi->ipAddress); ?></td>
                                        <td><?php echo e(Carbon::parse($logActi->loginTime)->format('Y-m-d h:i:s A')); ?></td>
                                        <td><?php echo e(Carbon::parse($logActi->logoutTime)->format('Y-m-d h:i:s A')); ?></td>
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="col">
                <div class="card shadow">
                    <div class="card-header text-uppercase custom-header bg-primary text-bg-info fw-bold">
                        <i class="ti ti-briefcase-2 me-2"></i> Manage system Activity Log
                    </div>
                    <div class="card-body">
                        <table class="table table-sm datatableView">
                            <thead>
                                <tr>
                                    <th>#</th>
                                    <th>Date Time</th>
                                    <th>user name</th>
                                    <th>user Email</th>
                                    <th>Location</th>
                                    <th>Country</th>
                                    <th>IP Address</th>
                                    <th>Status</th>
                                    <th>Activity</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php
                                $count = 1;
                            ?>
                            
                            <?php $__currentLoopData = $systemActivityLog; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $logActi): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php
                                    $user = $userData->firstWhere('id', $logActi->userId);
                                    $userName = $user ? $user->name : '-';
                                    $userEmail = $user ? $user->email : '-';
                                ?>
                                <tr>
                                    <td><?php echo e($logActi->created_at->format('d/m/Y h:i:s A')); ?></td>
                                    <td><?php echo e($count++); ?></td>
                                    <td><?php echo e($userName); ?></td>
                                    <td><?php echo e($userEmail); ?></td>
                                    <td><?php echo e($logActi->location); ?></td>
                                    <td><?php echo e($logActi->country); ?></td>
                                    <td><?php echo e($logActi->ipAddress); ?></td>
                                    <td>
                                        <span class="badge <?php echo e($logActi->className); ?>"><?php echo e($logActi->type); ?></span>
                                    </td>
                                    <td><?php echo e($logActi->activity); ?></td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div><?php /**PATH /Users/anlex/Desktop/untitled folder/ngo/resources/views/pages/allpages/settings/manage_activitylog.blade.php ENDPATH**/ ?>