import AppLayout from '@/Layouts/AppLayout'; import { Head, router } from '@inertiajs/react'; import { motion } from 'framer-motion'; import { Shield, AlertTriangle, CheckCircle, TrendingUp, Scan, Lock, Bug } from 'lucide-react'; import { GlassCard, StatCard } from '@/Components/ui/GlassCard'; import { StatusBadge } from '@/Components/ui/StatusBadge'; import { Button } from '@/Components/ui/Button'; import { ProgressBar } from '@/Components/ui/ProgressBar'; import { DataTable } from '@/Components/ui/DataTable'; import { timeAgo, getSecurityGradeColor } from '@/lib/utils'; import { RadarChart, Radar, PolarGrid, PolarAngleAxis, ResponsiveContainer } from 'recharts'; import { cn } from '@/lib/utils'; const radarData = [ { subject: 'Patching', A: 85 }, { subject: 'Access Ctrl', A: 72 }, { subject: 'Encryption', A: 90 }, { subject: 'Network', A: 65 }, { subject: 'Monitoring', A: 78 }, { subject: 'Compliance', A: 60 }, ]; function ScoreRing({ score, grade }) { const color = grade === 'A' ? '#00ff88' : grade === 'B' ? '#00d4ff' : grade === 'C' ? '#ffd700' : grade === 'D' ? '#ff6b35' : '#ff2d55'; const r = 60, circumference = 2 * Math.PI * r; const dash = (score / 100) * circumference; return (
{score}
/ 100
{row.target_name}
{row.target_type} · {row.scan_type}