diff --git a/app/Controllers/MasterController.php b/app/Controllers/MasterController.php
index dd36702..60cad9c 100644
--- a/app/Controllers/MasterController.php
+++ b/app/Controllers/MasterController.php
@@ -262,6 +262,7 @@ class MasterController extends BaseController
$id = $this->request->getVar('template_id');
$data['templateData'] = $this->TemplateModel->where('md5(template_id)',$id)->get()->getRow();
$data['serviceData'] = $this->ServiceModel->where('service_id',$data['templateData']->service_id)->get()->getRow();
+ $data['businessData'] = $this->BusinessModel->where('business_id',$data['templateData']->template_header_business)->get()->getRow();
$staffdata = $this->StaffModel->where('staff_id',$this->session->get('is_staff_logged_in'))->get()->getRow();
$data['body_html'] = $data['templateData']->body_html;
@@ -351,11 +352,12 @@ class MasterController extends BaseController
$doc_id = $this->request->getVar('doc_id');
$data['docData'] = $this->ClientDocsModel->docPreview($doc_id);
-// dd( $data['docData']);
+
$data['clientData'] = $this->ClientBranchModel->select('client.* , client_branch.*')
->join('client', 'client_branch.client_id = client.client_id', 'left')
->where('client_branch.id',$data['docData']->client_branch_id)
->get()->getRow();
+
$DateAndYears = $this->dateAndYearPlaceholder();
diff --git a/app/Models/ClientDocsModel.php b/app/Models/ClientDocsModel.php
index 84b47a1..df51a88 100644
--- a/app/Models/ClientDocsModel.php
+++ b/app/Models/ClientDocsModel.php
@@ -14,7 +14,7 @@ class ClientDocsModel extends Model
public function getTemplate($client_id){
- $this->select('template.template_name , template.template_id ,client_docs.is_approved ,client_docs.id as doc_id ,client_docs.created_at , services.service_name');
+ $this->select('template.template_name , template.template_id ,client_docs.is_approved ,client_docs.id as doc_id ,client_docs.created_at ,client_docs.document_name, services.service_name');
$this->join('template', 'template.template_id = client_docs.template_id');
$this->join('services', 'services.service_id = template.service_id');
$this->where('client_docs.is_active', 1);
diff --git a/app/Views/business_form.php b/app/Views/business_form.php
index 6b8d1ca..9dd0ab4 100644
--- a/app/Views/business_form.php
+++ b/app/Views/business_form.php
@@ -80,12 +80,36 @@
$(document).ready(function() {
$('#summernote-header').summernote({
height: 150, // set the height of the editor
- placeholder: 'Write the header content here...'
+ toolbar: [
+
+ ['style', ['style']],
+ ['font', ['bold', 'italic', 'underline', 'clear' ]],
+ ['fontname', ['fontname']],
+ ['fontsize', ['fontsize']],
+ ['color', ['color']],
+ ['para', ['ul', 'ol', 'paragraph' , 'height']],
+ ['table', ['table']],
+ ['insert', [ 'picture']],
+ ['view', ['fullscreen', 'codeview', 'help']],
+ ['mybutton', ['customButton','Years']] // Custom button group
+ ],
});
$('#summernote-footer').summernote({
height: 150, // set the height of the editor
- placeholder: 'Write the footer content here...'
+ toolbar: [
+
+ ['style', ['style']],
+ ['font', ['bold', 'italic', 'underline', 'clear' ]],
+ ['fontname', ['fontname']],
+ ['fontsize', ['fontsize']],
+ ['color', ['color']],
+ ['para', ['ul', 'ol', 'paragraph' , 'height']],
+ ['table', ['table']],
+ ['insert', [ 'picture']],
+ ['view', ['fullscreen', 'codeview', 'help']],
+ ['mybutton', ['customButton','Years']] // Custom button group
+ ],
});
@@ -94,7 +118,7 @@ $(document).ready(function() {
$('#summernote-header').summernote('code', $('#header_html').val());
$('#summernote-footer').summernote('code', $('#footer_html').val());
- }, 1000);
+ }, 500);
diff --git a/app/Views/client_docs_preview.php b/app/Views/client_docs_preview.php
index 82eda90..215cd11 100644
--- a/app/Views/client_docs_preview.php
+++ b/app/Views/client_docs_preview.php
@@ -11,7 +11,8 @@
border-top: 1px dotted #000;
padding-top: 3px;
}
-
+
+
@@ -19,37 +20,48 @@
-
-
-
-
-
-
service_name; ?>
-
-
-
+
+
+
+
+
+
+
+
+
+
service_name; ?>
+
+
+
-
-
Close
+
+
Close
- is_active == 1 && $docData->is_approved == 0){ ?>
-
Revert
- is_active == 0 ) { ?>
-
Share
-
+ is_active == 1 && $docData->is_approved == 0){ ?>
+
Revert
+ is_active == 0 ) { ?>
+
Share
+
-
-
- is_approved != 1){ ?>
-
Reject
-
Approve
-
-
+
+
+ is_approved != 1){ ?>
+
Reject
+
Approve
+
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -76,7 +88,9 @@
-
+
+
+
diff --git a/app/Views/client_home.php b/app/Views/client_home.php
index 26be776..c8bbd0e 100644
--- a/app/Views/client_home.php
+++ b/app/Views/client_home.php
@@ -32,6 +32,7 @@