diff --git a/app/Models/Remark.php b/app/Models/Remark.php index f2de3a5c..271b4d4b 100644 --- a/app/Models/Remark.php +++ b/app/Models/Remark.php @@ -12,6 +12,14 @@ class Remark extends AbstractModel protected $table = 'remarks'; + protected $fillable = [ + 'owner_id', + 'owner_type', + 'commenter_id', + 'content', + 'type' + ]; + public function owner(): morphTo { return $this->morphTo(); diff --git a/database/migrations/2024_07_21_222302_create_workflow_timestamps_table.php b/database/migrations/2024_07_21_222302_create_workflow_timestamps_table.php index 3d8d29bb..203c58bd 100644 --- a/database/migrations/2024_07_21_222302_create_workflow_timestamps_table.php +++ b/database/migrations/2024_07_21_222302_create_workflow_timestamps_table.php @@ -18,7 +18,7 @@ class CreateWorkflowTimestampsTable extends Migration $table->string('current_node'); $table->string('next_node'); $table->integer('seconds'); - $table->unsignedBigInteger('userId'); + $table->unsignedBigInteger('user_id'); $table->string('session_id'); $table->timestamps(); }); diff --git a/resources/assets/vue/components/general/sections/AdminWorkFlowSectionComponent.vue b/resources/assets/vue/components/general/sections/AdminWorkFlowSectionComponent.vue index 4e3d6102..acaed660 100644 --- a/resources/assets/vue/components/general/sections/AdminWorkFlowSectionComponent.vue +++ b/resources/assets/vue/components/general/sections/AdminWorkFlowSectionComponent.vue @@ -9,31 +9,56 @@
-
+

{{ currentQuestion.text }}

+ + +

Login Information

-
-

- ORDER Marking: - {{ externalApiResponse.data.booking_marking }} -

-

- 1688 LOGIN ID/EMAIL/PHONE: - {{ externalApiResponse.data.account_no }} -

-

- 1688 LOGIN PASSWORD: - {{ externalApiResponse.data.holder_name }} -

-

- ALIPAY 6-DIGIT PAYMENT PIN: - {{ externalApiResponse.data.pin }} -

+ class="row bg-master-light m-t-15 m-b-15 rounded padding-30 justify-content-center"> +
+ + + + + + + + + + + + + + + + + +
+

ORDER Marking:

+
+

{{ externalApiResponse.data.booking_marking + }}

+
+

1688 LOGIN ID/EMAIL/PHONE: +

+
+

{{ externalApiResponse.data.account_no }}

+
+

1688 LOGIN PASSWORD: +

+
+

{{ externalApiResponse.data.holder_name }}

+
+

ALIPAY 6-DIGIT PAYMENT PIN: +

+
+

{{ externalApiResponse.data.pin }}

+
@@ -43,25 +68,27 @@
-
+

ORDER Marking: - - {{ externalApiResponse.data.booking.marking }} + + {{ externalApiResponse.data.booking.marking }}

-
+ class="row bg-master-light m-t-15 m-b-15 rounded padding-30 justify-content-center"> +

ORDER Reference(s):

-
+

- #{{ attribute.value }} + {{ index + 1 + '. #' + attribute.value }}

-
+
@@ -119,14 +146,16 @@
- @@ -138,8 +167,9 @@
-

"{{ currentQuestionId }}" is empty. Please contact Tech Support -

+

+ "{{ currentQuestionId }}" {{ apiFailed ? 'api Failed' : "is empty" }} + . Please contact Tech Support