35344-vm/index.php
2025-10-30 20:26:25 +00:00

114 lines
5.5 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Project BrassConnect Full-Stack Development PrompC</title>
<meta name="description" content="Built with Flatlogic Generator">
<meta name="keywords" content="brass marketplace, b2b platform, manufacturing, brass components, industrial supply, RFQ, quote generator, brass parts, Jamnagar brass, Built with Flatlogic Generator">
<meta property="og:title" content="Project BrassConnect Full-Stack Development PrompC">
<meta property="og:description" content="Built with Flatlogic Generator">
<meta property="og:image" content="">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="">
<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="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
</head>
<body>
<header class="bg-light py-3 border-bottom">
<div class="container">
<h1 class="display-5 fw-bold">BrassConnect Estimator</h1>
<p class="text-muted">A B2B Marketplace for the Brass Industry</p>
</div>
</header>
<main class="container my-5" id="estimator-section">
<div class="card shadow-sm">
<div class="card-header bg-white py-3">
<h2 class="h4 mb-0">Create a Quick Estimate</h2>
</div>
<div class="card-body p-4">
<form id="item-form" class="row g-3 align-items-end">
<div class="col-md-5">
<label for="item-description" class="form-label">Description</label>
<input type="text" class="form-control" id="item-description" placeholder="E.g., Brass Fitting" required>
</div>
<div class="col-md-2">
<label for="item-quantity" class="form-label">Quantity</label>
<input type="number" class="form-control" id="item-quantity" value="1" min="1" required>
</div>
<div class="col-md-3">
<label for="item-price" class="form-label">Unit Price ($)</label>
<input type="number" class="form-control" id="item-price" value="10.00" min="0.01" step="0.01" required>
</div>
<div class="col-md-2">
<button type="submit" class="btn btn-primary w-100">Add Item</button>
</div>
</form>
<hr class="my-4">
<h3 class="h5 mb-3">Line Items</h3>
<div class="table-responsive">
<table class="table table-hover">
<thead class="table-light">
<tr>
<th scope="col">Description</th>
<th scope="col" class="text-end">Quantity</th>
<th scope="col" class="text-end">Unit Price</th>
<th scope="col" class="text-end">Total</th>
<th scope="col" class="text-center">Action</th>
</tr>
</thead>
<tbody id="estimate-items">
<!-- Items will be added here -->
</tbody>
</table>
</div>
<div id="empty-state" class="text-center py-5">
<i class="bi bi-receipt-cutoff" style="font-size: 3rem; color: #EAEAEA;"></i>
<p class="mt-3 text-muted">Your estimate is currently empty.</p>
</div>
<hr class="my-4">
<div class="row justify-content-end">
<div class="col-md-5">
<div class="card">
<div class="card-body">
<h4 class="card-title h6">Summary</h4>
<div class="d-flex justify-content-between mb-2">
<span>Subtotal</span>
<span id="subtotal">$0.00</span>
</div>
<div class="d-flex justify-content-between mb-2">
<span>Tax (10%)</span>
<span id="tax">$0.00</span>
</div>
<hr>
<div class="d-flex justify-content-between fw-bold h5 mb-0">
<span>Total</span>
<span id="total">$0.00</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="card-footer bg-light text-end py-3">
<button id="print-btn" class="btn btn-secondary"><i class="bi bi-printer"></i> Print / Download</button>
</div>
</div>
</main>
<footer class="text-center py-4 mt-auto border-top">
<p class="mb-0 text-muted">&copy; <?php echo date("Y"); ?> BrassConnect. Built with Flatlogic.</p>
</footer>
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
</body>
</html>