diff --git a/database/migrations/2022_07_12_051152_decimals-in-price.php b/database/migrations/2022_07_12_051152_decimals-in-price.php new file mode 100644 index 00000000..4b5fff4a --- /dev/null +++ b/database/migrations/2022_07_12_051152_decimals-in-price.php @@ -0,0 +1,32 @@ +decimal('price',['11','2'])->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('products', function (Blueprint $table) { + $table->integer('price')->change(); + }); + } +} diff --git a/resources/views/admin/products/create.blade.php b/resources/views/admin/products/create.blade.php index a4fb0dc1..4024791c 100644 --- a/resources/views/admin/products/create.blade.php +++ b/resources/views/admin/products/create.blade.php @@ -64,7 +64,7 @@
- diff --git a/resources/views/admin/products/edit.blade.php b/resources/views/admin/products/edit.blade.php index 87622bd8..61357c71 100644 --- a/resources/views/admin/products/edit.blade.php +++ b/resources/views/admin/products/edit.blade.php @@ -76,7 +76,7 @@
- @error('price') diff --git a/resources/views/admin/settings/tabs/payment.blade.php b/resources/views/admin/settings/tabs/payment.blade.php index 125cc63e..beaf78bd 100644 --- a/resources/views/admin/settings/tabs/payment.blade.php +++ b/resources/views/admin/settings/tabs/payment.blade.php @@ -130,7 +130,7 @@ data-content="Tax Value that will be added to the total price of the order.

Example: 19 results in (19%)" class="fas fa-info-circle">
-