35239-vm/index.php
Flatlogic Bot ccc924ba43 ver1
2025-10-26 14:24:09 +00:00

210 lines
11 KiB
PHP

<?php require_once 'includes/session.php'; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FAST ACCOUNTING</title>
<meta name="description" content="Modern, full-stack accounting software for any business. Manage invoices, inventory, and financial reports with ease.">
<meta name="keywords" content="accounting software, invoicing, inventory management, financial reporting, GST, purchase orders, sales orders, small business accounting, Built with Flatlogic Generator">
<meta property="og:title" content="FAST ACCOUNTING">
<meta property="og:description" content="Modern, full-stack accounting software for any business. Manage invoices, inventory, and financial reports with ease.">
<meta property="og:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? ''); ?>">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? ''); ?>">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
</head>
<body>
<!-- Header -->
<nav class="navbar navbar-expand-lg navbar-light bg-white sticky-top shadow-sm">
<div class="container">
<a class="navbar-brand" href="#">FAST ACCOUNTING</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item"><a class="nav-link" href="#features">Features</a></li>
<li class="nav-item"><a class="nav-link" href="#">Pricing</a></li>
<?php if (isset($_SESSION['user_id'])): ?>
<li class="nav-item">
<a href="dashboard.php" class="btn btn-outline-primary">Dashboard</a>
</li>
<li class="nav-item mx-lg-2">
<a href="logout.php" class="btn btn-primary">Logout</a>
</li>
<?php else: ?>
<li class="nav-item mx-lg-2">
<button class="btn btn-outline-primary" data-bs-toggle="modal" data-bs-target="#loginModal">Login</button>
</li>
<li class="nav-item">
<button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#signupModal">Sign Up</button>
</li>
<?php endif; ?>
</ul>
</div>
</div>
</nav>
<!-- Hero Section -->
<header class="hero text-center">
<div class="container">
<h1 class="display-4">Modern Accounting, Made Simple.</h1>
<p class="lead text-muted my-4">The all-in-one accounting platform to manage your finances, from invoices to inventory. <br>Focus on your business, we'll handle the numbers.</p>
<button class="btn btn-primary btn-lg" data-bs-toggle="modal" data-bs-target="#signupModal">Get Started for Free</button>
</div>
</header>
<!-- Features Section -->
<section id="features" class="py-5">
<div class="container">
<div class="text-center mb-5">
<h2>Everything Your Business Needs</h2>
<p class="lead text-muted">A complete suite of tools to streamline your financial operations.</p>
</div>
<div class="row g-4">
<div class="col-md-4">
<div class="card h-100 text-center p-4 border-0 shadow-sm">
<div class="feature-icon bg-primary text-white bg-opacity-75 mb-3 mx-auto">
<i class="bi bi-receipt-cutoff fs-2"></i>
</div>
<h3 class="h5">Easy Invoicing</h3>
<p class="text-muted">Create and send professional invoices in seconds. Track payments and get paid faster.</p>
</div>
</div>
<div class="col-md-4">
<div class="card h-100 text-center p-4 border-0 shadow-sm">
<div class="feature-icon bg-success text-white bg-opacity-75 mb-3 mx-auto">
<i class="bi bi-box-seam fs-2"></i>
</div>
<h3 class="h5">Inventory Control</h3>
<p class="text-muted">Manage stock levels, track goods, and automate purchase orders to avoid stockouts.</p>
</div>
</div>
<div class="col-md-4">
<div class="card h-100 text-center p-4 border-0 shadow-sm">
<div class="feature-icon bg-info text-white bg-opacity-75 mb-3 mx-auto">
<i class="bi bi-bar-chart-line fs-2"></i>
</div>
<h3 class="h5">Financial Reports</h3>
<p class="text-muted">Generate real-time reports like P&L, Balance Sheets, and Trial Balance with one click.</p>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="footer border-top">
<div class="container text-center">
<p class="text-muted">&copy; <?php echo date("Y"); ?> FAST ACCOUNTING. All Rights Reserved.</p>
</div>
</footer>
<!-- Login Modal -->
<div class="modal fade" id="loginModal" tabindex="-1" aria-labelledby="loginModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="loginModalLabel">Login to your Account</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form action="login.php" method="POST">
<?php if (isset($_SESSION['login_errors'])): ?>
<div class="alert alert-danger">
<?php foreach ($_SESSION['login_errors'] as $error): ?>
<p><?php echo $error; ?></p>
<?php endforeach; ?>
</div>
<?php endif; ?>
<?php if (isset($_SESSION['success_message'])): ?>
<div class="alert alert-success">
<p><?php echo $_SESSION['success_message']; ?></p>
</div>
<?php endif; ?>
<div class="mb-3">
<label for="loginEmail" class="form-label">Email address</label>
<input type="email" name="email" class="form-control" id="loginEmail" required>
</div>
<div class="mb-3">
<label for="loginPassword" class="form-label">Password</label>
<input type="password" name="password" class="form-control" id="loginPassword" required>
</div>
<button type="submit" class="btn btn-primary w-100">Login</button>
</form>
</div>
</div>
</div>
</div>
<!-- Signup Modal -->
<div class="modal fade" id="signupModal" tabindex="-1" aria-labelledby="signupModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="signupModalLabel">Create a New Account</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form action="register.php" method="POST">
<?php if (isset($_SESSION['register_errors'])): ?>
<div class="alert alert-danger">
<?php foreach ($_SESSION['register_errors'] as $error): ?>
<p><?php echo $error; ?></p>
<?php endforeach; ?>
</div>
<?php endif; ?>
<div class="mb-3">
<label for="signupName" class="form-label">Your Name</label>
<input type="text" name="name" class="form-control" id="signupName" required>
</div>
<div class="mb-3">
<label for="signupEmail" class="form-label">Email address</label>
<input type="email" name="email" class="form-control" id="signupEmail" required>
</div>
<div class="mb-3">
<label for="signupPassword" class="form-label">Password</label>
<input type="password" name="password" class="form-control" id="signupPassword" required>
</div>
<div class="mb-3">
<label for="signupPasswordConfirm" class="form-label">Confirm Password</label>
<input type="password" name="password_confirm" class="form-control" id="signupPasswordConfirm" required>
</div>
<button type="submit" class="btn btn-primary w-100">Create Account</button>
</form>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
<?php if (isset($_SESSION['login_errors']) || isset($_SESSION['success_message'])): ?>
var loginModal = new bootstrap.Modal(document.getElementById('loginModal'));
loginModal.show();
<?php
unset($_SESSION['login_errors']);
unset($_SESSION['success_message']);
?>
<?php endif; ?>
<?php if (isset($_SESSION['register_errors'])): ?>
var signupModal = new bootstrap.Modal(document.getElementById('signupModal'));
signupModal.show();
<?php unset($_SESSION['register_errors']); ?>
<?php endif; ?>
});
</script>
</body>
</html>