This commit is contained in:
Suvodip
2025-03-19 17:46:05 +05:30
parent 6e69bf9f35
commit 8bcf5c055d
13 changed files with 58 additions and 43 deletions

View File

@@ -46,7 +46,7 @@
<h3 class="mb-3 ">Customer List</h3><hr>
<div class="table-responsive">
<table class="table table-bordered table-striped table-hover w-100" style="font-size: 13px;">
<thead class="bg-primary text-white text-center" >
<thead class="text-white text-center" style="background-color: #374151;">
<tr>
<th>Sl No</th>
<th>Name</th>
@@ -123,9 +123,9 @@
<td>$<?php echo isset($emi['totalAmount']) ? htmlspecialchars($emi['totalAmount']) : '0.00'; ?></td>
<td class="d-inline-flex gap-1">
<a href="/customers/generate-invoice/?customerId=<?php echo $customer['customerId']; ?>" class="btn btn-primary btn-sm" style="font-size: 13px;">New</a>
<a href="/customers/edit-invoice/?customerId=<?php echo $customer['customerId'].'&invoiceId='.$invoice['invoiceId']; ?>" class="btn btn-primary btn-sm" style="font-size: 13px;">Edit</a>
<a href="/customers/print-invoice/?customerId=<?php echo $customer['customerId'].'&invoiceId='.$invoice['invoiceId']; ?>" class="btn btn-primary btn-sm" style="font-size: 13px;">Print</a>
<a href="/customers/generate-invoice/?customerId=<?php echo $customer['customerId']; ?>" class="btn btn-sm text-white" style="font-size: 13px; background-color: #374151;">New</a>
<a href="/customers/edit-invoice/?customerId=<?php echo $customer['customerId'].'&invoiceId='.$invoice['invoiceId']; ?>" class="btn btn-sm text-white" style="font-size: 13px; background-color: #374151;">Edit</a>
<a href="/customers/print-invoice/?customerId=<?php echo $customer['customerId'].'&invoiceId='.$invoice['invoiceId']; ?>" class="btn btn-sm text-white" style="font-size: 13px; background-color: #374151;">Print</a>
<form method="post">
<input type="hidden" name="customerId" value="<?php echo htmlspecialchars($customer['customerId']); ?>" />
<input type="hidden" name="invoiceId" value="<?php echo htmlspecialchars($invoice['invoiceId']); ?>" />
@@ -143,7 +143,7 @@
<td><?php echo htmlspecialchars($customer['name']); ?></td>
<td colspan="6" class="text-center">No EMI or Invoice Data</td>
<td class="d-flex flex-wrap gap-1">
<a href="/customers/generate-invoice/?customerId=<?php echo $customer['customerId']; ?>" class="btn btn-primary btn-sm">New</a>
<a href="/customers/generate-invoice/?customerId=<?php echo $customer['customerId']; ?>" class="btn btn-sm text-white">New</a>
<form method="post">
<input type="hidden" name="customerId" value="<?php echo htmlspecialchars($customer['customerId']); ?>" />
<input type="hidden" name="invoiceId" value="<?php echo htmlspecialchars($invoice['invoiceId']); ?>" />

View File

@@ -2,7 +2,7 @@
<div class="row justify-content-center">
<div class="col-md-6">
<div class="card shadow-lg">
<div class="card-header bg-primary text-white text-center">
<div class="card-header text-white text-center" style="background-color: #374151;">
<h4>Customer Registration</h4>
</div>
<div class="card-body">
@@ -87,7 +87,7 @@
<label for="password">Password:</label>
<input type="password" id="password" name="password" class="form-control" required>
</div>
<button type="submit" class="btn btn-success btn-block mt-2">Save Customer</button>
<button type="submit" class="btn btn-block mt-2 text-white" style="background-color: #374151;">Save Customer</button>
</form>
</div>
</div>

View File

@@ -22,7 +22,7 @@ if ($invoiceInfo['tenure'] > 1) {
<div class="container my-5">
<div class="invoice-box">
<h2 class="text-center text-blue">Invoice</h2><hr>
<h2 class="text-center fw-bold" style="color: #374151;">Invoice</h2><hr>
<div class="d-flex justify-content-between">
<div class="w-100">
<h6>Invoice ID: <?= $invoiceInfo['invoiceId'] ?></h6>
@@ -37,7 +37,7 @@ if ($invoiceInfo['tenure'] > 1) {
</div>
<table class="table table-bordered mt-3">
<thead class="table-dark">
<thead class="text-white" style="background-color: #374151;">
<tr>
<th>Item</th>
<th>Description</th>
@@ -63,12 +63,13 @@ if ($invoiceInfo['tenure'] > 1) {
<!-- EMI Table (if tenure > 1) -->
<?php if ($invoiceInfo['tenure'] > 1): ?>
<h5 class="mt-4 text-blue">EMI Payment Plan</h5>
<h5 class="mt-4" style="color: #374151;">EMI Payment Plan</h5>
<table class="table table-striped">
<thead>
<tr>
<th>EMI No.</th>
<th>EMI Date</th>
<th>Payment Date</th>
<th>EMI Amount</th>
<th>Outstanding</th>
<th>Status</th>
@@ -79,6 +80,7 @@ if ($invoiceInfo['tenure'] > 1) {
<tr>
<td><?= $emi['emiNumber'] ?></td>
<td><?= $emi['emiDate'] ?></td>
<td><?= $emi['payStatus'] == 1 ? $emi['paymentDate'] : 'Unpaid' ?></td>
<td>$<?= number_format($emi['emiAmount'], 2) ?></td>
<td>$<?= number_format($emi['outstanding'], 2) ?></td>
<td>
@@ -89,7 +91,7 @@ if ($invoiceInfo['tenure'] > 1) {
</tbody>
</table>
<?php endif; ?>
<h5 class="mt-4 text-blue">Additional Payment Details:</h5>
<h5 class="mt-4" style="color: #374151;">Additional Payment Details:</h5>
<table class="table table-striped " style="font-size: 12px;">
<thead class="">
<tr>
@@ -122,7 +124,7 @@ if ($invoiceInfo['tenure'] > 1) {
<p class="text-muted mt-3"><strong>Admin Note:</strong> <?= $invoiceInfo['adminNote'] ?></p>
<p style="font-size: 12px;"><strong>Invoice Generate Date: </strong><span id="invoiceGenDate"></span></p>
<button onclick="window.print()" class="btn btn-primary btn-print w-100">Print Invoice</button>
<button onclick="window.print()" class="btn text-white btn-print w-100" style="background-color: #374151;">Print Invoice</button>
</div>
</div>
<script>