From 4b57bb33bac50973d7c593cc8fe110162a66f00a Mon Sep 17 00:00:00 2001 From: Shivendra Date: Fri, 29 Nov 2024 12:32:35 +0530 Subject: [PATCH] Fixed Boolean type attribute and attribute listing in product view --- .../controls/inline/boolean.blade.php | 13 ++++--- .../views/products/view/attributes.blade.php | 35 +++++++++++++------ 2 files changed, 34 insertions(+), 14 deletions(-) diff --git a/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/boolean.blade.php b/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/boolean.blade.php index 706bfa4ae..6f5a8b25f 100644 --- a/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/boolean.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/boolean.blade.php @@ -32,14 +32,19 @@ class="flex h-[34px] items-center rounded border border-transparent transition-a v-model="inputValue" /> - - @{{ valueLabel ? valueLabel : selectedValue?.name }} - +
+ + @{{ valueLabel ? valueLabel : options[inputValue].name }} + +
diff --git a/packages/Webkul/Admin/src/Resources/views/products/view/attributes.blade.php b/packages/Webkul/Admin/src/Resources/views/products/view/attributes.blade.php index 4d6bc443e..aa7cb6fdf 100644 --- a/packages/Webkul/Admin/src/Resources/views/products/view/attributes.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/products/view/attributes.blade.php @@ -6,17 +6,32 @@ {!! view_render_event('admin.products.view.attributes.view.before', ['product' => $product]) !!} + + +
+ + - - + + +
+ {!! view_render_event('admin.products.view.attributes.view.after', ['product' => $product]) !!}