From 32278095bff04cd70a0c9d2bbd4263a697ec0d5b Mon Sep 17 00:00:00 2001 From: Jack Goh Date: Fri, 20 Jul 2018 18:04:30 +0800 Subject: [PATCH] beautified user home page added order number and payment for field in user booking --- ...o_n_paymentfor_field_to_bookings_table.php | 33 + resources/assets/js/pages/home.vue | 598 ++++++++++-------- 2 files changed, 354 insertions(+), 277 deletions(-) create mode 100644 database/migrations/2018_07_20_175339_add_orderno_n_paymentfor_field_to_bookings_table.php diff --git a/database/migrations/2018_07_20_175339_add_orderno_n_paymentfor_field_to_bookings_table.php b/database/migrations/2018_07_20_175339_add_orderno_n_paymentfor_field_to_bookings_table.php new file mode 100644 index 00000000..18a24a7e --- /dev/null +++ b/database/migrations/2018_07_20_175339_add_orderno_n_paymentfor_field_to_bookings_table.php @@ -0,0 +1,33 @@ +string('order_no')->nullable(); + $table->string('payment_for'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('bookings', function (Blueprint $table) { + // + }); + } +} diff --git a/resources/assets/js/pages/home.vue b/resources/assets/js/pages/home.vue index 04154d47..4f0d23a0 100644 --- a/resources/assets/js/pages/home.vue +++ b/resources/assets/js/pages/home.vue @@ -139,6 +139,14 @@
+ + + + + + + + @@ -213,9 +221,12 @@

-Refresh
-

Scroll left or right to navigate the table

- + Refresh +
+

Scroll left or right to navigate the table + +

+
@@ -224,11 +235,12 @@ {{ scope.row.id }} - --> + --> + prop="transfer_amount" width="170" /> @@ -246,7 +258,7 @@ + label="" width="180" filter-placement="bottom-end"> View Status