pharma / index.html
symfony's picture
diğer alt sayfaları da oluşturmalısın. - Initial Deployment
783bc50 verified
Raw History Blame Contribute Delete
29.7 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PharmaTrack - Admin Dashboard</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.sidebar:hover .sidebar-text {
display: block;
}
.sidebar-collapsed .sidebar-text {
display: none;
}
.chart-container {
height: 300px;
}
@media (max-width: 768px) {
.sidebar {
position: absolute;
z-index: 50;
transform: translateX(-100%);
transition: transform 0.3s ease;
}
.sidebar-open {
transform: translateX(0);
}
.sidebar-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
z-index: 40;
}
.sidebar-overlay-open {
display: block;
}
}
</style>
</head>
<body class="bg-gray-100 font-sans">
<!-- Mobile Menu Button -->
<button id="mobileMenuButton" class="md:hidden fixed top-4 left-4 z-50 bg-indigo-600 text-white p-2 rounded-lg shadow-lg">
<i class="fas fa-bars text-xl"></i>
</button>
<!-- Sidebar Overlay -->
<div id="sidebarOverlay" class="sidebar-overlay"></div>
<!-- Sidebar -->
<div id="sidebar" class="sidebar sidebar-collapsed fixed top-0 left-0 h-screen w-16 md:w-64 bg-indigo-800 text-white transition-all duration-300 ease-in-out overflow-hidden shadow-lg z-30">
<div class="flex items-center justify-center md:justify-start p-4 border-b border-indigo-700">
<div class="flex items-center">
<i class="fas fa-pills text-2xl text-white"></i>
<span class="sidebar-text ml-3 text-xl font-bold hidden md:block">PharmaTrack</span>
</div>
</div>
<div class="p-4">
<div class="flex items-center justify-center md:justify-start mb-6">
<img src="https://randomuser.me/api/portraits/men/75.jpg" alt="User" class="w-8 h-8 rounded-full">
<div class="sidebar-text ml-3 hidden md:block">
<p class="font-semibold">Admin User</p>
<p class="text-xs text-indigo-300">admin@pharmatrack.com</p>
</div>
</div>
<nav>
<a href="#" class="flex items-center justify-center md:justify-start p-2 mb-2 rounded-lg bg-indigo-700">
<i class="fas fa-tachometer-alt"></i>
<span class="sidebar-text ml-3 hidden md:block">Dashboard</span>
</a>
<a href="#" class="flex items-center justify-center md:justify-start p-2 mb-2 rounded-lg hover:bg-indigo-700">
<i class="fas fa-clinic-medical"></i>
<span class="sidebar-text ml-3 hidden md:block">Pharmacies</span>
</a>
<a href="#" class="flex items-center justify-center md:justify-start p-2 mb-2 rounded-lg hover:bg-indigo-700">
<i class="fas fa-box-open"></i>
<span class="sidebar-text ml-3 hidden md:block">Products</span>
</a>
<a href="#" class="flex items-center justify-center md:justify-start p-2 mb-2 rounded-lg hover:bg-indigo-700">
<i class="fas fa-shopping-cart"></i>
<span class="sidebar-text ml-3 hidden md:block">Sales</span>
</a>
<a href="#" class="flex items-center justify-center md:justify-start p-2 mb-2 rounded-lg hover:bg-indigo-700">
<i class="fas fa-route"></i>
<span class="sidebar-text ml-3 hidden md:block">Routes</span>
</a>
<a href="#" class="flex items-center justify-center md:justify-start p-2 mb-2 rounded-lg hover:bg-indigo-700">
<i class="fas fa-users"></i>
<span class="sidebar-text ml-3 hidden md:block">Users</span>
</a>
<a href="#" class="flex items-center justify-center md:justify-start p-2 mb-2 rounded-lg hover:bg-indigo-700">
<i class="fas fa-chart-bar"></i>
<span class="sidebar-text ml-3 hidden md:block">Reports</span>
</a>
<a href="#" class="flex items-center justify-center md:justify-start p-2 mb-2 rounded-lg hover:bg-indigo-700">
<i class="fas fa-cog"></i>
<span class="sidebar-text ml-3 hidden md:block">Settings</span>
</a>
</nav>
</div>
<div class="absolute bottom-0 w-full p-4 border-t border-indigo-700">
<a href="#" class="flex items-center justify-center md:justify-start p-2 rounded-lg hover:bg-indigo-700">
<i class="fas fa-sign-out-alt"></i>
<span class="sidebar-text ml-3 hidden md:block">Logout</span>
</a>
</div>
</div>
<!-- Main Content -->
<div class="ml-0 md:ml-16 lg:ml-64 transition-all duration-300 ease-in-out">
<!-- Top Navigation -->
<header class="bg-white shadow-sm">
<div class="flex justify-between items-center p-4">
<div class="flex items-center">
<h1 class="text-xl font-bold text-gray-800">Dashboard</h1>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<button class="text-gray-600 hover:text-gray-800">
<i class="fas fa-bell text-xl"></i>
<span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
</button>
</div>
<div class="relative">
<button class="text-gray-600 hover:text-gray-800">
<i class="fas fa-envelope text-xl"></i>
<span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-blue-500"></span>
</button>
</div>
<div class="hidden md:flex items-center">
<img src="https://randomuser.me/api/portraits/men/75.jpg" alt="User" class="w-8 h-8 rounded-full">
<span class="ml-2 text-sm font-medium">Admin User</span>
</div>
</div>
</div>
</header>
<!-- Dashboard Content -->
<main class="p-4">
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6">
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-indigo-100 text-indigo-600">
<i class="fas fa-clinic-medical text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-500">Pharmacies</p>
<p class="text-2xl font-semibold text-gray-800">1,248</p>
<p class="text-xs text-green-500">+12% from last month</p>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
<i class="fas fa-box-open text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-500">Products</p>
<p class="text-2xl font-semibold text-gray-800">5,678</p>
<p class="text-xs text-green-500">+8% from last month</p>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-green-100 text-green-600">
<i class="fas fa-shopping-cart text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-500">Today's Sales</p>
<p class="text-2xl font-semibold text-gray-800">₺24,567</p>
<p class="text-xs text-green-500">+5% from yesterday</p>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
<i class="fas fa-users text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-500">Active Users</p>
<p class="text-2xl font-semibold text-gray-800">87</p>
<p class="text-xs text-red-500">-3% from last week</p>
</div>
</div>
</div>
</div>
<!-- Charts and Recent Activity -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
<!-- Sales Chart -->
<div class="bg-white rounded-lg shadow p-6 lg:col-span-2">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold text-gray-800">Monthly Sales</h2>
<div class="flex space-x-2">
<button class="px-3 py-1 text-xs bg-indigo-100 text-indigo-600 rounded-full">Monthly</button>
<button class="px-3 py-1 text-xs bg-gray-100 text-gray-600 rounded-full">Weekly</button>
<button class="px-3 py-1 text-xs bg-gray-100 text-gray-600 rounded-full">Daily</button>
</div>
</div>
<div class="chart-container">
<canvas id="salesChart"></canvas>
</div>
</div>
<!-- Recent Activities -->
<div class="bg-white rounded-lg shadow p-6">
<h2 class="text-lg font-semibold text-gray-800 mb-4">Recent Activities</h2>
<div class="space-y-4">
<div class="flex items-start">
<div class="p-2 rounded-full bg-indigo-100 text-indigo-600">
<i class="fas fa-user-plus text-sm"></i>
</div>
<div class="ml-3">
<p class="text-sm font-medium">New pharmacy added</p>
<p class="text-xs text-gray-500">"Medikal Eczanesi" added by Ahmet Yılmaz</p>
<p class="text-xs text-gray-400">2 hours ago</p>
</div>
</div>
<div class="flex items-start">
<div class="p-2 rounded-full bg-green-100 text-green-600">
<i class="fas fa-shopping-cart text-sm"></i>
</div>
<div class="ml-3">
<p class="text-sm font-medium">New sale recorded</p>
<p class="text-xs text-gray-500">₺1,245 sale at Aydın Eczanesi</p>
<p class="text-xs text-gray-400">4 hours ago</p>
</div>
</div>
<div class="flex items-start">
<div class="p-2 rounded-full bg-blue-100 text-blue-600">
<i class="fas fa-box-open text-sm"></i>
</div>
<div class="ml-3">
<p class="text-sm font-medium">Product updated</p>
<p class="text-xs text-gray-500">"Parol 500mg" price updated</p>
<p class="text-xs text-gray-400">6 hours ago</p>
</div>
</div>
<div class="flex items-start">
<div class="p-2 rounded-full bg-purple-100 text-purple-600">
<i class="fas fa-route text-sm"></i>
</div>
<div class="ml-3">
<p class="text-sm font-medium">Route completed</p>
<p class="text-xs text-gray-500">Mehmet Kaya completed his daily route</p>
<p class="text-xs text-gray-400">8 hours ago</p>
</div>
</div>
</div>
</div>
</div>
<!-- Recent Sales and Top Pharmacies -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
<!-- Recent Sales -->
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="p-6">
<h2 class="text-lg font-semibold text-gray-800 mb-4">Recent Sales</h2>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Pharmacy</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Sales Rep</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-indigo-100 rounded-full flex items-center justify-center">
<i class="fas fa-clinic-medical text-indigo-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Şifa Eczanesi</div>
<div class="text-sm text-gray-500">Ankara</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Ahmet Yılmaz</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">₺1,245</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">10 min ago</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-indigo-100 rounded-full flex items-center justify-center">
<i class="fas fa-clinic-medical text-indigo-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Aydın Eczanesi</div>
<div class="text-sm text-gray-500">İstanbul</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Mehmet Kaya</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">₺876</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1 hour ago</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-indigo-100 rounded-full flex items-center justify-center">
<i class="fas fa-clinic-medical text-indigo-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Medikal Eczanesi</div>
<div class="text-sm text-gray-500">İzmir</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Ayşe Demir</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">₺1,532</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3 hours ago</td>
</tr>
</tbody>
</table>
</div>
<div class="bg-gray-50 px-6 py-3 text-right">
<a href="#" class="text-sm font-medium text-indigo-600 hover:text-indigo-500">View all</a>
</div>
</div>
<!-- Top Pharmacies -->
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="p-6">
<h2 class="text-lg font-semibold text-gray-800 mb-4">Top Pharmacies</h2>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Pharmacy</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Location</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Sales</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Growth</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-indigo-100 rounded-full flex items-center justify-center">
<i class="fas fa-clinic-medical text-indigo-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Şifa Eczanesi</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Ankara</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">₺24,567</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">+12%</span>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-indigo-100 rounded-full flex items-center justify-center">
<i class="fas fa-clinic-medical text-indigo-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Aydın Eczanesi</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">İstanbul</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">₺18,234</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">+8%</span>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-indigo-100 rounded-full flex items-center justify-center">
<i class="fas fa-clinic-medical text-indigo-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Medikal Eczanesi</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">İzmir</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">₺15,678</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">+5%</span>
</td>
</tr>
</tbody>
</table>
</div>
<div class="bg-gray-50 px-6 py-3 text-right">
<a href="#" class="text-sm font-medium text-indigo-600 hover:text-indigo-500">View all</a>
</div>
</div>
</div>
</main>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
// Mobile menu toggle
const mobileMenuButton = document.getElementById('mobileMenuButton');
const sidebar = document.getElementById('sidebar');
const sidebarOverlay = document.getElementById('sidebarOverlay');
mobileMenuButton.addEventListener('click', () => {
sidebar.classList.toggle('sidebar-open');
sidebarOverlay.classList.toggle('sidebar-overlay-open');
});
sidebarOverlay.addEventListener('click', () => {
sidebar.classList.remove('sidebar-open');
sidebarOverlay.classList.remove('sidebar-overlay-open');
});
// Sales Chart
const salesCtx = document.getElementById('salesChart').getContext('2d');
const salesChart = new Chart(salesCtx, {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
datasets: [{
label: 'Sales (₺)',
data: [12500, 19000, 15000, 20000, 22000, 25000, 28000, 27000, 30000, 32000, 35000, 40000],
backgroundColor: 'rgba(79, 70, 229, 0.1)',
borderColor: 'rgba(79, 70, 229, 1)',
borderWidth: 2,
tension: 0.4,
fill: true
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
display: false
}
},
scales: {
y: {
beginAtZero: true,
grid: {
drawBorder: false
},
ticks: {
callback: function(value) {
return '₺' + value.toLocaleString();
}
}
},
x: {
grid: {
display: false
}
}
}
}
});
// Toggle sidebar text on desktop
if (window.innerWidth >= 768) {
sidebar.classList.remove('sidebar-collapsed');
}
window.addEventListener('resize', () => {
if (window.innerWidth >= 768) {
sidebar.classList.remove('sidebar-collapsed');
sidebar.classList.remove('sidebar-open');
sidebarOverlay.classList.remove('sidebar-overlay-open');
} else {
sidebar.classList.add('sidebar-collapsed');
}
});
</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=symfony/pharma" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>