Spaces:
Running

adminpanel / index.html
MKazemii's picture
یک پنل ادمین خیلی ساده و راست چین با laravel 11 , blade , tailwind و تم دارک برای من ایجاد کن که در ساید بار آن 4 دکمه داشته باشد به نام های: کاربران، پکیج ها، پرداخت ها، تنظیمات. که تنظیمات به صورت منوی کرکره ای باز و بسته شود و در آن سه دکمه به نام های تنظیمات پرداخت ، تنظیمات درگاه و سطح دسترسی باشد. - Initial Deployment
39211b1 verified
Raw History Blame Contribute Delete
12.9 kB
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>پنل مدیریت</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js" defer></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
/* Custom RTL styles */
[dir="rtl"] .rotate-180 {
transform: rotate(180deg);
}
/* Smooth transitions */
.transition-all {
transition: all 0.3s ease;
}
/* Scrollbar styling */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #1e293b;
}
::-webkit-scrollbar-thumb {
background: #334155;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #475569;
}
</style>
</head>
<body class="bg-gray-900 text-gray-200 font-sans" x-data="{ sidebarOpen: true, settingsOpen: false }">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<aside
class="bg-gray-800 w-64 border-l border-gray-700 flex-shrink-0 transition-all duration-300"
:class="sidebarOpen ? 'mr-0' : '-mr-64'"
>
<div class="flex items-center justify-between p-4 border-b border-gray-700">
<h1 class="text-xl font-bold text-white">پنل مدیریت</h1>
<button
@click="sidebarOpen = false"
class="text-gray-400 hover:text-white focus:outline-none"
>
<i class="fas fa-chevron-right"></i>
</button>
</div>
<nav class="p-4 space-y-2">
<!-- Users -->
<a href="#" class="flex items-center p-3 rounded-lg hover:bg-gray-700 text-white">
<i class="fas fa-users ml-3"></i>
<span>کاربران</span>
</a>
<!-- Packages -->
<a href="#" class="flex items-center p-3 rounded-lg hover:bg-gray-700 text-white">
<i class="fas fa-box-open ml-3"></i>
<span>پکیج ها</span>
</a>
<!-- Payments -->
<a href="#" class="flex items-center p-3 rounded-lg hover:bg-gray-700 text-white">
<i class="fas fa-credit-card ml-3"></i>
<span>پرداخت ها</span>
</a>
<!-- Settings with dropdown -->
<div>
<button
@click="settingsOpen = !settingsOpen"
class="flex items-center justify-between w-full p-3 rounded-lg hover:bg-gray-700 text-white"
>
<div class="flex items-center">
<i class="fas fa-cog ml-3"></i>
<span>تنظیمات</span>
</div>
<i
class="fas fa-chevron-down transition-transform duration-200"
:class="{ 'rotate-180': settingsOpen }"
></i>
</button>
<div
x-show="settingsOpen"
x-collapse
class="mr-8 mt-1 space-y-1"
>
<a href="#" class="block py-2 px-4 rounded hover:bg-gray-700 text-sm text-gray-300">
<i class="fas fa-money-bill-wave ml-2"></i>
تنظیمات پرداخت
</a>
<a href="#" class="block py-2 px-4 rounded hover:bg-gray-700 text-sm text-gray-300">
<i class="fas fa-door-open ml-2"></i>
تنظیمات درگاه
</a>
<a href="#" class="block py-2 px-4 rounded hover:bg-gray-700 text-sm text-gray-300">
<i class="fas fa-user-shield ml-2"></i>
سطح دسترسی
</a>
</div>
</div>
</nav>
<div class="absolute bottom-0 w-64 p-4 border-t border-gray-700">
<div class="flex items-center">
<img src="https://ui-avatars.com/api/?name=مدیر+سیستم&background=4f46e5&color=fff"
alt="Admin"
class="w-10 h-10 rounded-full">
<div class="mr-3">
<p class="text-white">مدیر سیستم</p>
<p class="text-xs text-gray-400">ادمین</p>
</div>
</div>
</div>
</aside>
<!-- Main Content -->
<div class="flex-1 flex flex-col overflow-hidden">
<!-- Header -->
<header class="bg-gray-800 border-b border-gray-700 p-4 flex items-center justify-between">
<button
@click="sidebarOpen = true"
class="text-gray-400 hover:text-white focus:outline-none"
:class="{ 'hidden': sidebarOpen }"
>
<i class="fas fa-bars"></i>
</button>
<div class="flex items-center space-x-4 space-x-reverse">
<button class="text-gray-400 hover:text-white">
<i class="fas fa-bell"></i>
</button>
<button class="text-gray-400 hover:text-white">
<i class="fas fa-sign-out-alt"></i>
</button>
</div>
</header>
<!-- Content -->
<main class="flex-1 overflow-y-auto p-6 bg-gray-900">
<div class="max-w-7xl mx-auto">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold text-white">داشبورد مدیریت</h2>
<div class="text-sm text-gray-400">
<span>امروز: </span>
<span id="current-date"></span>
</div>
</div>
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
<div class="bg-gray-800 rounded-lg p-6 shadow">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400">کاربران فعال</p>
<p class="text-2xl font-bold text-white">1,234</p>
</div>
<div class="bg-blue-500 p-3 rounded-full">
<i class="fas fa-users text-white"></i>
</div>
</div>
</div>
<div class="bg-gray-800 rounded-lg p-6 shadow">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400">پکیج های فعال</p>
<p class="text-2xl font-bold text-white">56</p>
</div>
<div class="bg-green-500 p-3 rounded-full">
<i class="fas fa-box-open text-white"></i>
</div>
</div>
</div>
<div class="bg-gray-800 rounded-lg p-6 shadow">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400">پرداخت امروز</p>
<p class="text-2xl font-bold text-white">12,345,000 تومان</p>
</div>
<div class="bg-purple-500 p-3 rounded-full">
<i class="fas fa-credit-card text-white"></i>
</div>
</div>
</div>
</div>
<!-- Recent Activities -->
<div class="bg-gray-800 rounded-lg shadow overflow-hidden">
<div class="p-6 border-b border-gray-700">
<h3 class="text-lg font-medium text-white">فعالیت های اخیر</h3>
</div>
<div class="divide-y divide-gray-700">
<div class="p-4 hover:bg-gray-700 transition-colors">
<div class="flex items-center">
<div class="bg-blue-500 p-2 rounded-full mr-3">
<i class="fas fa-user-plus text-white text-sm"></i>
</div>
<div>
<p class="text-white">کاربر جدید ثبت نام کرد</p>
<p class="text-sm text-gray-400">5 دقیقه پیش</p>
</div>
</div>
</div>
<div class="p-4 hover:bg-gray-700 transition-colors">
<div class="flex items-center">
<div class="bg-green-500 p-2 rounded-full mr-3">
<i class="fas fa-shopping-cart text-white text-sm"></i>
</div>
<div>
<p class="text-white">پکیج جدید خریداری شد</p>
<p class="text-sm text-gray-400">30 دقیقه پیش</p>
</div>
</div>
</div>
<div class="p-4 hover:bg-gray-700 transition-colors">
<div class="flex items-center">
<div class="bg-yellow-500 p-2 rounded-full mr-3">
<i class="fas fa-exclamation-triangle text-white text-sm"></i>
</div>
<div>
<p class="text-white">پرداخت ناموفق گزارش شد</p>
<p class="text-sm text-gray-400">2 ساعت پیش</p>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<script>
// Display current Persian date
document.addEventListener('DOMContentLoaded', function() {
const options = {
year: 'numeric',
month: 'long',
day: 'numeric',
calendar: 'persian',
numberingSystem: 'arab'
};
const today = new Date().toLocaleDateString('fa-IR', options);
document.getElementById('current-date').textContent = today;
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=MKazemii/adminpanel" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>