232 lines
9.6 KiB
PHP
232 lines
9.6 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Estimate Builder</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<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;700&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
|
</head>
|
|
<body>
|
|
<div id="particles-js"></div>
|
|
|
|
<nav class="navbar navbar-expand-lg navbar-light bg-white shadow-sm">
|
|
<div class="container-fluid">
|
|
<a class="navbar-brand fw-bold text-primary" href="#">Estimate Builder</a>
|
|
</div>
|
|
</nav>
|
|
|
|
<main class="container my-5">
|
|
<div class="row">
|
|
<!-- Estimate Form -->
|
|
<div class="col-lg-8">
|
|
<div class="card">
|
|
<div class="card-body p-4">
|
|
<div class="row mb-4">
|
|
<div class="col-md-6">
|
|
<h5 class="card-title">Estimate Details</h5>
|
|
<div class="mb-3">
|
|
<label for="estimateNumber" class="form-label">Estimate #</label>
|
|
<input type="text" class="form-control" id="estimateNumber" value="001">
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="estimateDate" class="form-label">Date</label>
|
|
<input type="date" class="form-control" id="estimateDate">
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<h5 class="card-title invisible">Bill To</h5>
|
|
<div class="mb-3">
|
|
<label for="billTo" class="form-label">Bill To</label>
|
|
<textarea class="form-control" id="billTo" rows="3" placeholder="Client Name Address City, State, Zip"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="table-responsive">
|
|
<table class="table" id="estimateItems">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Description</th>
|
|
<th scope="col" style="width: 100px;">Quantity</th>
|
|
<th scope="col" style="width: 120px;">Price</th>
|
|
<th scope="col" class="text-end" style="width: 120px;">Total</th>
|
|
<th scope="col" class="text-center" style="width: 50px;"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<!-- Items will be added here -->
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<h5 class="card-title">Add New Item</h5>
|
|
<form id="addItemForm" class="row g-3 align-items-end">
|
|
<div class="col">
|
|
<label for="itemDescription" class="form-label">Description</label>
|
|
<input type="text" class="form-control" id="itemDescription" required>
|
|
</div>
|
|
<div class="col-auto">
|
|
<label for="itemQuantity" class="form-label">Quantity</label>
|
|
<input type="number" class="form-control" id="itemQuantity" value="1" min="1" style="width: 100px;">
|
|
</div>
|
|
<div class="col-auto">
|
|
<label for="itemPrice" class="form-label">Price</label>
|
|
<input type="number" class="form-control" id="itemPrice" value="0.00" step="0.01" min="0" style="width: 120px;">
|
|
</div>
|
|
<div class="col-auto">
|
|
<button type="submit" class="btn btn-primary">Add Item</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Summary -->
|
|
<div class="col-lg-4">
|
|
<div class="card position-sticky top-0" style="top: 1.5rem !important;">
|
|
<div class="card-body p-4">
|
|
<h5 class="card-title mb-4">Summary</h5>
|
|
<div class="d-flex justify-content-between mb-2">
|
|
<span>Subtotal</span>
|
|
<span id="summarySubtotal">$0.00</span>
|
|
</div>
|
|
<div class="d-flex justify-content-between mb-3">
|
|
<span>Tax (10%)</span>
|
|
<span id="summaryTax">$0.00</span>
|
|
</div>
|
|
<hr>
|
|
<div class="d-flex justify-content-between fw-bold fs-5">
|
|
<span>Total</span>
|
|
<span id="summaryTotal">$0.00</span>
|
|
</div>
|
|
<div class="d-grid gap-2 mt-4">
|
|
<button class="btn btn-secondary" onclick="window.print()">Print / Download PDF</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<footer class="text-center text-muted py-4 mt-5 bg-light">
|
|
<p>© <?php echo date("Y"); ?> Estimate Builder. All rights reserved.</p>
|
|
</footer>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/particles.js@2.0.0/particles.min.js"></script>
|
|
<script>
|
|
particlesJS("particles-js", {
|
|
"particles": {
|
|
"number": {
|
|
"value": 80,
|
|
"density": {
|
|
"enable": true,
|
|
"value_area": 800
|
|
}
|
|
},
|
|
"color": {
|
|
"value": "#4F46E5"
|
|
},
|
|
"shape": {
|
|
"type": "circle",
|
|
"stroke": {
|
|
"width": 0,
|
|
"color": "#000000"
|
|
},
|
|
"polygon": {
|
|
"nb_sides": 5
|
|
}
|
|
},
|
|
"opacity": {
|
|
"value": 0.5,
|
|
"random": false,
|
|
"anim": {
|
|
"enable": false,
|
|
"speed": 1,
|
|
"opacity_min": 0.1,
|
|
"sync": false
|
|
}
|
|
},
|
|
"size": {
|
|
"value": 3,
|
|
"random": true,
|
|
"anim": {
|
|
"enable": false,
|
|
"speed": 40,
|
|
"size_min": 0.1,
|
|
"sync": false
|
|
}
|
|
},
|
|
"line_linked": {
|
|
"enable": true,
|
|
"distance": 150,
|
|
"color": "#4F46E5",
|
|
"opacity": 0.4,
|
|
"width": 1
|
|
},
|
|
"move": {
|
|
"enable": true,
|
|
"speed": 6,
|
|
"direction": "none",
|
|
"random": false,
|
|
"straight": false,
|
|
"out_mode": "out",
|
|
"bounce": false,
|
|
"attract": {
|
|
"enable": false,
|
|
"rotateX": 600,
|
|
"rotateY": 1200
|
|
}
|
|
}
|
|
},
|
|
"interactivity": {
|
|
"detect_on": "canvas",
|
|
"events": {
|
|
"onhover": {
|
|
"enable": true,
|
|
"mode": "repulse"
|
|
},
|
|
"onclick": {
|
|
"enable": true,
|
|
"mode": "push"
|
|
},
|
|
"resize": true
|
|
},
|
|
"modes": {
|
|
"grab": {
|
|
"distance": 400,
|
|
"line_linked": {
|
|
"opacity": 1
|
|
}
|
|
},
|
|
"bubble": {
|
|
"distance": 400,
|
|
"size": 40,
|
|
"duration": 2,
|
|
"opacity": 8,
|
|
"speed": 3
|
|
},
|
|
"repulse": {
|
|
"distance": 200,
|
|
"duration": 0.4
|
|
},
|
|
"push": {
|
|
"particles_nb": 4
|
|
},
|
|
"remove": {
|
|
"particles_nb": 2
|
|
}
|
|
}
|
|
},
|
|
"retina_detect": true
|
|
});
|
|
</script>
|
|
<script src="assets/js/main.js"></script>
|
|
</body>
|
|
</html>
|