diff --git a/app/Designs/AbstractDesign.php b/app/Designs/AbstractDesign.php
index 25fd82218593..6a2befd497a8 100644
--- a/app/Designs/AbstractDesign.php
+++ b/app/Designs/AbstractDesign.php
@@ -13,18 +13,16 @@ namespace App\Designs;
abstract class AbstractDesign
{
- abstract public function include();
+ abstract public function includes();
abstract public function header();
abstract public function body();
- abstract public function product_table();
+ abstract public function product();
- abstract public function task_table();
+ abstract public function task();
abstract public function footer();
- abstract public function table_styles();
-
}
\ No newline at end of file
diff --git a/app/Designs/Bold.php b/app/Designs/Bold.php
index c49facd2a520..df720fda9a7f 100644
--- a/app/Designs/Bold.php
+++ b/app/Designs/Bold.php
@@ -17,34 +17,29 @@ class Bold extends AbstractDesign
public function __construct() {
}
- public function include()
+ public function includes()
{
return '
-
-
$number
+ $css_url
-
-
';
}
@@ -92,30 +87,40 @@ class Bold extends AbstractDesign
}
- public function table_styles() {
- return [
- 'table_header_thead_class' => "text-left",
- 'table_header_td_class' => "px-12 text-2xl px-4 py-2",
- 'table_body_td_class' => "bg-gray-200 py-5 pl-12",
- ];
- }
- public function task_table() {
+ public function task() {
+ return '
+
+
+
+ $task_table_header
+
+
+
+ $task_table_body
+
+
+ ';
}
- public function product_table() {
+ public function product() {
return '
- $table_header
+ $product_table_header
- $table_body
+ $product_table_body
-
+ ';
+ }
+
+ public function footer() {
+
+ return '
$entity.public_notes
@@ -144,15 +149,7 @@ class Bold extends AbstractDesign
- ';
- }
-
- public function footer() {
-
- return '
-
-
- ';
+ ';
}
diff --git a/app/Designs/Business.php b/app/Designs/Business.php
index 9406342c085a..1254ff35197c 100644
--- a/app/Designs/Business.php
+++ b/app/Designs/Business.php
@@ -17,7 +17,7 @@ class Business extends AbstractDesign
public function __construct() {
}
- public function include()
+ public function includes()
{
return '
@@ -27,10 +27,8 @@ class Business extends AbstractDesign
-
+
+
@@ -46,6 +44,11 @@ class Business extends AbstractDesign
thead th:last-child {
border-top-right-radius: 0.5rem;
}
+
+ .table_header_thead_class text-left bg-blue-900
+ .table_header_td_class font-semibold text-white px-4 bg-blue-900 py-5
+ .table_body_td_class border-4 border-white text-orange-700 px-4 py-4
+
';
@@ -98,69 +101,74 @@ class Business extends AbstractDesign
}
- public function table_styles() {
- return [
- 'table_header_thead_class' => "text-left bg-blue-900",
- 'table_header_td_class' => "font-semibold text-white px-4 bg-blue-900 py-5",
- 'table_body_td_class' => "border-4 border-white text-orange-700 px-4 py-4",
- ];
- }
-
- public function task_table() {
+ public function task() {
+ return '
+
+
+
+ $task_table_header
+
+
+
+ $task_table_body
+
+
+ ';
}
- public function product_table() {
+ public function product() {
return '