subscription module
This commit is contained in:
parent
048d9ba61b
commit
2df4cedf11
@ -48,6 +48,7 @@ class Subscription extends BaseController
|
|||||||
//print_r($data);die();
|
//print_r($data);die();
|
||||||
$this->render_page('subscription_form', $data);
|
$this->render_page('subscription_form', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Subscription Controller (Subscription.php)
|
// Subscription Controller (Subscription.php)
|
||||||
public function add_subscription() {
|
public function add_subscription() {
|
||||||
helper('session');
|
helper('session');
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
font-family: 'Times New Roman', Times, sans-serif;
|
font-family: 'Times New Roman', Times, sans-serif;
|
||||||
|
|
||||||
font-size: 14px; /* Change this value to your desired font size */
|
font-size: 12px; /* Change this value to your desired font size */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Style for the main table with border */
|
/* Style for the main table with border */
|
||||||
@ -158,11 +158,10 @@ td.invoice-number {
|
|||||||
<table class="invoice-info-table">
|
<table class="invoice-info-table">
|
||||||
<?php foreach ($data as $value) : ?>
|
<?php foreach ($data as $value) : ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Invoice #</th>
|
<th>Invoice # <?= $value->invoice_number ?></th>
|
||||||
<td class="invoice-number"><?= $value->invoice_number ?></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Invoice Date</th>
|
|
||||||
<?php
|
<?php
|
||||||
// Assuming $value->invoice_date is in yyyy-mm-dd format
|
// Assuming $value->invoice_date is in yyyy-mm-dd format
|
||||||
$invoiceDateParts = explode('-', $value->invoice_date);
|
$invoiceDateParts = explode('-', $value->invoice_date);
|
||||||
@ -172,16 +171,17 @@ if (count($invoiceDateParts) === 3) {
|
|||||||
$formattedInvoiceDate = 'Invalid Date'; // Handle invalid dates gracefully
|
$formattedInvoiceDate = 'Invalid Date'; // Handle invalid dates gracefully
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
<th>Invoice Date : <?= $formattedInvoiceDate ?></th>
|
||||||
|
|
||||||
|
|
||||||
<!-- Display the formatted invoice date -->
|
<!-- Display the formatted invoice date -->
|
||||||
<td><?= $formattedInvoiceDate ?></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Order Number</th>
|
<th>Order Number : <?= $value->order_number ?></th>
|
||||||
<td><?= $value->order_number ?></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Due Date</th>
|
|
||||||
<?php $invoiceDateParts = explode('-', $value->due_date);
|
<?php $invoiceDateParts = explode('-', $value->due_date);
|
||||||
if (count($invoiceDateParts) === 3) {
|
if (count($invoiceDateParts) === 3) {
|
||||||
$formattedDueDate = $invoiceDateParts[2] . '/' . $invoiceDateParts[1] . '/' . $invoiceDateParts[0];
|
$formattedDueDate = $invoiceDateParts[2] . '/' . $invoiceDateParts[1] . '/' . $invoiceDateParts[0];
|
||||||
@ -189,8 +189,10 @@ if (count($invoiceDateParts) === 3) {
|
|||||||
$formattedDueDate = 'Invalid Date'; // Handle invalid dates gracefully
|
$formattedDueDate = 'Invalid Date'; // Handle invalid dates gracefully
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
<th>Due Date : <?= $formattedDueDate ?></th>
|
||||||
|
|
||||||
<!-- Display the formatted invoice date -->
|
<!-- Display the formatted invoice date -->
|
||||||
<td><?= $formattedDueDate ?></td>
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|||||||
@ -82,7 +82,7 @@
|
|||||||
<img src="barcode.png" alt="Barcode">
|
<img src="barcode.png" alt="Barcode">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="footer">"<?= $customer['scheme_name'] ?>" Expires on "<?= $customer['to_subscription'] ?>" </div>
|
<div class="footer">"<?= $customer['scheme_name'] ?>" Expires on "<?= date('d-m-Y', strtotime($customer['to_subscription'])) ?>" </div>
|
||||||
</div>
|
</div>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@ -178,12 +178,7 @@
|
|||||||
<span>Subscription </span>
|
<span>Subscription </span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<a href="<?= base_url()."addressprint"; ?>">
|
|
||||||
<i class="bx bx-file"></i>
|
|
||||||
<span>Address Print </span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<a href="<?= base_url()."mail_custom_notifications"; ?>">
|
<a href="<?= base_url()."mail_custom_notifications"; ?>">
|
||||||
<i class="ri-notification-3-fill"></i>
|
<i class="ri-notification-3-fill"></i>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user