From f67028962d9527cd21dcfe6d48b087997f277959 Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Wed, 18 Oct 2023 17:46:37 +0530 Subject: [PATCH] Dashboard + due date mail : ps --- app/Controllers/Home.php | 7 + app/Controllers/Invoice.php | 24 +- app/Controllers/Notifications.php | 67 +++++- app/Models/HomeModel.php | 67 ++++++ app/Models/InvoiceModel.php | 2 +- app/Models/NotificationModel.php | 40 +++- app/Views/approve_template.php | 12 +- app/Views/dashboard.php | 378 ++++++++++++++++++++++++------ public/uploads/avatar.png | Bin 24988 -> 5786 bytes 9 files changed, 505 insertions(+), 92 deletions(-) mode change 100755 => 100644 public/uploads/avatar.png diff --git a/app/Controllers/Home.php b/app/Controllers/Home.php index db71d573..917b2eda 100644 --- a/app/Controllers/Home.php +++ b/app/Controllers/Home.php @@ -22,6 +22,13 @@ class Home extends BaseController $model = new HomeModel(); $data['customer'] = $model->customers($where); $data['customer']['label'] = "Customer"; + $data['invoice'] = $model->invoice(); + $data['active_category'] = $model->schemes(); + $data['expiring_membership'] = $model->expiring_membership_list(); + // $data['active_category'] = array_filter($model->schemes(), function ($element) { + // return $element['count'] !== '0' ; + // }); + $data['book_published'] = $model->book_published_list(); $this->render_page('dashboard', $data); } diff --git a/app/Controllers/Invoice.php b/app/Controllers/Invoice.php index f1f53f51..fbadc66e 100644 --- a/app/Controllers/Invoice.php +++ b/app/Controllers/Invoice.php @@ -432,6 +432,13 @@ class Invoice extends BaseController $tax = ""; $total_amount = ""; $payment_method = ""; + $business_name= ""; + $business_address= ""; + $business_city= ""; + $business_state= ""; + $business_postal_code= ""; + $business_email= ""; + $business_mobile_no= ""; if (isset($details)) { $this->logger->info("Invoice: approve notification Request data type = ".gettype($details)); } @@ -449,6 +456,13 @@ class Invoice extends BaseController $tax = $rec['tax']; $total_amount = $rec['total_amount']; $payment_method = $rec['payment_method']; + $business_name= $rec['business_name']; + $business_address= $rec['business_address']; + $business_city= $rec['business_city']; + $business_state= $rec['business_state']; + $business_postal_code= $rec['business_postal_code']; + $business_email= $rec['business_email']; + $business_mobile_no= $rec['business_mobile_no']; } $records['invoice_order_number'] = $reference_number; $records['invoice_serial_number'] = $invoice_serial_number; @@ -479,12 +493,12 @@ class Invoice extends BaseController

Best regards,