NCORE_Smart_Firewall/resources/views/smart/dashboard.blade.php

241 lines
14 KiB
PHP

<!DOCTYPE html>
<html lang="en" class="bg-slate-900">
<head>
@vite(['resources/css/app.css','resources/js/app.js'])
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NCORE - Dashboard</title>
</head>
<style>
/* Base styles for all devices */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
.container {
width: 100%;
margin: 0 auto;
padding: 20px;
}
.header, .footer {
background-color: #333;
color: white;
text-align: center;
padding: 10px 0;
}
.content {
padding: 20px;
}
/* Responsive styles */
@media (max-width: 1200px) {
.container {
width: 90%;
}
}
@media (max-width: 992px) {
.container {
width: 80%;
}
}
@media (max-width: 768px) {
.container {
width: 100%;
padding: 10px;
}
.header, .footer {
padding: 5px 0;
}
.content {
padding: 10px;
}
}
@media (max-width: 576px) {
.header, .footer {
font-size: 14px;
}
.content {
font-size: 14px;
}
}
</style>
</head>
<button data-drawer-target="default-sidebar" data-drawer-toggle="default-sidebar" aria-controls="default-sidebar" type="button" class="inline-flex items-center p-2 mt-2 ml-3 text-sm text-gray-500 rounded-lg sm:hidden hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600">
<span class="sr-only">Open sidebar</span>
<svg class="w-6 h-6" aria-hidden="true" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path clip-rule="evenodd" fill-rule="evenodd" d="M2 4.75A.75.75 0 012.75 4h14.5a.75.75 0 010 1.5H2.75A.75.75 0 012 4.75zm0 10.5a.75.75 0 01.75-.75h7.5a.75.75 0 010 1.5h-7.5a.75.75 0 01-.75-.75zM2 10a.75.75 0 01.75-.75h14.5a.75.75 0 010 1.5H2.75A.75.75 0 012 10z"></path>
</svg>
</button>
<body class="bg-light text-dark">
<aside id="default-sidebar" class="fixed top-0 left-0 z-50 w-64 h-screen transition-transform -translate-x-full sm:translate-x-0" aria-label="Sidenav">
<div class="overflow-y-auto py-5 px-3 h-full bg-slate-800 text-white border-r border-gray-200 dark:bg-slate-700 dark:border-slate-700">
<div class="flex items-center justify-between mb-6">
<div class="col">
<i class="bi bi-fire flex-shrink-0 w-6 h-6 text-gray-400 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white" style="font-size: 32px;"></i>
<span class="text-2xl font-semibold">NCORE</span>
</div>
<button type="button" data-drawer-toggle="default-sidebar" class="sm:hidden text-gray-400 hover:text-white">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"/>
</svg>
</button>
</div>
<ul class="space-y-2 rounded-lg text-light bg-white">
<li>
<a href="{{route('dashboard')}}" class="flex items-center p-2 text-base font-normal text-gray-900 rounded-lg dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700 group">
<i class="bi bi-house-check-fill flex-shrink-0 w-6 h-6 text-gray-400 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white" style="font-size: 20px;"></i>
<span class="ml-3">Dashboard</span>
</a>
</li>
<li>
<button type="button" class="flex items-center p-2 w-full text-base font-normal text-gray-900 rounded-lg transition duration-75 group hover:bg-slate-100 dark:text-white dark:hover:bg-slate-700" aria-controls="dropdown-pages" data-collapse-toggle="dropdown-pages">
<i class="bi bi-fire flex-shrink-0 w-6 h-6 text-gray-400 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white" style="font-size: 20px;"></i>
<span class="flex-1 ml-3 text-left whitespace-nowrap">Firewall</span>
<svg aria-hidden="true" class="w-6 h-6" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"></path></svg>
</button>
<ul id="dropdown-pages" class="hidden py-2 space-y-2">
<li>
<a href="#" class="flex items-center p-2 pl-11 w-full text-base font-normal text-gray-900 rounded-lg transition duration-75 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700">
<i class="bi bi-ethernet flex-shrink-0 w-6 h-6 text-gray-400 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white" style="font-size: 16px;"></i>
Traffic Rules
</a>
</li>
<li>
<a href="#" class="flex items-center p-2 pl-11 w-full text-base font-normal text-gray-900 rounded-lg transition duration-75 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700">
<i class="bi bi-table flex-shrink-0 w-6 h-6 text-gray-400 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white" style="font-size: 16px;"></i>
Routing Table
</a>
</li>
</ul>
</li>
<li>
<button type="button" class="flex items-center p-2 w-full text-base font-normal text-gray-900 rounded-lg transition duration-75 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700" aria-controls="dropdown-authentication" data-collapse-toggle="dropdown-authentication">
<i class="bi bi-router flex-shrink-0 w-6 h-6 text-gray-400 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white" style="font-size: 20px;"></i>
<span class="flex-1 ml-3 text-left whitespace-nowrap">Protocols</span>
<svg aria-hidden="true" class="w-6 h-6" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"></path></svg>
</button>
<ul id="dropdown-authentication" class="hidden py-2 space-y-2">
<li>
<a href="#" class="flex items-center p-2 pl-11 w-full text-base font-normal text-gray-900 rounded-lg transition duration-75 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700">
<i class="bi bi-building-add flex-shrink-0 w-6 h-6 text-gray-400 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white" style="font-size: 16px;"></i>
GRE
</a>
</li>
<li>
<a href="#" class="flex items-center p-2 pl-11 w-full text-base font-normal text-gray-900 rounded-lg transition duration-75 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700">
<i class="bi bi-building-add flex-shrink-0 w-6 h-6 text-gray-400 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white" style="font-size: 16px;"></i>
VXLAN
</a>
</li>
<li>
<a href="#" class="flex items-center p-2 pl-11 w-full text-base font-normal text-gray-900 rounded-lg transition duration-75 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700">
<i class="bi bi-building-add flex-shrink-0 w-6 h-6 text-gray-400 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white" style="font-size: 16px;"></i>
WireGuard
</a>
</li>
</ul>
</li>
</ul>
<ul class="pt-5 mt-5 space-y-2 rounded-lg text-light bg-white border-t border-gray-200 dark:border-gray-700">
<li>
<button type="button" class="flex items-center p-2 w-full text-base font-normal text-gray-900 rounded-lg transition duration-75 group hover:bg-slate-100 dark:text-white dark:hover:bg-slate-700" aria-controls="dropdown-administration" data-collapse-toggle="dropdown-administration">
<i class="bi bi-server flex-shrink-0 w-6 h-6 text-gray-400 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white" style="font-size: 20px;"></i>
<span class="flex-1 ml-3 text-left whitespace-nowrap">Nodes</span>
<svg aria-hidden="true" class="w-6 h-6" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"></path></svg>
</button>
<ul id="dropdown-administration" class="hidden py-2 space-y-2">
<li>
<a href="{{ route('caller') }}" class="flex items-center p-2 pl-11 w-full text-base font-normal text-gray-900 rounded-lg transition duration-75 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700">
<i class="bi bi-phone-vibrate flex-shrink-0 w-6 h-6 text-gray-400 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white" style="font-size: 16px;"></i>
Smart Call API
</a>
</li>
<li>
<a href="{{ route('caller_log') }}" class="flex items-center p-2 pl-11 w-full text-base font-normal text-gray-900 rounded-lg transition duration-75 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700">
<i class="bi bi-list flex-shrink-0 w-6 h-6 text-gray-400 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white" style="font-size: 16px;"></i>
Logs
</a>
</li>
</ul>
</li>
</ul>
</div>
<div class="hidden absolute bottom-0 left-0 justify-center p-4 space-x-4 w-full lg:flex bg-white dark:bg-gray-800 z-20 border-r border-gray-200 dark:border-gray-700">
<a href="https://repo.ncore-solution.de/Jan_Hill/NCORE_Smart_Firewall" target="_blank" class="text-gray-900 dark:text-white hover:text-gray-900 dark:hover:text-white">
<i class="bi bi-git" style="font-size: 24px;"></i>
Visit Repository
</a>
</div>
</aside>
<main class="p-4 md:ml-64 h-auto pt-20 bg-gradient-to-br from-slate-800 to-slate-900 relative">
<div class="absolute inset-0" style="background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0); background-size: 40px 40px;"></div>
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
<div class="border-4 border bg-white border-gray-300 rounded-xl shadow-lg dark:border-gray-600 h-40 md:h-72 transform hover:scale-105 transition-transform duration-300">
<div class="flex flex-col items-center justify-center p-6 h-full">
<div class="text-center space-y-4">
<h2 class="text-2xl font-bold text-gray-900 dark:text-white">
Total Nodes Online
</h2>
<div class="text-3xl font-extrabold">
<span class="text-green-600">0</span>
<span class="text-gray-500 dark:text-gray-400">/0</span>
</div>
<i class="bi bi-bar-chart-fill text-5xl text-gray-900 dark:text-white mt-4"></i>
</div>
</div>
</div>
<div class="border-4 border bg-white border-gray-300 rounded-xl shadow-lg dark:border-gray-600 h-40 md:h-72 transform hover:scale-105 transition-transform duration-300">
</div>
<div class="border-4 border bg-white border-gray-300 rounded-xl shadow-lg dark:border-gray-600 h-40 md:h-72 transform hover:scale-105 transition-transform duration-300">
</div>
<div class="border-4 border bg-white border-gray-300 rounded-xl shadow-lg dark:border-gray-600 h-40 md:h-72 transform hover:scale-105 transition-transform duration-300">
</div>
</div>
<div
class="border-2 border-dashed rounded-lg border-gray-300 dark:border-gray-600 h-96 mb-4"
></div>
<div class="grid grid-cols-2 gap-4 mb-4">
<div
class="border-2 border-dashed rounded-lg border-gray-300 dark:border-gray-600 h-48 md:h-72"
></div>
<div
class="border-2 border-dashed rounded-lg border-gray-300 dark:border-gray-600 h-48 md:h-72"
></div>
<div
class="border-2 border-dashed rounded-lg border-gray-300 dark:border-gray-600 h-48 md:h-72"
></div>
<div
class="border-2 border-dashed rounded-lg border-gray-300 dark:border-gray-600 h-48 md:h-72"
></div>
</div>
<div
class="border-2 border-dashed rounded-lg border-gray-300 dark:border-gray-600 h-96 mb-4"
></div>
<div class="grid grid-cols-2 gap-4">
<div
class="border-2 border-dashed rounded-lg border-gray-300 dark:border-gray-600 h-48 md:h-72"
></div>
<div
class="border-2 border-dashed rounded-lg border-gray-300 dark:border-gray-600 h-48 md:h-72"
></div>
<div
class="border-2 border-dashed rounded-lg border-gray-300 dark:border-gray-600 h-48 md:h-72"
></div>
<div
class="border-2 border-dashed rounded-lg border-gray-300 dark:border-gray-600 h-48 md:h-72"
></div>
</div>
</main>
</body>
</html>