@extends('layouts.admin') @section('title', 'Chi tiết IP {{ $ipDetails->ip_address }} - MU Admin Panel') @section('styles') @endsection @section('content')
@if(session('success'))
✅ {{ session('success') }}
@endif @if($errors->any())
❌ {{ $errors->first() }}
@endif @if($isBanned)

🚫 IP này đã bị cấm

IP address này hiện đang bị cấm truy cập hệ thống

@endif
🔢
{{ number_format($ipDetails->total_logins) }}
Tổng lượt truy cập
👥
{{ number_format($ipDetails->unique_users) }}
Người dùng unique
📅
{{ date('d/m/Y', strtotime($ipDetails->first_seen)) }}
Lần đầu thấy
{{ date('d/m/Y H:i', strtotime($ipDetails->last_seen)) }}
Lần cuối thấy

👥 Người dùng từ IP này ({{ count($users) }})

@if(count($users) > 0)
@foreach($users as $user)
@endforeach
@else
Chưa có người dùng nào
@endif

📋 Hoạt động gần đây ({{ count($activities) }})

@if(count($activities) > 0)
@foreach($activities as $activity)
{{ $activity->username }} {{ date('d/m/Y H:i:s', strtotime($activity->created_at)) }}
{{ ucfirst($activity->action) }} @if($activity->character_name) - {{ $activity->character_name }} @endif @switch($activity->status) @case('success') Thành công @break @case('failed') Thất bại @break @case('blocked') Bị chặn @break @default {{ $activity->status }} @endswitch
@endforeach
@else
Chưa có hoạt động nào
@endif
@if(!$isBanned)

🚫 Cấm IP Address

@csrf
Để trống nếu muốn cấm vĩnh viễn
@endif
@endsection