<?php $__env->startSection('title','Login history — '.$u->name); ?>
<?php $__env->startSection('crumbs','<a href="'.route('users.index').'">Users</a> · <b>Login history</b>'); ?>
<?php $__env->startSection('content'); ?>
<div class="card"><div class="card-h"><h2>🔐 Login history — <?php echo e($u->name); ?> <small class="muted"><?php echo e($u->username); ?></small></h2>
<div class="sp"><span class="muted">Failed (30d): <b><?php echo e($fails30); ?></b></span></div></div>
<div class="card-b"><div class="twrap"><table class="tbl">
<thead><tr><th>When</th><th>Result</th><th>Identifier</th><th>IP</th><th>Client</th></tr></thead>
<tbody>
<?php $__empty_1 = true; $__currentLoopData = $rows; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $h): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
<tr><td style="white-space:nowrap"><?php echo e($h->created_at->format('d M Y H:i')); ?></td>
<td><?php if($h->success): ?><span class="bdg b-ok">success</span><?php else: ?><span class="bdg b-bad">failed</span><?php endif; ?></td>
<td><?php echo e($h->login); ?></td><td><?php echo e($h->ip ?? '—'); ?></td><td><small class="muted"><?php echo e(Str::limit($h->user_agent ?? '', 60)); ?></small></td></tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
<tr><td colspan="5" class="muted">No login attempts recorded yet.</td></tr>
<?php endif; ?>
</tbody></table></div>
<?php if($rows->hasPages()): ?><div style="margin-top:10px"><?php echo e($rows->links()); ?></div><?php endif; ?>
</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/user/nowills-sqc-erp/resources/views/users/logins.blade.php ENDPATH**/ ?>