@@ -72,4 +49,3 @@ $document_content = $purifier->purify($row['document_content']);
-
-
-
-

" alt="..." height="50" width="50" class="img-circle img-responsive">
-
-
-
-
-
-
-
+
-
-
Welcome, !
-
-
+
-
+
+
+
+ | Name |
+ Created |
+
+
+
-
+
+ ?>
-
-
-
-
- | Name |
- Created |
+
+
+
+ |
+ |
-
-
+
-
-
-
- |
-
-
- |
- |
-
-
-
-
-
-
-
+
+
+
-
-
-
-
-

" alt="..." height="50" width="50" class="img-circle img-responsive">
-
-
-
-
-
-
-
-
-
-
-
-
Welcome, !
-
-
-
-
-
-
+
-
+
diff --git a/portal/invoices.php b/portal/invoices.php
index ae319c95..028611d5 100644
--- a/portal/invoices.php
+++ b/portal/invoices.php
@@ -17,106 +17,85 @@ if ($session_contact_primary == 0 && !$session_contact_is_billing_contact) {
$invoices_sql = mysqli_query($mysqli, "SELECT * FROM invoices WHERE invoice_client_id = $session_client_id AND invoice_status != 'Draft' ORDER BY invoice_date DESC");
?>
-
-
-
-

" alt="..." height="50" width="50" class="img-circle img-responsive">
-
-
-
-
-
-
-
+
-
-
Welcome, !
-
-
+
-
+
+
+
+ | # |
+ Scope |
+ Amount |
+ Date |
+ Due |
+ Status |
+
+
+
-
+
+ if (empty($invoice_scope)) {
+ $invoice_scope_display = "-";
+ } else {
+ $invoice_scope_display = $invoice_scope;
+ }
-
+ $now = time();
+ if (($invoice_status == "Sent" || $invoice_status == "Partial" || $invoice_status == "Viewed") && strtotime($invoice_due) + 86400 < $now) {
+ $overdue_color = "text-danger font-weight-bold";
+ } else {
+ $overdue_color = "";
+ }
+
+ if ($invoice_status == "Sent") {
+ $invoice_badge_color = "warning text-white";
+ } elseif ($invoice_status == "Viewed") {
+ $invoice_badge_color = "info";
+ } elseif ($invoice_status == "Partial") {
+ $invoice_badge_color = "primary";
+ } elseif ($invoice_status == "Paid") {
+ $invoice_badge_color = "success";
+ } elseif ($invoice_status == "Cancelled") {
+ $invoice_badge_color = "danger";
+ } else{
+ $invoice_badge_color = "secondary";
+ }
+ ?>
-
-
- | # |
- Scope |
- Amount |
- Date |
- Due |
- Status |
+ "> |
+ |
+ |
+ |
+ |
+
+
+
+
+ |
+
-
-
+
-
-
-
- | "> |
- |
- |
- |
- |
-
-
-
-
- |
-
-
-
-
-
-
-
-
+
+
+
+
-