@extends('layouts.admin') @section('title', 'Quản lý IP - MU Admin Panel') @section('styles') @endsection @section('content') @if(session('success'))
✅ {{ session('success') }}
@endif
🌐
{{ number_format($stats['total_ips']) }}
Tổng IP unique
📅
{{ number_format($stats['unique_today']) }}
IP unique hôm nay
🚫
{{ number_format($stats['banned_ips']) }}
IP bị cấm
⚠️
{{ number_format($stats['suspicious_ips']) }}
IP đáng nghi

🔥 Top IP hoạt động nhiều nhất

@if(count($topIps) > 0) @foreach($topIps as $ip)
{{ $ip->ip_address }}
{{ $ip->user_count }} người dùng
{{ number_format($ip->login_count) }} lượt đăng nhập
@endforeach @else
Chưa có dữ liệu
@endif

📋 Lịch sử truy cập IP ({{ $ipLogs->total() }} records)

@if($ipLogs->count() > 0)
@foreach($ipLogs as $log) @endforeach
IP Address Tài khoản Nhân vật Hành động Trạng thái Thời gian Hành động
{{ $log->ip_address }} {{ $log->username }} @if($log->email)
{{ $log->email }} @endif
{{ $log->character_name ?: 'N/A' }} {{ ucfirst($log->action) }} @switch($log->status) @case('success') Thành công @break @case('failed') Thất bại @break @case('blocked') Bị chặn @break @default {{ $log->status }} @endswitch {{ date('d/m/Y H:i:s', strtotime($log->created_at)) }}
{{ $ipLogs->appends(request()->query())->links('pagination.custom') }} @else

🌐 Chưa có log IP nào

Logs sẽ hiển thị khi có người dùng truy cập hệ thống

@endif
@endsection