<section>
    <header>
        <h2 class="text-lg font-medium text-gray-900">
            <?php echo e(__('Login History')); ?>

        </h2>

        <p class="mt-1 text-sm text-gray-600">
            <?php echo e(__('View your recent login activity. Review this list to ensure no unauthorized access.')); ?>

        </p>
    </header>

    <div class="mt-6">
        <?php if($loginHistory->count() > 0): ?>
            <div class="overflow-x-auto">
                <table class="min-w-full divide-y divide-gray-200">
                    <thead class="bg-gray-50">
                        <tr>
                            <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date & Time</th>
                            <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">IP Address</th>
                            <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Device / Browser</th>
                        </tr>
                    </thead>
                    <tbody class="bg-white divide-y divide-gray-200">
                        <?php $__currentLoopData = $loginHistory; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $login): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr class="hover:bg-gray-50">
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">
                                    <?php echo e($login->logged_in_at->format('M j, Y g:i A')); ?>

                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-mono text-gray-600">
                                    <?php echo e($login->ip_address); ?>

                                </td>
                                <td class="px-6 py-4 text-sm text-gray-600">
                                    <div class="max-w-xs truncate" title="<?php echo e($login->user_agent); ?>">
                                        <?php echo e($login->user_agent ? Str::limit($login->user_agent, 60) : 'Unknown'); ?>

                                    </div>
                                </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
            </div>

            <?php if($loginHistory->count() > 10): ?>
                <div class="mt-4 text-center">
                    <p class="text-sm text-gray-500">Showing <?php echo e(count($loginHistory)); ?> most recent logins</p>
                </div>
            <?php endif; ?>
        <?php else: ?>
            <p class="text-gray-500 text-sm"><?php echo e(__('No login history available.')); ?></p>
        <?php endif; ?>
    </div>
</section>
<?php /**PATH /var/www/html/resources/views/profile/partials/login-history.blade.php ENDPATH**/ ?>