1671 lines
70 KiB
HTML
1671 lines
70 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Multi-Page Layout Simulation (Charts Removed)</title>
|
|
<style>
|
|
/* Define a custom color palette based on the image */
|
|
:root {
|
|
--primary-color: #6c63ff; /* Purple/Blue accent */
|
|
--secondary-bg: #f5f5f9; /* Light page background */
|
|
--white: #ffffff;
|
|
--text-dark: #333333;
|
|
--text-medium: #555555;
|
|
--text-light: #999999;
|
|
--border-color: #eeeeee;
|
|
--light-gray-bg: #f7f7f7; /* Background used in the modal */
|
|
}
|
|
|
|
/* Base Styles */
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: var(--secondary-bg);
|
|
display: flex;
|
|
color: var(--text-dark);
|
|
font-size: 14px;
|
|
min-height: 100vh; /* Ensures body takes full height and grows with content */
|
|
}
|
|
|
|
/* --- Sidebar Navigation --- */
|
|
.sidebar {
|
|
width: 250px;
|
|
background-color: var(--white);
|
|
padding: 20px 0;
|
|
box-shadow: 2px 0 10px rgba(0,0,0,0.05);
|
|
z-index: 10;
|
|
flex-shrink: 0; /* Prevents sidebar from shrinking */
|
|
}
|
|
|
|
/* --- Logo Styles (Size reduced) --- */
|
|
.logo {
|
|
padding: 10px 0; /* Added vertical padding for spacing */
|
|
margin-bottom: 20px;
|
|
text-align: center; /* Center the image */
|
|
display: block;
|
|
}
|
|
.logo-image {
|
|
/* Reduced from 80% to 70% */
|
|
max-width: 70%;
|
|
height: auto;
|
|
display: inline-block;
|
|
border-radius: 4px; /* Maintain design aesthetic */
|
|
}
|
|
/* --- End Logo Styles --- */
|
|
|
|
.sidebar h4 { color: var(--text-light);
|
|
padding: 0 20px; margin-top: 25px; margin-bottom: 5px; font-size: 11px; text-transform: uppercase; font-weight: 600;
|
|
}
|
|
.sidebar a {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 10px 20px;
|
|
text-decoration: none;
|
|
color: var(--text-medium);
|
|
transition: all 0.2s;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
}
|
|
.sidebar .active-link {
|
|
background-color: #f1f1f5;
|
|
color: var(--primary-color);
|
|
font-weight: 600;
|
|
}
|
|
.icon-placeholder-sidebar { font-family: 'Arial', sans-serif; margin-right: 10px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* --- Main Content and Header --- */
|
|
.main-content {
|
|
flex-grow: 1;
|
|
padding: 20px 30px;
|
|
}
|
|
|
|
.top-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background-color: var(--white);
|
|
padding: 10px 30px;
|
|
margin: -20px -30px 20px -30px;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.03);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 5;
|
|
}
|
|
.breadcrumbs strong { color: var(--primary-color);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* --- Header Action Buttons --- */
|
|
.header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px; /* Space between the button groups */
|
|
}
|
|
.icon-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.action-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px; /* Space between Quick Sale and User Dropdown */
|
|
}
|
|
.header-icon-btn {
|
|
background: none;
|
|
border: none;
|
|
font-size: 18px;
|
|
color: var(--text-medium);
|
|
padding: 8px;
|
|
cursor: pointer;
|
|
border-radius: 6px;
|
|
transition: background-color 0.2s;
|
|
line-height: 1;
|
|
}
|
|
.header-icon-btn:hover {
|
|
background-color: #f1f1f5;
|
|
}
|
|
|
|
/* New User Dropdown Button Styling */
|
|
.user-dropdown-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
background-color: var(--secondary-bg);
|
|
border: 1px solid var(--border-color);
|
|
padding: 4px 15px 4px 4px;
|
|
border-radius: 50px; /* Highly rounded pill shape */
|
|
cursor: pointer;
|
|
transition: background-color 0.2s, box-shadow 0.2s;
|
|
font-weight: 600;
|
|
color: var(--text-dark);
|
|
}
|
|
.user-dropdown-btn:hover {
|
|
background-color: #ebebf2;
|
|
box-shadow: 0 2px 6px rgba(0,0,0,0.05);
|
|
}
|
|
.user-profile {
|
|
width: 35px;
|
|
height: 35px;
|
|
border-radius: 50%;
|
|
margin-right: 8px;
|
|
background-color: #ddd;
|
|
object-fit: cover;
|
|
}
|
|
|
|
/* --- DROPDOWN STYLES --- */
|
|
.dropdown {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
.dropdown-content {
|
|
display: none; /* Initially hidden */
|
|
position: absolute;
|
|
right: 0; /* Align to the right side of the button */
|
|
background-color: var(--white);
|
|
min-width: 280px;
|
|
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
|
|
z-index: 200; /* High z-index to appear above other elements */
|
|
border-radius: 8px;
|
|
padding: 10px 0;
|
|
margin-top: 10px;
|
|
border: 1px solid var(--border-color);
|
|
transform-origin: top right;
|
|
animation: fadeIn 0.15s ease-out;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0;
|
|
transform: translateY(-5px); }
|
|
to { opacity: 1; transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.dropdown-content.show {
|
|
display: block;
|
|
}
|
|
|
|
/* Specific Dropdown styles */
|
|
.dropdown-content h5 {
|
|
color: var(--primary-color);
|
|
font-size: 14px;
|
|
padding: 5px 15px;
|
|
margin: 0 0 5px 0;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
.dropdown-item {
|
|
padding: 10px 15px;
|
|
display: block;
|
|
text-decoration: none;
|
|
color: var(--text-dark);
|
|
line-height: 1.4;
|
|
cursor: pointer;
|
|
}
|
|
.dropdown-item:hover {
|
|
background-color: var(--light-gray-bg);
|
|
}
|
|
.dropdown-item small {
|
|
display: block;
|
|
color: var(--text-medium);
|
|
font-size: 11px;
|
|
}
|
|
.dropdown-footer {
|
|
text-align: center;
|
|
padding: 10px 15px 5px;
|
|
border-top: 1px solid var(--border-color);
|
|
color: var(--primary-color);
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Adjustments for the User Menu content */
|
|
.user-menu-content {
|
|
min-width: 250px;
|
|
}
|
|
/* --- END DROPDOWN STYLES --- */
|
|
|
|
|
|
/* --- General Page Content Styles --- */
|
|
.page-container {
|
|
/* All pages start hidden, except the default active one */
|
|
display: none;
|
|
}
|
|
.page-container.active-page {
|
|
display: block;
|
|
}
|
|
.placeholder-card {
|
|
background-color: var(--white);
|
|
padding: 40px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
|
|
text-align: center;
|
|
border-left: 5px solid var(--primary-color);
|
|
}
|
|
.placeholder-card h2 {
|
|
font-size: 30px;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
/* --- Dashboard KPI Styles --- */
|
|
.kpi-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 20px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.kpi-card {
|
|
background-color: var(--white);
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
|
|
transition: transform 0.2s;
|
|
border-left: 4px solid var(--primary-color); /* Subtle accent */
|
|
height: 100%; /* Ensure all cards in a grid have equal height */
|
|
box-sizing: border-box;
|
|
}
|
|
.kpi-card:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 6px 15px rgba(0,0,0,0.1);
|
|
}
|
|
.kpi-card .kpi-value {
|
|
font-size: 32px;
|
|
font-weight: 700;
|
|
margin-bottom: 5px;
|
|
color: var(--text-dark);
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.kpi-card .kpi-value span {
|
|
font-size: 18px;
|
|
margin-right: 10px;
|
|
color: var(--primary-color);
|
|
}
|
|
.kpi-card .kpi-label {
|
|
font-size: 14px;
|
|
color: var(--text-medium);
|
|
margin: 0;
|
|
}
|
|
.kpi-card .kpi-change {
|
|
font-size: 12px;
|
|
margin-top: 10px;
|
|
font-weight: 600;
|
|
}
|
|
.kpi-card .positive {
|
|
color: #4caf50; /* Green */
|
|
}
|
|
.kpi-card .negative {
|
|
color: #f44336; /* Red */
|
|
}
|
|
|
|
/* --- CARD LAYOUT STYLES (UPDATED) --- */
|
|
.dashboard-section {
|
|
background-color: var(--white);
|
|
padding: 30px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
|
|
margin-bottom: 20px;
|
|
}
|
|
.dashboard-section h4 {
|
|
color: var(--primary-color);
|
|
font-size: 20px;
|
|
margin-top: 0;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
/* Two-column layout for Bar Chart and Hot Sale Card */
|
|
.half-width-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr; /* Two equal columns */
|
|
gap: 20px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
/* Ensure responsiveness on smaller screens */
|
|
@media (max-width: 768px) {
|
|
.half-width-grid {
|
|
grid-template-columns: 1fr; /* Stack vertically on small screens */
|
|
}
|
|
}
|
|
|
|
/* Hot Sale Card/Membership Trend Card Specific Styling */
|
|
.hot-sale-card {
|
|
border-left-color: #6c63ff;
|
|
text-align: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 30px; /* Increased padding for better look */
|
|
box-sizing: border-box; /* Ensure padding doesn't exceed grid size */
|
|
}
|
|
.hot-sale-card .product-name {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
color: var(--primary-color);
|
|
margin: 5px 0 10px;
|
|
}
|
|
.hot-sale-card .sales-count {
|
|
font-size: 48px;
|
|
font-weight: 900;
|
|
color: #f44336;
|
|
line-height: 1;
|
|
}
|
|
.hot-sale-card .sales-label {
|
|
font-size: 16px;
|
|
color: var(--text-medium);
|
|
margin-top: 5px;
|
|
}
|
|
/* Style for the new Full-Width Profit Summary Card */
|
|
#profit-summary-card {
|
|
border-left: 5px solid #4caf50; /* Green accent */
|
|
}
|
|
.profit-data-grid {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
gap: 20px;
|
|
text-align: center;
|
|
}
|
|
.profit-item .value {
|
|
font-size: 36px;
|
|
font-weight: 800;
|
|
margin-bottom: 5px;
|
|
}
|
|
.profit-item .label {
|
|
font-size: 14px;
|
|
color: var(--text-medium);
|
|
}
|
|
/* --- END CARD LAYOUT STYLES --- */
|
|
|
|
/* --- NEW TOP 5 PRODUCTS LIST STYLES --- */
|
|
#top-products-card {
|
|
/* Inherits dashboard-section styles, adjust padding for list view */
|
|
padding: 20px 30px;
|
|
border-left: 4px solid #f44336;
|
|
}
|
|
.product-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
.product-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
.product-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
.product-rank {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
color: var(--primary-color);
|
|
width: 30px;
|
|
text-align: center;
|
|
flex-shrink: 0;
|
|
}
|
|
.product-details {
|
|
display: flex;
|
|
flex-grow: 1;
|
|
align-items: center;
|
|
}
|
|
.product-image {
|
|
font-size: 24px;
|
|
margin: 0 15px;
|
|
width: 40px;
|
|
height: 40px;
|
|
line-height: 40px;
|
|
text-align: center;
|
|
background-color: #f1f1f5;
|
|
border-radius: 6px;
|
|
flex-shrink: 0;
|
|
}
|
|
.product-info {
|
|
flex-grow: 1;
|
|
min-width: 0;
|
|
}
|
|
.product-info strong {
|
|
display: block;
|
|
font-size: 14px;
|
|
color: var(--text-dark);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.product-info small {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: var(--text-medium);
|
|
}
|
|
.product-stats {
|
|
display: flex;
|
|
gap: 15px;
|
|
margin-left: 20px;
|
|
text-align: right;
|
|
flex-shrink: 0;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
}
|
|
.stat-value {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
display: block;
|
|
color: var(--text-dark);
|
|
}
|
|
/* Responsive adjustments for the product list on small screens */
|
|
@media (max-width: 500px) {
|
|
.product-stats {
|
|
flex-direction: column; /* Stack sales and burn vertically */
|
|
gap: 5px;
|
|
}
|
|
.product-item {
|
|
align-items: flex-start;
|
|
}
|
|
}
|
|
/* --- END NEW TOP 5 PRODUCTS LIST STYLES --- */
|
|
|
|
|
|
|
|
/* --- Member Profile Specific Styles (Remains the same) --- */
|
|
.profile-card {
|
|
background-color: var(--white);
|
|
padding: 30px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
|
|
margin-bottom: 20px;
|
|
}
|
|
.profile-header-content { display: flex; align-items: flex-start;
|
|
}
|
|
.profile-pic { width: 90px; height: 90px; border-radius: 50%; margin-right: 25px; object-fit: cover;
|
|
background-color: #ddd;
|
|
}
|
|
.profile-main-info { flex-grow: 1;
|
|
}
|
|
.profile-main-info h3 { margin: 0; font-size: 30px; font-weight: 700;
|
|
}
|
|
.stats-badges { display: flex; align-items: flex-end; margin-bottom: 20px; font-size: 14px;
|
|
}
|
|
.stat-item { display: flex; flex-direction: column; align-items: center; margin-right: 25px;
|
|
}
|
|
.stat-item .value { font-size: 24px; font-weight: 700; color: var(--primary-color); margin-bottom: 2px;
|
|
}
|
|
.stat-item .icon-badge { font-size: 14px; color: var(--text-medium);
|
|
}
|
|
.tag { padding: 4px 10px; border-radius: 4px; margin-right: 8px; font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
.tag.age { background-color: #e0f7fa; color: #00bcd4;
|
|
}
|
|
.tag.places { background-color: #f3e5f5; color: #9c27b0;
|
|
}
|
|
.tag.active { background-color: #e8f5e9; color: #4caf50;
|
|
}
|
|
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px;
|
|
color: var(--text-medium); font-size: 14px;
|
|
}
|
|
.profile-tabs { display: flex; border-bottom: 1px solid var(--border-color);
|
|
margin-bottom: 20px; overflow-x: auto;
|
|
}
|
|
.profile-tabs button { background: none; border: none;
|
|
padding: 15px 20px; cursor: pointer; font-size: 15px; color: var(--text-medium); font-weight: 500; white-space: nowrap;
|
|
}
|
|
.profile-tabs button.active { color: var(--primary-color); border-bottom: 3px solid var(--primary-color); font-weight: 600;
|
|
}
|
|
.tab-content-section { display: none; padding-top: 10px;
|
|
}
|
|
.tab-content-section.active { display: block;
|
|
}
|
|
.stats-card { background-color: var(--white); padding: 30px; border-radius: 8px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.03);
|
|
}
|
|
.stats-grid { display: flex; justify-content: space-between;
|
|
gap: 20px;
|
|
}
|
|
.stat-box { flex-basis: 32%; padding: 15px; text-align: left;
|
|
}
|
|
.stat-box .count { font-size: 32px; font-weight: 700;
|
|
}
|
|
.sessions .count { color: var(--primary-color);
|
|
}
|
|
.revenue .count { color: #4caf50;
|
|
}
|
|
.attendance .count { color: #ff9800;
|
|
}
|
|
.progress-bar-container { height: 8px; background-color: var(--border-color); border-radius: 4px; margin-top: 10px; overflow: hidden;
|
|
}
|
|
.sessions .progress-bar { background-color: var(--primary-color); width: 70%;
|
|
}
|
|
.revenue .progress-bar { background-color: #4caf50; width: 85%;
|
|
}
|
|
.attendance .progress-bar { background-color: #ff9800; width: 85%;
|
|
}
|
|
.stat-box small { display: block; margin-top: 10px; color: var(--text-light); font-size: 12px;
|
|
}
|
|
|
|
/* --- MODAL STYLES (UPDATED FOR QUICK SALE SCROLLING) --- */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.6);
|
|
display: none; /* Initially hidden */
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 1000;
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease-in-out;
|
|
}
|
|
.modal-overlay.open {
|
|
display: flex;
|
|
opacity: 1;
|
|
}
|
|
.modal-content {
|
|
background-color: var(--white);
|
|
padding: 30px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
|
|
width: 90%;
|
|
max-width: 600px; /* Default max width */
|
|
max-height: 90vh;
|
|
overflow-y: auto; /* Allows the default modal to scroll */
|
|
transform: scale(0.95);
|
|
transition: transform 0.3s ease-in-out;
|
|
}
|
|
|
|
/* Quick Sale Modal Specific Sizing and Structure */
|
|
#quickSaleModal .modal-content {
|
|
max-width: 900px; /* Wider for POS view */
|
|
padding: 20px; /* CRITICAL: Enforce a fixed height and use flex to manage internal space */
|
|
height: 85vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: hidden; /* Prevent the main modal from scrolling, we manage inner components */
|
|
}
|
|
|
|
.modal-overlay.open .modal-content {
|
|
transform: scale(1);
|
|
}
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-bottom: 1px solid var(--border-color);
|
|
padding-bottom: 10px;
|
|
margin-bottom: 20px;
|
|
flex-shrink: 0; /* Ensures header does not shrink */
|
|
}
|
|
#quickSaleModal .modal-header {
|
|
border-bottom: none;
|
|
padding-bottom: 0;
|
|
margin-bottom: 10px;
|
|
}
|
|
.modal-header h4 {
|
|
margin: 0;
|
|
font-size: 20px;
|
|
color: var(--primary-color);
|
|
}
|
|
#quickSaleModal .modal-header h4 {
|
|
font-size: 22px;
|
|
}
|
|
#quickSaleModal .modal-header p {
|
|
font-size: 14px;
|
|
color: var(--text-medium);
|
|
margin-top: 5px;
|
|
}
|
|
.modal-close-btn {
|
|
background: none;
|
|
border: none;
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
color: var(--text-medium);
|
|
padding: 5px;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* --- General Form & Button Styles (FIXED) --- */
|
|
.form-group {
|
|
margin-bottom: 15px;
|
|
}
|
|
.form-group label {
|
|
display: block;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-dark);
|
|
margin-bottom: 5px;
|
|
}
|
|
.form-group input[type="text"],
|
|
.form-group input[type="email"],
|
|
.form-group input[type="tel"],
|
|
.form-group select {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
box-sizing: border-box; /* Important for full width */
|
|
font-size: 14px;
|
|
color: var(--text-dark);
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
background-color: var(--light-gray-bg);
|
|
}
|
|
.form-group input:focus,
|
|
.form-group select:focus {
|
|
border-color: var(--primary-color);
|
|
outline: none;
|
|
box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
|
|
background-color: var(--white);
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.btn-primary, .btn-secondary {
|
|
padding: 10px 20px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s;
|
|
border: none;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: var(--primary-color);
|
|
color: var(--white);
|
|
}
|
|
.btn-primary:hover {
|
|
background-color: #5d56d1; /* Slightly darker */
|
|
box-shadow: 0 4px 10px rgba(108, 99, 255, 0.3);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background-color: var(--light-gray-bg);
|
|
color: var(--text-medium);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
.btn-secondary:hover {
|
|
background-color: #e6e6ee;
|
|
color: var(--text-dark);
|
|
transform: translateY(-1px);
|
|
}
|
|
/* --- END GENERAL FORM & BUTTON STYLES --- */
|
|
|
|
|
|
/* --- NEW QUICK SALE POS STYLES (Updated for scrolling and spacing) --- */
|
|
.pos-container {
|
|
display: grid;
|
|
grid-template-columns: 2fr 1fr; /* Catalog (2/3) | Cart (1/3) */
|
|
gap: 20px;
|
|
/* CRITICAL: Take up all available height in the flex parent modal-content */
|
|
flex-grow: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
/* Catalog Section (Left) */
|
|
.catalog-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
background-color: var(--light-gray-bg);
|
|
padding: 15px;
|
|
height: 100%; /* Fill the grid cell height */
|
|
min-height: 0; /* Important for inner scrolling */
|
|
}
|
|
|
|
/* Category Tabs */
|
|
.category-tabs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid var(--border-color);
|
|
margin-bottom: 10px;
|
|
flex-shrink: 0; /* Prevents tabs from shrinking */
|
|
}
|
|
.category-tab-btn {
|
|
background: none;
|
|
border: none;
|
|
padding: 8px 15px;
|
|
margin-right: 5px;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
color: var(--text-medium);
|
|
transition: background-color 0.2s, color 0.2s;
|
|
font-size: 13px;
|
|
}
|
|
.category-tab-btn.active {
|
|
background-color: var(--white);
|
|
color: var(--primary-color);
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Product Grid */
|
|
.product-grid {
|
|
display: grid;
|
|
/* FIX: Use fixed size columns (130px) and auto-fit to prevent stretching when there are few items */
|
|
grid-template-columns: repeat(auto-fit, 130px);
|
|
gap: 15px;
|
|
overflow-y: auto; /* Scrollable catalog */
|
|
padding: 10px 0;
|
|
flex-grow: 1; /* Take up remaining space in catalog-section */
|
|
justify-content: start; /* Aligns tiles to the left, leaving space on the right */
|
|
}
|
|
.product-tile {
|
|
background-color: var(--white);
|
|
border-radius: 8px;
|
|
padding: 10px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
|
|
transition: transform 0.1s, box-shadow 0.1s;
|
|
/* The tile now correctly adopts the 130px width from the grid column */
|
|
}
|
|
.product-tile:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
|
}
|
|
.product-tile img {
|
|
width: 80px;
|
|
height: 80px;
|
|
border-radius: 6px;
|
|
object-fit: cover;
|
|
margin-bottom: 5px;
|
|
}
|
|
.product-tile strong {
|
|
display: block;
|
|
font-size: 13px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
color: var(--text-dark);
|
|
}
|
|
.product-tile small {
|
|
display: block;
|
|
color: #f44336; /* Price color */
|
|
font-weight: 600;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Cart Section (Right) */
|
|
.cart-section {
|
|
background-color: var(--white);
|
|
border-radius: 8px;
|
|
padding: 20px; /* Reduced padding-bottom slightly to bring the pay button up */
|
|
display: flex;
|
|
flex-direction: column;
|
|
border: 1px solid var(--border-color);
|
|
height: 100%; /* Fill the grid cell height */
|
|
min-height: 0; /* Important for inner scrolling */
|
|
}
|
|
.cart-section h5 {
|
|
margin-top: 0;
|
|
font-size: 16px;
|
|
color: var(--primary-color);
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
flex-shrink: 0; /* Prevents header from shrinking */
|
|
}
|
|
.cart-list {
|
|
/* FIX: Re-added flex-grow: 1 to push the cart-totals to the bottom */
|
|
flex-grow: 1;
|
|
overflow-y: auto; /* Enables scrolling for the list when content overflows */
|
|
margin-bottom: 15px;
|
|
min-height: 0;
|
|
}
|
|
.cart-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 10px 0;
|
|
border-bottom: 1px dashed var(--border-color);
|
|
font-size: 13px;
|
|
}
|
|
.cart-item-info { flex-grow: 1; padding-right: 10px; }
|
|
.cart-item-name { font-weight: 600; }
|
|
.cart-item-price { color: var(--text-medium); font-size: 11px; }
|
|
.quantity-control { display: flex; align-items: center; border: 1px solid var(--border-color); border-radius: 5px; overflow: hidden; }
|
|
.qty-btn { background-color: var(--light-gray-bg); border: none; width: 25px; height: 25px; line-height: 1; cursor: pointer; font-size: 16px; transition: background-color 0.1s; }
|
|
.qty-btn:hover { background-color: #e0e0e0; }
|
|
.qty-display { padding: 0 8px; font-weight: 600; font-size: 13px; }
|
|
|
|
/* Totals Area */
|
|
.cart-totals {
|
|
padding-top: 10px;
|
|
border-top: 1px solid var(--border-color);
|
|
margin-top: 10px;
|
|
flex-shrink: 0; /* Prevents totals from shrinking */
|
|
}
|
|
.total-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 5px;
|
|
font-size: 13px;
|
|
}
|
|
.total-row.grand-total {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
color: var(--text-dark);
|
|
margin-top: 10px;
|
|
}
|
|
.total-row.grand-total span { color: #f44336; }
|
|
.pay-button-container { margin-top: 15px; margin-bottom: 5px; /* Adds a small gap above the bottom padding of the cart section */ }
|
|
.pay-button { width: 100%;
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
font-size: 16px;
|
|
}
|
|
/* Responsive adjustments for POS modal */
|
|
@media (max-width: 768px) {
|
|
#quickSaleModal .modal-content {
|
|
padding: 10px;
|
|
height: 90vh; /* Use 90% height on mobile */
|
|
}
|
|
.pos-container {
|
|
grid-template-columns: 1fr; /* Stack catalog and cart */
|
|
gap: 10px;
|
|
}
|
|
.cart-section {
|
|
/* On mobile, limit the cart section height so both sections fit and scroll */
|
|
max-height: 45vh;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="sidebar">
|
|
<div class="logo">
|
|
<img src="https://bio.innovator.bh/assets/img/2_1757425606.png" alt="Take One Sports Logo" class="logo-image" onerror="this.onerror=null; this.src='https://placehold.co/150x50/6c63ff/ffffff?text=Logo+Error'">
|
|
</div>
|
|
<h4>Core Business</h4>
|
|
<a id="link_dashboard_page" class="active-link" onclick="showPage('dashboard_page', this)"><span class="icon-placeholder-sidebar">🏠</span> Dashboard</a>
|
|
<a id="link_main_dashboard_page" onclick="showPage('main_dashboard_page', this)"><span class="icon-placeholder-sidebar">📊</span> Main Dashboard</a>
|
|
<a id="link_user_overview_page" onclick="showPage('user_overview_page', this)"><span class="icon-placeholder-sidebar">👤</span> User Overview</a>
|
|
<a id="link_invoicing_payments_page" onclick="showPage('invoicing_payments_page', this)"><span class="icon-placeholder-sidebar">💰</span> Invoicing & Payments</a>
|
|
<a id="link_revenue_expenses_page" onclick="showPage('revenue_expenses_page', this)"><span class="icon-placeholder-sidebar">📈</span> Revenue & Expenses</a>
|
|
<a id="link_budgeting_forecasting_page" onclick="showPage('budgeting_forecasting_page', this)"><span class="icon-placeholder-sidebar">🗓️</span> Budgeting & Forecasting</a>
|
|
<a id="link_payroll_management_page"
|
|
onclick="showPage('payroll_management_page', this)"><span class="icon-placeholder-sidebar">💵</span> Payroll Management</a>
|
|
|
|
<h4 style="margin-top: 40px;">Offerings & Planning</h4>
|
|
<a id="link_packages_activities_page" onclick="showPage('packages_activities_page', this)"><span class="icon-placeholder-sidebar">📦</span> Packages & Activities</a>
|
|
<h4 style="margin-top: 40px;">People Management</h4>
|
|
<div class="members-group">
|
|
<a id="link_members_page" onclick="showPage('members_page', this)"><span class="icon-placeholder-sidebar">👥</span> Members</a>
|
|
<a id="link_member_directory_page" onclick="showPage('member_directory_page', this)"><span class="icon-placeholder-sidebar">📘</span> Member Directory</a>
|
|
<a id="link_enrollments_page" onclick="showPage('enrollments_page', this)"><span class="icon-placeholder-sidebar">✍️</span> Enrollments</a>
|
|
<a id="link_attendance_page" onclick="showPage('attendance_page', this)"><span class="icon-placeholder-sidebar">✅</span> Attendance</a>
|
|
<a id="link_workouts_page" onclick="showPage('workouts_page', this)"><span class="icon-placeholder-sidebar">💪</span> Workouts</a>
|
|
<a id="link_health_progress_page" onclick="showPage('health_progress_page', this)"><span class="icon-placeholder-sidebar">🩺</span> Health & Progress</a>
|
|
<a id="link_member_groups_page" onclick="showPage('member_groups_page', this)"><span class="icon-placeholder-sidebar">📁</span> Member Groups</a>
|
|
</div>
|
|
<a id="link_staff_management_page" onclick="showPage('staff_management_page', this)"><span class="icon-placeholder-sidebar">💼</span> Staff Management</a>
|
|
</div>
|
|
|
|
<div class="main-content">
|
|
<div class="top-header">
|
|
<div class="breadcrumbs" id="breadcrumbs">
|
|
Core Business <span>></span> <strong>Dashboard</strong>
|
|
</div>
|
|
<div class="header-actions">
|
|
<div class="icon-group">
|
|
<div class="dropdown">
|
|
<button class="header-icon-btn" title="Notifications" onclick="toggleDropdown('notificationDropdown')">
|
|
🔔
|
|
</button>
|
|
<div id="notificationDropdown" class="dropdown-content">
|
|
<h5>Notifications (3 New)</h5>
|
|
<a class="dropdown-item">
|
|
<strong>Membership Renewal Alert</strong>
|
|
<small>John Doe's membership renews tomorrow.</small>
|
|
</a>
|
|
<a class="dropdown-item">
|
|
<strong>New Enrollment</strong>
|
|
<small>Jane Smith signed up for Premium Fitness.</small>
|
|
</a>
|
|
<a class="dropdown-item">
|
|
<strong>Support Ticket #45 Resolved</strong>
|
|
<small>Ticket resolved by Staff Member A.</small>
|
|
</a>
|
|
<div class="dropdown-footer" onclick="console.log('Viewing All Notifications...')">View All</div>
|
|
</div>
|
|
</div>
|
|
<div class="dropdown">
|
|
<button class="header-icon-btn" title="Messages" onclick="toggleDropdown('messagesDropdown')">
|
|
💬
|
|
</button>
|
|
<div id="messagesDropdown" class="dropdown-content">
|
|
<h5>Messages (1 New)</h5>
|
|
<a class="dropdown-item">
|
|
<strong>Coach Tim</strong>
|
|
<small>Regarding John Doe's new workout
|
|
plan. 3h ago</small>
|
|
</a>
|
|
<a class="dropdown-item">
|
|
<strong>Member Feedback</strong>
|
|
<small>Issue with the treadmill in the weight room.
|
|
Yesterday</small>
|
|
</a>
|
|
<div class="dropdown-footer" onclick="console.log('Viewing All Messages...')">View All</div>
|
|
</div>
|
|
</div>
|
|
<button class="header-icon-btn" title="Add New Member" onclick="showModal('addMemberModal')">
|
|
👤+
|
|
</button>
|
|
<button class="header-icon-btn" title="Quick Sale / Point of Sale" onclick="showQuickSaleModal()">
|
|
👜+
|
|
</button>
|
|
</div> <div class="action-group">
|
|
<div class="dropdown">
|
|
<button class="user-dropdown-btn" title="User Menu" onclick="toggleDropdown('userDropdown')">
|
|
<img src="https://bio.innovator.bh/assets/img/2_1757425606.png" alt="User Avatar" class="user-profile" onerror="this.onerror=null; this.src='https://placehold.co/35x35/6c63ff/ffffff?text=U'">
|
|
<span>Ghazan Yussuf</span>
|
|
</button>
|
|
<div id="userDropdown"
|
|
class="dropdown-content user-menu-content">
|
|
<h5>Account</h5>
|
|
<a class="dropdown-item">
|
|
<strong>View Profile</strong>
|
|
<small>Update personal details</small>
|
|
</a>
|
|
<a class="dropdown-item">
|
|
<strong>Change Password</strong>
|
|
<small>Security settings</small>
|
|
</a>
|
|
<a class="dropdown-item">
|
|
<strong>Support & Help</strong>
|
|
<small>Get assistance (Simulated support link)</small>
|
|
</a>
|
|
<div class="dropdown-footer" onclick="console.log('Logging out...')">Sign Out</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="dashboard_page" class="page-container active-page">
|
|
<h2 style="margin-top: 0;">Main Club Dashboard</h2>
|
|
<p style="color: var(--text-medium);
|
|
margin-bottom: 30px;">A snapshot of real-time club performance and key metrics for decision-making.</p>
|
|
<div class="kpi-grid">
|
|
<div class="kpi-card">
|
|
<div class="kpi-value">
|
|
<span style="color: #6c63ff;">👥</span> 1,245
|
|
</div>
|
|
<p class="kpi-label">Active Members</p>
|
|
<div class="kpi-change positive">+3.2% since last month</div>
|
|
</div>
|
|
<div class="kpi-card">
|
|
<div class="kpi-value">
|
|
<span style="color: #4caf50;">$</span> 85,200
|
|
</div>
|
|
<p class="kpi-label">Monthly Revenue</p>
|
|
<div class="kpi-change positive">+5.1% since last month</div>
|
|
</div>
|
|
<div class="kpi-card">
|
|
<div class="kpi-value">
|
|
<span style="color: #ff9800;">🔥</span> 180
|
|
</div>
|
|
<p class="kpi-label">New Sales (Memberships)</p>
|
|
<div class="kpi-change negative">-1.5% since last month</div>
|
|
</div>
|
|
<div class="kpi-card">
|
|
<div class="kpi-value">
|
|
<span style="color: #f44336;">🏃</span> 450
|
|
</div>
|
|
<p class="kpi-label">Avg Daily Attendance</p>
|
|
<div class="kpi-change positive">+0.8% since last week</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="half-width-grid">
|
|
<div id="top-products-card" class="dashboard-section">
|
|
<h4>Top 5 Products/Services (Last 30 Days)</h4>
|
|
<div class="product-list">
|
|
<div class="product-item">
|
|
<span class="product-rank">1.</span>
|
|
<span class="product-image">💪</span>
|
|
<div class="product-info">
|
|
<strong>Premium Annual Membership</strong>
|
|
<small>Membership Package</small>
|
|
</div>
|
|
<div class="product-stats">
|
|
<div><span class="stat-value">55</span> Units</div>
|
|
<div><span class="stat-value">$18k</span> Revenue</div>
|
|
</div>
|
|
</div>
|
|
<div class="product-item">
|
|
<span class="product-rank">2.</span>
|
|
<span class="product-image">🏋️</span>
|
|
<div class="product-info">
|
|
<strong>Personal Training (10 Sessions)</strong>
|
|
<small>Activity/Service</small>
|
|
</div>
|
|
<div class="product-stats">
|
|
<div><span class="stat-value">42</span> Units</div>
|
|
<div><span class="stat-value">$12k</span> Revenue</div>
|
|
</div>
|
|
</div>
|
|
<div class="product-item">
|
|
<span class="product-rank">3.</span>
|
|
<span class="product-image">🥤</span>
|
|
<div class="product-info">
|
|
<strong>Protein Shake - Vanilla</strong>
|
|
<small>Retail/Quick Sale</small>
|
|
</div>
|
|
<div class="product-stats">
|
|
<div><span class="stat-value">315</span> Units</div>
|
|
<div><span class="stat-value">$3.1k</span> Revenue</div>
|
|
</div>
|
|
</div>
|
|
<div class="product-item">
|
|
<span class="product-rank">4.</span>
|
|
<span class="product-image">🧘</span>
|
|
<div class="product-info">
|
|
<strong>Morning Yoga Class Pass</strong>
|
|
<small>Activity/Service</small>
|
|
</div>
|
|
<div class="product-stats">
|
|
<div><span class="stat-value">110</span> Units</div>
|
|
<div><span class="stat-value">$2.2k</span> Revenue</div>
|
|
</div>
|
|
</div>
|
|
<div class="product-item">
|
|
<span class="product-rank">5.</span>
|
|
<span class="product-image">👕</span>
|
|
<div class="product-info">
|
|
<strong>Club T-Shirt</strong>
|
|
<small>Retail/Quick Sale</small>
|
|
</div>
|
|
<div class="product-stats">
|
|
<div><span class="stat-value">50</span> Units</div>
|
|
<div><span class="stat-value">$1.5k</span> Revenue</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="dashboard-section hot-sale-card">
|
|
<h4 style="margin-bottom: 5px;">Hottest Product of the Week</h4>
|
|
<p style="color: var(--text-medium); margin-bottom: 20px;">The item that's flying off the shelves.</p>
|
|
<div class="sales-count">55</div>
|
|
<p class="sales-label">Units of **Quick Hydration Drink** Sold</p>
|
|
<p class="product-name" style="margin-top: 20px;">Quick Hydration Drink</p>
|
|
<div class="kpi-change positive">+25% compared to last week</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="profit-summary-card" class="dashboard-section">
|
|
<h4>Quarterly Financial Summary</h4>
|
|
<div class="profit-data-grid">
|
|
<div class="profit-item">
|
|
<div class="value" style="color: #6c63ff;">$250k</div>
|
|
<div class="label">Total Revenue Q3</div>
|
|
</div>
|
|
<div class="profit-item">
|
|
<div class="value" style="color: #f44336;">$120k</div>
|
|
<div class="label">Total Expenses Q3</div>
|
|
</div>
|
|
<div class="profit-item">
|
|
<div class="value" style="color: #4caf50;">$130k</div>
|
|
<div class="label">Net Profit Q3</div>
|
|
</div>
|
|
<div class="profit-item">
|
|
<div class="value" style="color: #ff9800;">52%</div>
|
|
<div class="label">Profit Margin</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="placeholder-card">
|
|
<h2>Dashboard Complete</h2>
|
|
<p>All core business analytics sections are in place.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="packages_activities_page" class="page-container">
|
|
<div class="container-fluid p-0">
|
|
<h2 style="margin-top: 0;">Packages & Activities Management</h2>
|
|
<p class="text-secondary mb-4">Create, view, and manage all service packages, classes, and activities offered at your facility.</p>
|
|
|
|
<div class="row g-4">
|
|
<div class="col-md-6 col-lg-4">
|
|
<div class="card shadow-sm h-100">
|
|
<div class="card-body">
|
|
<h5 class="card-title text-primary">Membership Packages</h5>
|
|
<p class="card-text">Set up monthly, annual, and premium membership tiers with corresponding benefits and pricing.</p>
|
|
<button class="btn btn-sm btn-outline-primary">View Packages</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6 col-lg-4">
|
|
<div class="card shadow-sm h-100">
|
|
<div class="card-body">
|
|
<h5 class="card-title text-success">Activity & Class Schedule</h5>
|
|
<p class="card-text">Manage the timetable for all fitness classes, personal training, and group sessions.</p>
|
|
<button class="btn btn-sm btn-outline-success">View Schedule</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6 col-lg-4">
|
|
<div class="card shadow-sm h-100">
|
|
<div class="card-body">
|
|
<h5 class="card-title text-danger">Product Inventory</h5>
|
|
<p class="card-text">Track retail items like supplements, apparel, and gear for the Quick Sale POS.</p>
|
|
<button class="btn btn-sm btn-outline-danger">Manage Inventory</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-12">
|
|
<div class="card bg-primary text-white p-3 shadow">
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<h4 class="mb-0 text-white">Ready to add a new offering?</h4>
|
|
<button class="btn btn-light btn-lg">Create New Package</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="member_profile_page" class="page-container">
|
|
<h2 style="margin-top: 0;">Member Profile: Jane Doe</h2>
|
|
<div class="profile-card">
|
|
<div class="profile-header-content">
|
|
<img src="https://placehold.co/90x90/9c27b0/ffffff?text=JD" alt="Jane Doe" class="profile-pic">
|
|
<div class="profile-main-info">
|
|
<h3>Jane Doe</h3>
|
|
<p style="color: var(--text-medium);">Premium Annual Member</p>
|
|
<div class="stats-badges">
|
|
<div class="tag age">Age: 28</div>
|
|
<div class="tag places">Joined: 18 months ago</div>
|
|
<div class="tag active">Active Status</div>
|
|
</div>
|
|
</div>
|
|
<div class="action-group">
|
|
<button class="btn-primary" style="padding: 8px 15px;">Send Message</button>
|
|
<button class="btn-secondary" style="padding: 8px 15px;">Edit Profile</button>
|
|
</div>
|
|
</div>
|
|
<div class="details-grid">
|
|
<div><strong>Email:</strong> jane.doe@example.com</div>
|
|
<div><strong>Phone:</strong> (555) 123-4567</div>
|
|
<div><strong>Membership Type:</strong> Premium Annual</div>
|
|
<div><strong>Next Renewal:</strong> 2024-11-01</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="profile-tabs" id="profileTabs">
|
|
<button class="active" onclick="openTab(event, 'profile_activity')">Activity</button>
|
|
<button onclick="openTab(event, 'profile_invoices')">Invoices (6)</button>
|
|
<button onclick="openTab(event, 'profile_notes')">Notes & Goals</button>
|
|
</div>
|
|
|
|
<div id="profile_activity" class="tab-content-section active">
|
|
<div class="stats-card">
|
|
<h4 style="margin-bottom: 25px;">Key Activity Stats</h4>
|
|
<div class="stats-grid">
|
|
<div class="stat-box sessions">
|
|
<span class="count">25</span>
|
|
<span class="label">Total Sessions</span>
|
|
<div class="progress-bar-container"><div class="progress-bar"></div></div>
|
|
<small>Goal: 30 Sessions</small>
|
|
</div>
|
|
<div class="stat-box revenue">
|
|
<span class="count">$1200</span>
|
|
<span class="label">Revenue Generated</span>
|
|
<div class="progress-bar-container"><div class="progress-bar"></div></div>
|
|
<small>Includes PT & Retail</small>
|
|
</div>
|
|
<div class="stat-box attendance">
|
|
<span class="count">85%</span>
|
|
<span class="label">Class Attendance</span>
|
|
<div class="progress-bar-container"><div class="progress-bar"></div></div>
|
|
<small>Vs. Scheduled Classes</small>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="profile_invoices" class="tab-content-section">
|
|
<div class="placeholder-card">
|
|
<h2>Invoices</h2>
|
|
<p>Detailed list of invoices and payment history will appear here.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="profile_notes" class="tab-content-section">
|
|
<div class="placeholder-card">
|
|
<h2>Notes & Goals</h2>
|
|
<p>Staff notes and member's fitness goals will appear here.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="main_dashboard_page" class="page-container">
|
|
<div class="placeholder-card">
|
|
<h2>Main Dashboard</h2>
|
|
<p>This page is currently a placeholder.</p>
|
|
</div>
|
|
</div>
|
|
<div id="user_overview_page" class="page-container">
|
|
<div class="placeholder-card">
|
|
<h2>User Overview</h2>
|
|
<p>This page is currently a placeholder.</p>
|
|
</div>
|
|
</div>
|
|
<div id="invoicing_payments_page" class="page-container">
|
|
<div class="placeholder-card">
|
|
<h2>Invoicing & Payments</h2>
|
|
<p>This page is currently a placeholder.</p>
|
|
</div>
|
|
</div>
|
|
<div id="revenue_expenses_page" class="page-container">
|
|
<div class="placeholder-card">
|
|
<h2>Revenue & Expenses</h2>
|
|
<p>This page is currently a placeholder.</p>
|
|
</div>
|
|
</div>
|
|
<div id="budgeting_forecasting_page" class="page-container">
|
|
<div class="placeholder-card">
|
|
<h2>Budgeting & Forecasting</h2>
|
|
<p>This page is currently a placeholder.</p>
|
|
</div>
|
|
</div>
|
|
<div id="payroll_management_page" class="page-container">
|
|
<div class="placeholder-card">
|
|
<h2>Payroll Management</h2>
|
|
<p>This page is currently a placeholder.</p>
|
|
</div>
|
|
</div>
|
|
<div id="members_page" class="page-container">
|
|
<div class="placeholder-card">
|
|
<h2>Members</h2>
|
|
<p>Member list and filtering tools will be here.</p>
|
|
<button class="btn-primary" onclick="showPage('member_profile_page')">View Sample Profile (Jane Doe)</button>
|
|
</div>
|
|
</div>
|
|
<div id="member_directory_page" class="page-container">
|
|
<div class="placeholder-card">
|
|
<h2>Member Directory</h2>
|
|
<p>This page is currently a placeholder.</p>
|
|
</div>
|
|
</div>
|
|
<div id="enrollments_page" class="page-container">
|
|
<div class="placeholder-card">
|
|
<h2>Enrollments</h2>
|
|
<p>This page is currently a placeholder.</p>
|
|
</div>
|
|
</div>
|
|
<div id="attendance_page" class="page-container">
|
|
<div class="placeholder-card">
|
|
<h2>Attendance</h2>
|
|
<p>This page is currently a placeholder.</p>
|
|
</div>
|
|
</div>
|
|
<div id="workouts_page" class="page-container">
|
|
<div class="placeholder-card">
|
|
<h2>Workouts</h2>
|
|
<p>This page is currently a placeholder.</p>
|
|
</div>
|
|
</div>
|
|
<div id="health_progress_page" class="page-container">
|
|
<div class="placeholder-card">
|
|
<h2>Health & Progress</h2>
|
|
<p>This page is currently a placeholder.</p>
|
|
</div>
|
|
</div>
|
|
<div id="member_groups_page" class="page-container">
|
|
<div class="placeholder-card">
|
|
<h2>Member Groups</h2>
|
|
<p>This page is currently a placeholder.</p>
|
|
</div>
|
|
</div>
|
|
<div id="staff_management_page" class="page-container">
|
|
<div class="placeholder-card">
|
|
<h2>Staff Management</h2>
|
|
<p>This page is currently a placeholder.</p>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div> <div id="addMemberModal" class="modal-overlay">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h4>Add New Member</h4>
|
|
<button class="modal-close-btn" onclick="closeModal('addMemberModal')">×</button>
|
|
</div>
|
|
<form>
|
|
<div class="form-group">
|
|
<label for="member_name">Full Name</label>
|
|
<input type="text" id="member_name" placeholder="John Doe">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="member_email">Email</label>
|
|
<input type="email" id="member_email" placeholder="john@example.com">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="member_phone">Phone</label>
|
|
<input type="tel" id="member_phone" placeholder="(555) 555-5555">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="member_package">Select Package</label>
|
|
<select id="member_package">
|
|
<option>Standard Monthly</option>
|
|
<option>Premium Annual</option>
|
|
<option>Student Pass</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-actions">
|
|
<button type="button" class="btn-secondary" onclick="closeModal('addMemberModal')">Cancel</button>
|
|
<button type="submit" class="btn-primary">Create Member</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="quickSaleModal" class="modal-overlay">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<div>
|
|
<h4>Quick Sale Point of Sale</h4>
|
|
<p>Process retail items, single-day passes, or membership add-ons.</p>
|
|
</div>
|
|
<button class="modal-close-btn" onclick="closeModal('quickSaleModal')">×</button>
|
|
</div>
|
|
|
|
<div class="pos-container">
|
|
<div class="catalog-section">
|
|
<div class="form-group" style="margin-bottom: 5px; flex-shrink: 0;">
|
|
<input type="text" placeholder="Search products, services or packages...">
|
|
</div>
|
|
|
|
<div class="category-tabs">
|
|
<button class="category-tab-btn active">Retail</button>
|
|
<button class="category-tab-btn">Services</button>
|
|
<button class="category-tab-btn">Packages</button>
|
|
<button class="category-tab-btn">Classes</button>
|
|
</div>
|
|
|
|
<div class="product-grid">
|
|
<div class="product-tile">
|
|
<img src="https://placehold.co/80x80/f44336/ffffff?text=SHAKE" alt="Shake">
|
|
<strong>Protein Shake</strong>
|
|
<small>$10.00</small>
|
|
</div>
|
|
<div class="product-tile">
|
|
<img src="https://placehold.co/80x80/6c63ff/ffffff?text=Towel" alt="Towel">
|
|
<strong>Club Towel</strong>
|
|
<small>$15.00</small>
|
|
</div>
|
|
<div class="product-tile">
|
|
<img src="https://placehold.co/80x80/4caf50/ffffff?text=PASS" alt="Pass">
|
|
<strong>Day Pass</strong>
|
|
<small>$25.00</small>
|
|
</div>
|
|
<div class="product-tile">
|
|
<img src="https://placehold.co/80x80/ff9800/ffffff?text=PT" alt="PT">
|
|
<strong>1 Session PT</strong>
|
|
<small>$65.00</small>
|
|
</div>
|
|
<div class="product-tile">
|
|
<img src="https://placehold.co/80x80/00bcd4/ffffff?text=T-SHIRT" alt="Shirt">
|
|
<strong>T-Shirt</strong>
|
|
<small>$35.00</small>
|
|
</div>
|
|
<div class="product-tile">
|
|
<img src="https://placehold.co/80x80/9c27b0/ffffff?text=SUPP" alt="Supplement">
|
|
<strong>Pre-Workout</strong>
|
|
<small>$45.00</small>
|
|
</div>
|
|
<div class="product-tile">
|
|
<img src="https://placehold.co/80x80/f44336/ffffff?text=SHAKE" alt="Shake">
|
|
<strong>Protein Shake 2</strong>
|
|
<small>$10.00</small>
|
|
</div>
|
|
<div class="product-tile">
|
|
<img src="https://placehold.co/80x80/6c63ff/ffffff?text=Towel" alt="Towel">
|
|
<strong>Club Towel 2</strong>
|
|
<small>$15.00</small>
|
|
</div>
|
|
<div class="product-tile">
|
|
<img src="https://placehold.co/80x80/4caf50/ffffff?text=PASS" alt="Pass">
|
|
<strong>Day Pass 2</strong>
|
|
<small>$25.00</small>
|
|
</div>
|
|
<div class="product-tile">
|
|
<img src="https://placehold.co/80x80/ff9800/ffffff?text=PT" alt="PT">
|
|
<strong>1 Session PT 2</strong>
|
|
<small>$65.00</small>
|
|
</div>
|
|
<div class="product-tile">
|
|
<img src="https://placehold.co/80x80/00bcd4/ffffff?text=T-SHIRT" alt="Shirt">
|
|
<strong>T-Shirt 2</strong>
|
|
<small>$35.00</small>
|
|
</div>
|
|
<div class="product-tile">
|
|
<img src="https://placehold.co/80x80/9c27b0/ffffff?text=SUPP" alt="Supplement">
|
|
<strong>Pre-Workout 2</strong>
|
|
<small>$45.00</small>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="cart-section">
|
|
<h5>Current Sale</h5>
|
|
<div class="cart-list">
|
|
<div class="cart-item">
|
|
<div class="cart-item-info">
|
|
<span class="cart-item-name">Day Pass</span>
|
|
<span class="cart-item-price">$25.00 ea</span>
|
|
</div>
|
|
<div class="quantity-control">
|
|
<button class="qty-btn" title="Remove">-</button>
|
|
<span class="qty-display">1</span>
|
|
<button class="qty-btn" title="Add">+</button>
|
|
</div>
|
|
<div style="width: 50px; text-align: right; font-weight: 600;">$25.00</div>
|
|
</div>
|
|
<div class="cart-item">
|
|
<div class="cart-item-info">
|
|
<span class="cart-item-name">Protein Shake - Vanilla</span>
|
|
<span class="cart-item-price">$10.00 ea</span>
|
|
</div>
|
|
<div class="quantity-control">
|
|
<button class="qty-btn" title="Remove">-</button>
|
|
<span class="qty-display">3</span>
|
|
<button class="qty-btn" title="Add">+</button>
|
|
</div>
|
|
<div style="width: 50px; text-align: right; font-weight: 600;">$30.00</div>
|
|
</div>
|
|
<div class="cart-item">
|
|
<div class="cart-item-info">
|
|
<span class="cart-item-name">Club Towel</span>
|
|
<span class="cart-item-price">$15.00 ea</span>
|
|
</div>
|
|
<div class="quantity-control">
|
|
<button class="qty-btn" title="Remove">-</button>
|
|
<span class="qty-display">1</span>
|
|
<button class="qty-btn" title="Add">+</button>
|
|
</div>
|
|
<div style="width: 50px; text-align: right; font-weight: 600;">$15.00</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="cart-totals">
|
|
<div class="total-row">
|
|
<span>Subtotal</span>
|
|
<span>$70.00</span>
|
|
</div>
|
|
<div class="total-row">
|
|
<span>Tax (5%)</span>
|
|
<span>$3.50</span>
|
|
</div>
|
|
<div class="total-row grand-total">
|
|
<span>Total Due</span>
|
|
<span>$73.50</span>
|
|
</div>
|
|
|
|
<div class="form-group" style="margin-top: 15px;">
|
|
<label for="member_id" style="font-size: 14px; font-weight: 700;">Member ID</label>
|
|
<input type="text" id="member_id" placeholder="Assign to Member (Optional)">
|
|
</div>
|
|
|
|
<div class="pay-button-container">
|
|
<button class="btn-primary pay-button" style="background-color: #4caf50;">Process Payment ($73.50)</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script>
|
|
// Helper function to show a modal
|
|
function showModal(modalId) {
|
|
document.getElementById(modalId).classList.add('open');
|
|
}
|
|
|
|
// Helper function to close a modal
|
|
function closeModal(modalId) {
|
|
document.getElementById(modalId).classList.remove('open');
|
|
}
|
|
|
|
// Quick Sale Modal specific function (can be integrated into showModal if preferred)
|
|
function showQuickSaleModal() {
|
|
showModal('quickSaleModal');
|
|
}
|
|
|
|
// Helper function to toggle a dropdown
|
|
function toggleDropdown(dropdownId) {
|
|
closeAllDropdowns(dropdownId); // Close others
|
|
document.getElementById(dropdownId).classList.toggle('show');
|
|
}
|
|
|
|
// Function to close all dropdowns except a potentially ignored one
|
|
function closeAllDropdowns(ignoreId) {
|
|
var dropdowns = document.getElementsByClassName("dropdown-content");
|
|
for (let i = 0; i < dropdowns.length; i++) {
|
|
if (dropdowns[i].id !== ignoreId) {
|
|
dropdowns[i].classList.remove('show');
|
|
}
|
|
}
|
|
}
|
|
|
|
// Core function to switch pages and update sidebar/breadcrumbs
|
|
function showPage(pageId, clickedLink) {
|
|
// 1. Hide all pages
|
|
var pages = document.getElementsByClassName('page-container');
|
|
for (let i = 0; i < pages.length; i++) {
|
|
pages[i].classList.remove('active-page');
|
|
}
|
|
|
|
// 2. Show the requested page
|
|
document.getElementById(pageId).classList.add('active-page');
|
|
|
|
// 3. Update active link in sidebar
|
|
var links = document.querySelectorAll('.sidebar a');
|
|
for (let i = 0; i < links.length; i++) {
|
|
links[i].classList.remove('active-link');
|
|
}
|
|
if (clickedLink) {
|
|
clickedLink.classList.add('active-link');
|
|
} else {
|
|
// Fallback for direct page calls (like from profile button)
|
|
document.getElementById('link_' + pageId).classList.add('active-link');
|
|
}
|
|
|
|
// 4. Update Breadcrumbs
|
|
updateBreadcrumbs(pageId);
|
|
}
|
|
|
|
// Function to dynamically update breadcrumbs
|
|
function updateBreadcrumbs(pageId) {
|
|
const breadcrumbsEl = document.getElementById('breadcrumbs');
|
|
const linkElement = document.getElementById('link_' + pageId);
|
|
|
|
let breadcrumbText = '';
|
|
|
|
if (linkElement) {
|
|
const linkText = linkElement.textContent.trim().split(' ')[1]; // Get text after icon
|
|
|
|
// Find the parent <h4> for the section name
|
|
let parentH4 = 'General';
|
|
let element = linkElement.previousElementSibling;
|
|
while (element) {
|
|
if (element.tagName === 'H4') {
|
|
parentH4 = element.textContent.trim();
|
|
break;
|
|
}
|
|
element = element.previousElementSibling;
|
|
}
|
|
|
|
if (pageId.includes('profile')) {
|
|
// Special case for Member Profile
|
|
breadcrumbText = `${parentH4} <span>></span> Members <span>></span> <strong>Jane Doe</strong>`;
|
|
} else if (parentH4 === 'Core Business') {
|
|
// Special handling for dashboard page
|
|
breadcrumbText = `${parentH4} <span>></span> <strong>${linkText}</strong>`;
|
|
} else {
|
|
breadcrumbText = `${parentH4} <span>></span> <strong>${linkText}</strong>`;
|
|
}
|
|
} else {
|
|
// Fallback for pages without a direct link (e.g., member_profile_page)
|
|
if (pageId === 'member_profile_page') {
|
|
breadcrumbText = `People Management <span>></span> Members <span>></span> <strong>Jane Doe</strong>`;
|
|
} else {
|
|
breadcrumbText = `Page not found: ${pageId}`;
|
|
}
|
|
}
|
|
|
|
breadcrumbsEl.innerHTML = breadcrumbText;
|
|
|
|
document.querySelector('.main-content').scrollTop = 0;
|
|
}
|
|
|
|
function openTab(evt, tabName) {
|
|
var i, tabcontent, tablinks;
|
|
|
|
tabcontent = document.getElementsByClassName("tab-content-section");
|
|
for (i = 0; i < tabcontent.length; i++) {
|
|
tabcontent[i].classList.remove("active");
|
|
}
|
|
|
|
tablinks = document.getElementById("profileTabs").getElementsByTagName("button");
|
|
for (i = 0; i < tablinks.length; i++) {
|
|
tablinks[i].classList.remove("active");
|
|
}
|
|
|
|
document.getElementById(tabName).classList.add("active");
|
|
evt.currentTarget.classList.add("active");
|
|
}
|
|
|
|
window.onclick = function(event) {
|
|
// Close all dropdowns if the click is outside any dropdown container
|
|
if (!event.target.closest('.dropdown')) {
|
|
closeAllDropdowns();
|
|
}
|
|
}
|
|
|
|
window.onload = function() {
|
|
document.getElementById('dashboard_page').classList.add('active-page');
|
|
document.getElementById('link_dashboard_page').classList.add('active-link');
|
|
}
|
|
</script>
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
|
|
</body>
|
|
</html> |