Standings
diff --git a/client_side_nav.php b/client_side_nav.php
new file mode 100644
index 00000000..27ae6578
--- /dev/null
+++ b/client_side_nav.php
@@ -0,0 +1,114 @@
+
+
+
\ No newline at end of file
diff --git a/clients-server-side.php b/clients-server-side.php
new file mode 100644
index 00000000..13caf13b
--- /dev/null
+++ b/clients-server-side.php
@@ -0,0 +1,133 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | Name |
+ Email |
+ Phone |
+ Balance |
+ Actions |
+
+
+
+ 2){
+ $client_phone = substr($row['client_phone'],0,3)."-".substr($row['client_phone'],3,3)."-".substr($row['client_phone'],6,4);
+ }
+ $client_email = $row['client_email'];
+ $client_website = $row['client_website'];
+ $client_net_terms = $row['client_net_terms'];
+
+ //Add up all the payments for the invoice and get the total amount paid to the invoice
+ $sql_invoice_amounts = mysqli_query($mysqli,"SELECT SUM(invoice_amount) AS invoice_amounts FROM invoices WHERE client_id = $client_id AND invoice_status NOT LIKE 'Draft'");
+ $row = mysqli_fetch_array($sql_invoice_amounts);
+
+ $invoice_amounts = $row['invoice_amounts'];
+
+ $sql_amount_paid = mysqli_query($mysqli,"SELECT SUM(payment_amount) AS amount_paid FROM payments, invoices WHERE payments.invoice_id = invoices.invoice_id AND invoices.client_id = $client_id");
+ $row = mysqli_fetch_array($sql_amount_paid);
+
+ $amount_paid = $row['amount_paid'];
+
+ $balance = $invoice_amounts - $amount_paid;
+ //set Text color on balance
+ if($balance > 0){
+ $balance_text_color = "text-danger";
+ }
+
+ ?>
+
+ |
+ |
+ |
+ $ |
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0){
$balance_text_color = "text-danger";
+ }else{
+ $balance_text_color = "";
}
?>
diff --git a/header.php b/header.php
index 337926a0..4d54b043 100644
--- a/header.php
+++ b/header.php
@@ -47,8 +47,13 @@
-
-
+
diff --git a/settings-side-nav.php b/settings-side-nav.php
new file mode 100644
index 00000000..0319c54a
--- /dev/null
+++ b/settings-side-nav.php
@@ -0,0 +1,38 @@
+
+
\ No newline at end of file