diff --git a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/address.blade.php b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/address.blade.php index 31c4bcd58..610e26082 100644 --- a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/address.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/address.blade.php @@ -7,4 +7,5 @@ ::errors="errors" :placeholder="$attribute->name" :url="$url" + :allow-edit="$allowEdit" /> diff --git a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/boolean.blade.php b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/boolean.blade.php index c7f826041..8a8ec54da 100755 --- a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/boolean.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/boolean.blade.php @@ -7,4 +7,5 @@ ::errors="errors" :placeholder="$attribute->name" :url="$url" + :allow-edit="$allowEdit" /> diff --git a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/checkbox.blade.php b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/checkbox.blade.php index a2c27b2a2..079494ec6 100644 --- a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/checkbox.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/checkbox.blade.php @@ -16,4 +16,5 @@ ::errors="errors" :placeholder="$attribute->name" :url="$url" + :allow-edit="$allowEdit" /> diff --git a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/date.blade.php b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/date.blade.php index c7ce3f81d..8136746e9 100755 --- a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/date.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/date.blade.php @@ -7,4 +7,5 @@ ::errors="errors" :placeholder="$attribute->name" :url="$url" + :allow-edit="$allowEdit" /> diff --git a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/datetime.blade.php b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/datetime.blade.php index 80283ddd2..e1c030acc 100755 --- a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/datetime.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/datetime.blade.php @@ -7,4 +7,5 @@ ::errors="errors" :placeholder="$attribute->name" :url="$url" + :allow-edit="$allowEdit" /> diff --git a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/email.blade.php b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/email.blade.php index 191ff6f6a..b745f436a 100644 --- a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/email.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/email.blade.php @@ -7,4 +7,5 @@ ::errors="errors" :placeholder="$attribute->name" :url="$url" + :allow-edit="$allowEdit" /> diff --git a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/file.blade.php b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/file.blade.php index 843d90e18..895905608 100644 --- a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/file.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/file.blade.php @@ -7,4 +7,5 @@ ::errors="errors" :placeholder="$attribute->name" :url="$url" + :allow-edit="$allowEdit" /> diff --git a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/image.blade.php b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/image.blade.php index 986a3d7cd..47e3c3ed4 100644 --- a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/image.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/image.blade.php @@ -7,4 +7,5 @@ ::errors="errors" :placeholder="$attribute->name" :url="$url" + :allow-edit="$allowEdit" /> diff --git a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/lookup.blade.php b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/lookup.blade.php index 9accc00cb..9b1c85ddf 100644 --- a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/lookup.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/lookup.blade.php @@ -11,4 +11,5 @@ ::errors="errors" :placeholder="$attribute->name" :url="$url" + :allow-edit="$allowEdit" /> diff --git a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/multiselect.blade.php b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/multiselect.blade.php index a2c27b2a2..079494ec6 100755 --- a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/multiselect.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/multiselect.blade.php @@ -16,4 +16,5 @@ ::errors="errors" :placeholder="$attribute->name" :url="$url" + :allow-edit="$allowEdit" /> diff --git a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/phone.blade.php b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/phone.blade.php index 84e69fb37..fd6d5441b 100644 --- a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/phone.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/phone.blade.php @@ -7,4 +7,5 @@ ::errors="errors" :placeholder="$attribute->name" :url="$url" -/> \ No newline at end of file + :allow-edit="$allowEdit" +/> diff --git a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/price.blade.php b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/price.blade.php index c38bc7eb7..9c4315218 100755 --- a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/price.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/price.blade.php @@ -1,4 +1,4 @@ - \ No newline at end of file + :allow-edit="$allowEdit" +/> diff --git a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/select.blade.php b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/select.blade.php index 87c5bd2aa..5fc0e3894 100755 --- a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/select.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/select.blade.php @@ -14,4 +14,5 @@ ::errors="errors" :placeholder="$attribute->name" :url="$url" + :allow-edit="$allowEdit" /> diff --git a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/text.blade.php b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/text.blade.php index c38bc7eb7..9c4315218 100755 --- a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/text.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/text.blade.php @@ -1,4 +1,4 @@ - \ No newline at end of file + :allow-edit="$allowEdit" +/> diff --git a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/textarea.blade.php b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/textarea.blade.php index c38bc7eb7..9c4315218 100755 --- a/packages/Webkul/Admin/src/Resources/views/components/attributes/view/textarea.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/attributes/view/textarea.blade.php @@ -1,4 +1,4 @@ - \ No newline at end of file + :allow-edit="$allowEdit" +/> diff --git a/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/address.blade.php b/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/address.blade.php index a6bb4bdeb..af2eda5f0 100644 --- a/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/address.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/address.blade.php @@ -1,6 +1,11 @@ +@props([ + 'allowEdit' => true, +]) + except('value') }} :value='@json($attributes->get('value'))' + :allow-edit="{{ $allowEdit ? 'true' : 'false' }}" >
@@ -17,14 +22,14 @@
- + @{{ valueLabel ? valueLabel : `${inputValue?.address} ${inputValue?.postcode} ${inputValue?.city} ${inputValue?.state} ${inputValue?.country}`.length > 20 ? `${inputValue?.address} ${inputValue?.postcode} ${inputValue?.city} ${inputValue?.state} ${inputValue?.country}`.substring(0, 20) + '...' : `${inputValue?.address} ${inputValue?.postcode} ${inputValue?.city} ${inputValue?.state} ${inputValue?.country}` }} @@ -35,7 +40,7 @@ class="group relative !w-full pl-2.5" @{{ `${inputValue?.state}, ${inputValue?.country}` }}
-
+
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 7d84f62ae..68002fed7 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 @@ -1,4 +1,11 @@ -except('options') }}> +@props([ + 'allowEdit' => true, +]) + +except('options') }} + :allow-edit="{{ $allowEdit ? 'true' : 'false' }}" +>
@@ -15,7 +22,7 @@
- + @{{ valueLabel ? valueLabel : selectedValue?.name }} diff --git a/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/date.blade.php b/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/date.blade.php index f952281fb..c69a4cee1 100644 --- a/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/date.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/date.blade.php @@ -1,4 +1,11 @@ - +@props([ + 'allowEdit' => true, +]) + +
@@ -15,7 +22,7 @@
- + @{{ valueLabel ? valueLabel : inputValue.length > 20 ? inputValue.substring(0, 20) + '...' : inputValue }} @@ -42,7 +49,7 @@ class="absolute bottom-0 mb-5 hidden flex-col group-hover:flex" @{{ inputValue }} -
+
diff --git a/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/datetime.blade.php b/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/datetime.blade.php index acf7d47ae..a5289b726 100644 --- a/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/datetime.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/datetime.blade.php @@ -1,4 +1,11 @@ - +@props([ + 'allowEdit' => true, +]) + +
@@ -15,7 +22,7 @@
- + @{{ valueLabel ? valueLabel : inputValue.length > 20 ? inputValue.substring(0, 20) + '...' : inputValue }} @@ -42,7 +49,7 @@ class="absolute bottom-0 mb-5 hidden flex-col group-hover:flex" @{{ inputValue }} -
+
diff --git a/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/email.blade.php b/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/email.blade.php index d12c79001..f6da5ff1f 100644 --- a/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/email.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/email.blade.php @@ -1,6 +1,11 @@ +@props([ + 'allowEdit' => true, +]) + except('value') }} :value={{ json_encode($attributes->get('value')) }} + :allow-edit="{{ $allowEdit ? 'true' : 'false' }}" >
@@ -17,14 +22,14 @@
- + @{{ valueLabel ? valueLabel : inputValue.map(item => `${item.value}(${item.label})`).join(', ').length > 20 ? inputValue.map(item => `${item.value}(${item.label})`).join(', ').substring(0, 20) + '...' : inputValue.map(item => `${item.value}(${item.label})`).join(', ') }} @@ -37,7 +42,7 @@ class="absolute bottom-0 mb-5 hidden flex-col group-hover:flex" @{{ inputValue.map(item => `${item.value}(${item.label})`).join(', \n') }} -
+
diff --git a/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/file.blade.php b/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/file.blade.php index 47abc64a0..28416656d 100644 --- a/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/file.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/file.blade.php @@ -1,4 +1,11 @@ - +@props([ + 'allowEdit' => true, +]) + +
@@ -15,7 +22,7 @@
+@props([ + 'allowEdit' => true, +]) + +
@@ -15,7 +22,7 @@
true, 'attribute' => [], ])
@@ -22,7 +24,7 @@
- + @{{ valueLabel ? valueLabel : inputValue.length > 20 ? inputValue.substring(0, 20) + '...' : inputValue }} @@ -49,7 +51,7 @@ class="absolute bottom-0 mb-5 hidden flex-col group-hover:flex" @{{ inputValue }} -
+
diff --git a/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/multiselect.blade.php b/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/multiselect.blade.php index a114aea79..c8587705a 100644 --- a/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/multiselect.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/multiselect.blade.php @@ -1,6 +1,11 @@ +@props([ + 'allowEdit' => true, +]) + except('data') }} :data="{{ json_encode($data) }}" + :allow-edit="{{ $allowEdit ? 'true' : 'false' }}" >
@@ -18,7 +23,7 @@
- + @{{ valueLabel ? valueLabel : selectedValue }} @@ -45,7 +50,7 @@ class="absolute bottom-0 mb-5 hidden flex-col group-hover:flex" @{{ selectedValue }} -
+
diff --git a/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/phone.blade.php b/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/phone.blade.php index c722c6301..543628370 100644 --- a/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/phone.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/phone.blade.php @@ -1,6 +1,11 @@ +@props([ + 'allowEdit' => true, +]) + except('value') }} :value={{ json_encode($attributes->get('value')) }} + :allow-edit="{{ $allowEdit ? 'true' : 'false' }}" >
@@ -17,14 +22,14 @@
- + @{{ valueLabel ? valueLabel : inputValue.map(item => `${item.value}(${item.label})`).join(', ').length > 20 ? inputValue.map(item => `${item.value}(${item.label})`).join(', ').substring(0, 20) + '...' : inputValue.map(item => `${item.value}(${item.label})`).join(', ') }} @@ -36,7 +41,7 @@ class="absolute bottom-0 mb-5 hidden flex-col group-hover:flex" @{{ inputValue.map(item => `${item.value}(${item.label})`).join(', \n') }} -
+
diff --git a/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/select.blade.php b/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/select.blade.php index d0da3ce23..6d62c4f80 100644 --- a/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/select.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/select.blade.php @@ -1,6 +1,12 @@ +@props([ + 'allowEdit' => true, + 'options' => [], +]) + except('options') }} :options="{{ json_encode($options) }}" + :allow-edit="{{ $allowEdit ? 'true' : 'false' }}" >
diff --git a/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/text.blade.php b/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/text.blade.php index 5fcb564bb..b184b6547 100644 --- a/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/text.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/text.blade.php @@ -1,4 +1,11 @@ - +@props([ + 'allowEdit' => true, +]) + +
@@ -15,7 +22,7 @@
- + @{{ valueLabel ? valueLabel : inputValue.length > 20 ? inputValue.substring(0, 20) + '...' : inputValue }} @@ -42,7 +49,7 @@ class="absolute bottom-0 mb-5 hidden flex-col group-hover:flex" @{{ inputValue }} -
+
diff --git a/packages/Webkul/Admin/src/Resources/views/contacts/persons/view/attributes.blade.php b/packages/Webkul/Admin/src/Resources/views/contacts/persons/view/attributes.blade.php index 5a43445c3..0dc2a91ab 100644 --- a/packages/Webkul/Admin/src/Resources/views/contacts/persons/view/attributes.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/contacts/persons/view/attributes.blade.php @@ -17,8 +17,8 @@ ['code', 'NOTIN', ['name', 'jon_title']] ])" :entity="$person" - :allow-edit="true" :url="route('admin.contacts.persons.update', $person->id)" + :allow-edit="true" /> diff --git a/packages/Webkul/Admin/src/Resources/views/leads/view/attributes.blade.php b/packages/Webkul/Admin/src/Resources/views/leads/view/attributes.blade.php index 7d1fbc7a0..3c78d1aaa 100644 --- a/packages/Webkul/Admin/src/Resources/views/leads/view/attributes.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/leads/view/attributes.blade.php @@ -26,6 +26,7 @@ class="icon-edit rounded-md p-1 text-2xl transition-all hover:bg-gray-100 dark:h ])" :entity="$lead" :url="route('admin.leads.attributes.update', $lead->id)" + :allow-edit="true" /> 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 44a25cebf..1906381dd 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 @@ -10,9 +10,9 @@ 'entity_type' => 'products', ['code', 'IN', ['SKU', 'price', 'quantity', 'status']] ])->sortBy('sort_order')" - :allow-edit="true" :entity="$product" :url="route('admin.products.update', $product->id)" + :allow-edit="true" />
diff --git a/packages/Webkul/Admin/src/Resources/views/settings/warehouses/view/contact-information.blade.php b/packages/Webkul/Admin/src/Resources/views/settings/warehouses/view/contact-information.blade.php index e987789de..eb8f17d35 100644 --- a/packages/Webkul/Admin/src/Resources/views/settings/warehouses/view/contact-information.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/settings/warehouses/view/contact-information.blade.php @@ -5,6 +5,7 @@ @lang('admin::app.settings.warehouses.view.contact-information.title') + 'warehouses', ['code', 'IN', ['contact_name', 'contact_emails', 'contact_numbers', 'contact_address']] ])" - :allow-edit="true" :entity="$warehouse" :url="route('admin.settings.warehouses.update', $warehouse->id)" - /> + :allow-edit="true" + />
diff --git a/packages/Webkul/Admin/src/Resources/views/settings/warehouses/view/general-information.blade.php b/packages/Webkul/Admin/src/Resources/views/settings/warehouses/view/general-information.blade.php index 9cd030651..d392c5b8f 100644 --- a/packages/Webkul/Admin/src/Resources/views/settings/warehouses/view/general-information.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/settings/warehouses/view/general-information.blade.php @@ -17,9 +17,9 @@ 'entity_type' => 'warehouses', ['code', 'NOTIN', ['contact_name', 'contact_emails', 'contact_numbers', 'contact_address']] ])" - :allow-edit="true" :entity="$warehouse" :url="route('admin.settings.warehouses.update', $warehouse->id)" + :allow-edit="true" />