anycoder-c159d931 / index.html
briskwave's picture
Upload folder using huggingface_hub
ecbfafb verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WebPlato WordPress Setup Wizard</title>
<!-- Icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
:root {
--primary: #4f46e5;
--primary-hover: #4338ca;
--secondary: #64748b;
--success: #10b981;
--warning: #f59e0b;
--danger: #ef4444;
--bg-body: #f1f5f9;
--bg-card: #ffffff;
--text-main: #1e293b;
--text-muted: #64748b;
--border: #e2e8f0;
--sidebar-width: 280px;
--header-height: 70px;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Inter', sans-serif;
background-color: var(--bg-body);
color: var(--text-main);
height: 100vh;
display: flex;
overflow: hidden;
}
/* --- Sidebar --- */
.sidebar {
width: var(--sidebar-width);
background: var(--bg-card);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
z-index: 10;
transition: transform 0.3s ease;
}
.sidebar-header {
height: var(--header-height);
display: flex;
align-items: center;
padding: 0 20px;
border-bottom: 1px solid var(--border);
}
.logo {
font-weight: 800;
font-size: 1.5rem;
color: var(--primary);
display: flex;
align-items: center;
gap: 10px;
}
.sidebar-nav {
flex: 1;
overflow-y: auto;
padding: 20px 0;
}
.nav-item {
padding: 12px 20px;
display: flex;
align-items: center;
gap: 12px;
color: var(--text-muted);
text-decoration: none;
cursor: pointer;
transition: all 0.2s;
font-size: 0.95rem;
border-left: 3px solid transparent;
}
.nav-item:hover {
background-color: #f8fafc;
color: var(--primary);
}
.nav-item.active {
background-color: #eef2ff;
color: var(--primary);
border-left-color: var(--primary);
font-weight: 600;
}
.nav-item i {
width: 20px;
text-align: center;
}
/* --- Main Content --- */
.main-content {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
}
.top-bar {
height: var(--header-height);
background: var(--bg-card);
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 30px;
}
.breadcrumb {
font-size: 0.9rem;
color: var(--text-muted);
}
.breadcrumb span {
color: var(--text-main);
font-weight: 600;
}
.progress-container {
display: flex;
align-items: center;
gap: 15px;
}
.progress-label {
font-size: 0.85rem;
font-weight: 600;
}
.progress-bar-bg {
width: 200px;
height: 8px;
background: #e2e8f0;
border-radius: 4px;
overflow: hidden;
}
.progress-bar-fill {
height: 100%;
background: var(--success);
width: 0%;
transition: width 0.5s ease;
}
.content-area {
flex: 1;
overflow-y: auto;
padding: 30px;
}
/* --- Sections --- */
.section-panel {
display: none;
animation: fadeIn 0.3s ease;
}
.section-panel.active {
display: block;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.panel-header {
margin-bottom: 25px;
}
.panel-title {
font-size: 1.8rem;
font-weight: 700;
margin-bottom: 10px;
}
.panel-desc {
color: var(--text-muted);
max-width: 800px;
line-height: 1.6;
}
/* --- Cards & Grids --- */
.grid-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 20px;
margin-bottom: 30px;
}
.card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 8px;
padding: 20px;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 1px solid #f1f5f9;
}
.card-title {
font-weight: 600;
color: var(--text-main);
display: flex;
align-items: center;
gap: 8px;
}
/* --- Forms & Inputs --- */
.form-group {
margin-bottom: 15px;
}
.form-label {
display: block;
margin-bottom: 8px;
font-size: 0.9rem;
font-weight: 500;
}
.form-control {
width: 100%;
padding: 10px 12px;
border: 1px solid var(--border);
border-radius: 6px;
font-family: inherit;
font-size: 0.95rem;
transition: border-color 0.2s;
}
.form-control:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 10px 20px;
border-radius: 6px;
font-weight: 500;
cursor: pointer;
border: none;
transition: all 0.2s;
gap: 8px;
}
.btn-primary {
background: var(--primary);
color: white;
}
.btn-primary:hover {
background: var(--primary-hover);
}
.btn-success {
background: var(--success);
color: white;
}
.btn-outline {
background: transparent;
border: 1px solid var(--border);
color: var(--text-main);
}
.btn-sm {
padding: 6px 12px;
font-size: 0.85rem;
}
/* --- Checklists --- */
.checklist-item {
display: flex;
align-items: flex-start;
padding: 12px;
border-bottom: 1px solid #f1f5f9;
transition: background 0.2s;
}
.checklist-item:last-child {
border-bottom: none;
}
.checklist-item:hover {
background: #f8fafc;
}
.checkbox-wrapper {
margin-right: 15px;
padding-top: 2px;
}
.custom-checkbox {
width: 20px;
height: 20px;
cursor: pointer;
accent-color: var(--success);
}
.checklist-content h4 {
font-size: 1rem;
margin-bottom: 4px;
}
.checklist-content p {
font-size: 0.85rem;
color: var(--text-muted);
}
/* --- Status Badges --- */
.badge {
padding: 4px 8px;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
}
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }
/* --- Code Block --- */
.code-block {
background: #1e293b;
color: #e2e8f0;
padding: 15px;
border-radius: 6px;
font-family: 'Courier New', monospace;
font-size: 0.85rem;
overflow-x: auto;
margin-top: 10px;
}
/* --- Responsive --- */
@media (max-width: 768px) {
.sidebar {
position: fixed;
left: -280px;
height: 100%;
}
.sidebar.open {
left: 0;
}
.main-content {
width: 100%;
}
.mobile-toggle {
display: block;
margin-right: 15px;
font-size: 1.2rem;
cursor: pointer;
}
}
@media (min-width: 769px) {
.mobile-toggle {
display: none;
}
}
/* Toast Notification */
.toast {
position: fixed;
bottom: 20px;
right: 20px;
background: var(--text-main);
color: white;
padding: 12px 24px;
border-radius: 8px;
box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
transform: translateY(100px);
opacity: 0;
transition: all 0.3s;
z-index: 100;
display: flex;
align-items: center;
gap: 10px;
}
.toast.show {
transform: translateY(0);
opacity: 1;
}
.toast i { color: var(--success); }
.anycoder-link {
font-size: 0.75rem;
color: var(--text-muted);
text-decoration: none;
margin-top: 5px;
display: block;
}
.anycoder-link:hover { text-decoration: underline; color: var(--primary); }
</style>
</head>
<body>
<!-- Sidebar -->
<nav class="sidebar" id="sidebar">
<div class="sidebar-header">
<div class="logo">
<i class="fa-solid fa-layer-group"></i> WebPlato
</div>
</div>
<div class="sidebar-nav">
<a class="nav-item active" onclick="switchTab('part1', this)"><i class="fa-solid fa-wand-magic-sparkles"></i> Part 1: Core Setup</a>
<a class="nav-item" onclick="switchTab('part2', this)"><i class="fa-solid fa-cart-shopping"></i> Part 2: EDD Config</a>
<a class="nav-item" onclick="switchTab('part3', this)"><i class="fa-solid fa-chart-line"></i> Part 3: Admin Panel</a>
<a class="nav-item" onclick="switchTab('part4', this)"><i class="fa-solid fa-users-gear"></i> Part 4: Roles</a>
<a class="nav-item" onclick="switchTab('part5', this)"><i class="fa-solid fa-plug"></i> Part 5: Plugins</a>
<a class="nav-item" onclick="switchTab('part6', this)"><i class="fa-solid fa-file-code"></i> Part 6: Templates</a>
<a class="nav-item" onclick="switchTab('part7', this)"><i class="fa-solid fa-magnifying-glass-chart"></i> Part 7: SEO</a>
<a class="nav-item" onclick="switchTab('part8', this)"><i class="fa-solid fa-shield-halved"></i> Part 8: Security</a>
<a class="nav-item" onclick="switchTab('part9', this)"><i class="fa-solid fa-headset"></i> Part 9: CX Features</a>
<a class="nav-item" onclick="switchTab('part10', this)"><i class="fa-solid fa-clipboard-check"></i> Part 10: Testing</a>
<a class="nav-item" onclick="switchTab('part11', this)"><i class="fa-solid fa-box-open"></i> Part 11: Deliverables</a>
</div>
<div style="padding: 20px;">
<div style="background: #eef2ff; padding: 15px; border-radius: 8px; text-align: center;">
<h5 style="color: var(--primary); margin-bottom: 5px;">WebPlato v1.0</h5>
<p style="font-size: 0.8rem; color: var(--text-muted);">System Ready</p>
<a href="https://huggingface.co/spaces/akhaliq/anycoder" class="anycoder-link" target="_blank">Built with anycoder</a>
</div>
</div>
</nav>
<!-- Main Content -->
<main class="main-content">
<!-- Top Bar -->
<header class="top-bar">
<div style="display: flex; align-items: center;">
<i class="fa-solid fa-bars mobile-toggle" onclick="toggleSidebar()"></i>
<div class="breadcrumb">
Dashboard / <span id="current-section-name">Core Setup</span>
</div>
</div>
<div class="progress-container">
<span class="progress-label">Setup Progress</span>
<div class="progress-bar-bg">
<div class="progress-bar-fill" id="main-progress"></div>
</div>
<span id="progress-text" style="font-size: 0.8rem; font-weight: 600; color: var(--text-muted);">0%</span>
</div>
</header>
<!-- Content Area -->
<div class="content-area">
<!-- PART 1: Core Setup -->
<div id="part1" class="section-panel active">
<div class="panel-header">
<h1 class="panel-title">Part 1: WordPress Core Setup</h1>
<p class="panel-desc">Initialize the foundation of your WebPlato store by creating essential pages and configuring basic WordPress settings.</p>
</div>
<div class="grid-container">
<div class="card" style="grid-column: 1 / -1;">
<div class="card-header">
<div class="card-title"><i class="fa-solid fa-sitemap"></i> Essential Pages</div>
<button class="btn btn-primary btn-sm" onclick="simulateAction('Creating all pages...', 'All pages created successfully!')">
<i class="fa-solid fa-plus"></i> Create All Pages
</button>
</div>
<div style="overflow-x: auto;">
<table style="width: 100%; border-collapse: collapse; font-size: 0.9rem;">
<thead>
<tr style="text-align: left; border-bottom: 2px solid #f1f5f9;">
<th style="padding: 10px;">Page Name</th>
<th style="padding: 10px;">Slug</th>
<th style="padding: 10px;">Template</th>
<th style="padding: 10px;">Status</th>
</tr>
</thead>
<tbody>
<tr>
<td style="padding: 10px; font-weight: 600;">Home</td>
<td style="padding: 10px; color: var(--text-muted);">home</td>
<td style="padding: 10px;">front-page.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">Shop</td>
<td style="padding: 10px; color: var(--text-muted);">shop</td>
<td style="padding: 10px;">page-shop.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">Cart</td>
<td style="padding: 10px; color: var(--text-muted);">cart</td>
<td style="padding: 10px;">page-cart.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">Checkout</td>
<td style="padding: 10px; color: var(--text-muted);">checkout</td>
<td style="padding: 10px;">page-checkout.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">My Account</td>
<td style="padding: 10px; color: var(--text-muted);">my-account</td>
<td style="padding: 10px;">page-account.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">Purchase History</td>
<td style="padding: 10px; color: var(--text-muted);">purchase-history</td>
<td style="padding: 10px;">page-purchase-history.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">About Us</td>
<td style="padding: 10px; color: var(--text-muted);">about</td>
<td style="padding: 10px;">page-about.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">Contact Us</td>
<td style="padding: 10px; color: var(--text-muted);">contact</td>
<td style="padding: 10px;">page-contact.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">Terms & Conditions</td>
<td style="padding: 10px; color: var(--text-muted);">terms</td>
<td style="padding: 10px;">page-terms.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">Privacy Policy</td>
<td style="padding: 10px; color: var(--text-muted);">privacy</td>
<td style="padding: 10px;">page-privacy.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">FAQ</td>
<td style="padding: 10px; color: var(--text-muted);">faq</td>
<td style="padding: 10px;">page-faq.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">Support</td>
<td style="padding: 10px; color: var(--text-muted);">support</td>
<td style="padding: 10px;">page-support.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">Blog</td>
<td style="padding: 10px; color: var(--text-muted);">blog</td>
<td style="padding: 10px;">page-blog.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">Affiliate Program</td>
<td style="padding: 10px; color: var(--text-muted);">affiliate</td>
<td style="padding: 10px;">page-affiliate.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="card">
<div class="card-header">
<div class="card-title"><i class="fa-solid fa-gear"></i> General Settings</div>
</div>
<div class="form-group">
<label class="form-label">Front Page Displays</label>
<div style="display: flex; gap: 10px; align-items: center;">
<span>A static page:</span>
<select class="form-control" style="width: 200px;">
<option>Home</option>
</select>
</div>
</div>
<div class="form-group">
<label class="form-label">Posts Page</label>
<select class="form-control" style="width: 200px;">
<option>Blog</option>
</select>
</div>
<button class="btn btn-primary" onclick="simulateAction('Saving settings...', 'Settings saved!')">Save Changes</button>
</div>
</div>
<!-- PART 2: EDD Config -->
<div id="part2" class="section-panel">
<div class="panel-header">
<h1 class="panel-title">Part 2: Easy Digital Downloads Configuration</h1>
<p class="panel-desc">Configure payment gateways, currency, and product categories for your digital store.</p>
</div>
<div class="grid-container">
<div class="card">
<div class="card-header">
<div class="card-title"><i class="fa-solid fa-money-bill-wave"></i> General Settings</div>
</div>
<div class="form-group">
<label class="form-label">Currency</label>
<select class="form-control">
<option>USD ($)</option>
<option>EUR (€)</option>
<option>GBP (£)</option>
</select>
</div>
<div class="form-group">
<label class="form-label">Currency Position</label>
<select class="form-control">
<option>Left ($10.00)</option>
<option>Right (10.00$)</option>
</select>
</div>
<div class="form-group">
<label class="form-label">Decimal Separator</label>
<input type="text" class="form-control" value=".">
</div>
<div class="form-group">
<label class="form-label">Thousands Separator</label>
<input type="text" class="form-control" value=",">
</div>
<button class="btn btn-primary btn-sm" onclick="simulateAction('Saving...', 'General settings updated.')">Update</button>
</div>
<div class="card">
<div class="card-header">
<div class="card-title"><i class="fa-regular fa-credit-card"></i> Payment Gateways</div>
</div>
<div class="checklist-item" style="padding: 10px 0;">
<input type="checkbox" class="custom-checkbox" checked>
<span style="margin-left: 10px;">PayPal Standard</span>
</div>
<div class="checklist-item" style="padding: 10px 0;">
<input type="checkbox" class="custom-checkbox" checked>
<span style="margin-left: 10px;">Stripe</span>
</div>
<div class="checklist-item" style="padding: 10px 0;">
<input type="checkbox" class="custom-checkbox">
<span style="margin-left: 10px;">Manual Payments</span>
</div>
<div class="form-group" style="margin-top: 10px;">
<label class="form-label">Default Gateway</label>
<select class="form-control">
<option>Stripe</option>
<option>PayPal</option>
</select>
</div>
<button class="btn btn-primary btn-sm" onclick="simulateAction('Configuring...', 'Gateways configured.')">Configure Keys</button>
</div>
</div>
<div class="card">
<div class="card-header">
<div class="card-title"><i class="fa-solid fa-tags"></i> Product Categories</div>
</div>
<p style="font-size: 0.9rem; margin-bottom: 15px; color: var(--text-muted);">The following categories have been auto-generated based on your requirements.</p>
<div class="grid-container" style="grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 0;">
<div class="checklist-item" style="border: 1px solid var(--border); border-radius: 6px; flex-direction: column;">
<div style="font-weight: 600; margin-bottom: 5px;">Gift Cards</div>
<div style="font-size: 0.8rem; color: var(--text-muted);">slug: gift-cards</div>
</div>
<div class="checklist-item" style="border: 1px solid var(--border); border-radius: 6px; flex-direction: column;">
<div style="font-weight: 600; margin-bottom: 5px;">Games</div>
<div style="font-size: 0.8rem; color: var(--text-muted);">slug: games</div>
</div>
<div class="checklist-item" style="border: 1px solid var(--border); border-radius: 6px; flex-direction: column;">
<div style="font-weight: 600; margin-bottom: 5px;">Game Coaching</div>
<div style="font-size: 0.8rem; color: var(--text-muted);">slug: game-coaching</div>
</div>
<div class="checklist-item" style="border: 1px solid var(--border); border-radius: 6px; flex-direction: column;">
<div style="font-weight: 600; margin-bottom: 5px;">GamePal</div>
<div style="font-size: 0.8rem; color: var(--text-muted);">slug: gamepal</div>
</div>
<div class="checklist-item" style="border: 1px solid var(--border); border-radius: 6px; flex-direction: column;">
<div style="font-weight: 600; margin-bottom: 5px;">Game Coins</div>
<div style="font-size: 0.8rem; color: var(--text-muted);">slug: game-coins</div>
</div>
<div class="checklist-item" style="border: 1px solid var(--border); border-radius: 6px; flex-direction: column;">
<div style="font-weight: 600; margin-bottom: 5px;">Items</div>
<div style="font-size: 0.8rem; color: var(--text-muted);">slug: items</div>
</div>
<div class="checklist-item" style="border: 1px solid var(--border); border-radius: 6px; flex-direction: column;">
<div style="font-weight: 600; margin-bottom: 5px;">Accounts</div>
<div style="font-size: 0.8rem; color: var(--text-muted);">slug: accounts</div>
</div>
<div class="checklist-item" style="border: 1px solid var(--border); border-radius: 6px; flex-direction: column;">
<div style="font-weight: 600; margin-bottom: 5px;">Boosting</div>
<div style="font-size: 0.8rem; color: var(--text-muted);">slug: boosting</div>
</div>
<div class="checklist-item" style="border: 1px solid var(--border); border-radius: 6px; flex-direction: column;">
<div style="font-weight: 600; margin-bottom: 5px;">Skins</div>
<div style="font-size: 0.8rem; color: var(--text-muted);">slug: skins</div>
</div>
<div class="checklist-item" style="border: 1px solid var(--border); border-radius: 6px; flex-direction: column;">
<div style="font-weight: 600; margin-bottom: 5px;">Telco</div>
<div style="font-size: 0.8rem; color: var(--text-muted);">slug: telco</div>
</div>
<div class="checklist-item" style="border: 1px solid var(--border); border-radius: 6px; flex-direction: column;">
<div style="font-weight: 600; margin-bottom: 5px;">Software & Apps</div>
<div style="font-size: 0.8rem; color: var(--text-muted);">slug: software-apps</div>
</div>
<div class="checklist-item" style="border: 1px solid var(--border); border-radius: 6px; flex-direction: column;">
<div style="font-weight: 600; margin-bottom: 5px;">Payment Cards</div>
<div style="font-size: 0.8rem; color: var(--text-muted);">slug: payment-cards</div>
</div>
</div>
</div>
</div>
<!-- PART 3: Admin Panel -->
<div id="part3" class="section-panel">
<div class="panel-header">
<h1 class="panel-title">Part 3: Admin Dashboard Extensions</h1>
<p class="panel-desc">Structure your custom admin menu "WebPlato" for easy management.</p>
</div>
<div class="card">
<div class="card-header">
<div class="card-title"><i class="fa-solid fa-bars"></i> WebPlato Menu Structure</div>
</div>
<div class="code-block">
// PHP Logic for add_menu_page and add_submenu_page
add_menu_page( 'WebPlato', 'WebPlato', 'manage_options', 'webplato', 'webplato_dashboard', 'dashicons-store', 6 );
add_submenu_page( 'webplato', 'Dashboard', 'Dashboard Overview', 'manage_options', 'webplato', 'webplato_dashboard' );
add_submenu_page( 'webplato', 'Settings', 'Store Settings', 'manage_options', 'webplato-settings', 'webplato_settings' );
add_submenu_page( 'webplato', 'Products', 'Product Management', 'manage_options', 'webplato-products', 'webplato_products' );
add_submenu_page( 'webplato', 'Orders', 'Order Management', 'manage_options', 'webplato-orders', 'webplato_orders' );
add_submenu_page( 'webplato', 'Customers', 'Customer Management', 'manage_options', 'webplato-customers', 'webplato_customers' );
add_submenu_page( 'webplato', 'Discounts', 'Discount Codes', 'manage_options', 'webplato-discounts', 'webplato_discounts' );
add_submenu_page( 'webplato', 'Reports', 'Reports & Analytics', 'manage_options', 'webplato-reports', 'webplato_reports' );
add_submenu_page( 'webplato', 'Affiliates', 'Affiliate System', 'manage_options', 'webplato-affiliates', 'webplato_affiliates' );
add_submenu_page( 'webplato', 'System', 'System Status', 'manage_options', 'webplato-system', 'webplato_system' );
</div>
</div>
<div class="grid-container" style="margin-top: 20px;">
<div class="card">
<div class="card-title"><i class="fa-solid fa-chart-pie"></i> Dashboard Overview</div>
<p style="font-size: 0.9rem; color: var(--text-muted); margin: 10px 0;">Includes sales stats, recent orders, popular products chart.</p>
<button class="btn btn-outline btn-sm" onclick="simulateAction('Loading...', 'Dashboard loaded.')">Preview</button>
</div>
<div class="card">
<div class="card-title"><i class="fa-solid fa-file-import"></i> Bulk Import</div>
<p style="font-size: 0.9rem; color: var(--text-muted); margin: 10px 0;">CSV Import/Export for products.</p>
<button class="btn btn-outline btn-sm" onclick="simulateAction('Loading...', 'Importer ready.')">Open Importer</button>
</div>
<div class="card">
<div class="card-title"><i class="fa-solid fa-user-shield"></i> System Status</div>
<p style="font-size: 0.9rem; color: var(--text-muted); margin: 10px 0;">WP Environment, Conflicts, Debug Mode.</p>
<button class="btn btn-outline btn-sm" onclick="simulateAction('Scanning...', 'Scan complete.')">Run Scan</button>
</div>
</div>
</div>
<!-- PART 4: Roles -->
<div id="part4" class="section-panel">
<div class="panel-header">
<h1 class="panel-title">Part 4: User Roles & Permissions</h1>
<p class="panel-desc">Create custom roles to segregate duties within the WebPlato ecosystem.</p>
</div>
<div class="grid-container">
<div class="card">
<div class="card-header">
<div class="card-title"><i class="fa-solid fa-user-tie"></i> Store Manager</div>
<span class="badge badge-blue">Custom</span>
</div>
<ul style="list-style: none; font-size: 0.9rem; color: var(--text-muted);">
<li style="margin-bottom: 5px;"><i class="fa-solid fa-check" style="color: var(--success);"></i> Manage all products</li>
<li style="margin-bottom: 5px;"><i class="fa-solid fa-check" style="color: var(--success);"></i> Manage orders & customers</li>
<li style="margin-bottom: 5px;"><i class="fa-solid fa-check" style="color: var(--success);"></i> Full EDD capabilities</li>
<li style="margin-bottom: 5px;"><i class="fa-solid fa-xmark" style="color: var(--danger);"></i> No plugin install access</li>
</ul>
<button class="btn btn-success btn-sm" style="width: 100%; margin-top: 15px;" onclick="simulateAction('Creating role...', 'Role created.')">Create Role</button>
</div>
<div class="card">
<div class="card-header">
<div class="card-title"><i class="fa-solid fa-link"></i> Affiliate</div>
<span class="badge badge-blue">Custom</span>
</div>
<ul style="list-style: none; font-size: 0.9rem; color: var(--text-muted);">
<li style="margin-bottom: 5px;"><i class="fa-solid fa-check" style="color: var(--success);"></i> View own referrals</li>
<li style="margin-bottom: 5px;"><i class="fa-solid fa-check" style="color: var(--success);"></i> View commissions</li>
<li style="margin-bottom: 5px;"><i class="fa-solid fa-check" style="color: var(--success);"></i> Access affiliate dashboard</li>
</ul>
<button class="btn btn-success btn-sm" style="width: 100%; margin-top: 15px;" onclick="simulateAction('Creating role...', 'Role created.')">Create Role</button>
</div>
<div class="card">
<div class="card-header">
<div class="card-title"><i class="fa-solid fa-headset"></i> Support Agent</div>
<span class="badge badge-blue">Custom</span>
</div>
<ul style="list-style: none; font-size: 0.9rem; color: var(--text-muted);">
<li style="margin-bottom: 5px;"><i class="fa-solid fa-check" style="color: var(--success);"></i> View orders & customers</li>
<li style="margin-bottom: 5px;"><i class="fa-solid fa-check" style="color: var(--success);"></i> Respond to tickets</li>
<li style="margin-bottom: 5px;"><i class="fa-solid fa-xmark" style="color: var(--danger);"></i> Cannot edit products</li>
</ul>
<button class="btn btn-success btn-sm" style="width: 100%; margin-top: 15px;" onclick="simulateAction('Creating role...', 'Role created.')">Create Role</button>
</div>
</div>
</div>
<!-- PART 5: Plugins -->
<div id="part5" class="section-panel">
<div class="panel-header">
<h1 class="panel-title">Part 5: Required Plugins</h1>
<p class="panel