diff --git a/app/Livewire/Datatable/Studio/Catalog/BottlesTable.php b/app/Livewire/Datatable/Studio/Catalog/BottlesTable.php
index 285bdbe..a23d54a 100644
--- a/app/Livewire/Datatable/Studio/Catalog/BottlesTable.php
+++ b/app/Livewire/Datatable/Studio/Catalog/BottlesTable.php
@@ -66,7 +66,7 @@ public function columns(): array
->searchable()
->sortable()
->html()
- ->hideIf(auth()->user()->cannot('view cogs')),
+ ->hideIf(! auth()->user()->hasRole(['Developer', 'Owner'])),
Column::make('Harga Jual', 'sale_price')
->label(fn ($row, $column) => currency($row->sale_price, 'Rp'))
diff --git a/app/Livewire/Datatable/Studio/Catalog/PerfumesTable.php b/app/Livewire/Datatable/Studio/Catalog/PerfumesTable.php
index 4c0d0da..ccfb7d8 100644
--- a/app/Livewire/Datatable/Studio/Catalog/PerfumesTable.php
+++ b/app/Livewire/Datatable/Studio/Catalog/PerfumesTable.php
@@ -76,7 +76,7 @@ public function columns(): array
->searchable()
->sortable()
->html()
- ->hideIf(auth()->user()->cannot('view cogs')),
+ ->hideIf(! auth()->user()->hasRole(['Developer', 'Owner'])),
Column::make('Harga Jual', 'sale_price')
->label(fn ($row, $column) => currency($row->sale_price, 'Rp'))
diff --git a/app/Livewire/Datatable/Studio/Catalog/ProductsTable.php b/app/Livewire/Datatable/Studio/Catalog/ProductsTable.php
index 770ebe6..59cb4bc 100644
--- a/app/Livewire/Datatable/Studio/Catalog/ProductsTable.php
+++ b/app/Livewire/Datatable/Studio/Catalog/ProductsTable.php
@@ -65,7 +65,7 @@ public function columns(): array
->searchable()
->sortable()
->html()
- ->hideIf(auth()->user()->cannot('view cogs')),
+ ->hideIf(! auth()->user()->hasRole(['Developer', 'Owner'])),
Column::make('Harga Jual', 'sale_price')
->label(fn ($row, $column) => currency($row->sale_price, 'Rp'))
diff --git a/resources/views/livewire/studio/catalog/bottle/form.blade.php b/resources/views/livewire/studio/catalog/bottle/form.blade.php
index 9485ccc..8c07094 100644
--- a/resources/views/livewire/studio/catalog/bottle/form.blade.php
+++ b/resources/views/livewire/studio/catalog/bottle/form.blade.php
@@ -32,18 +32,19 @@
- @can('view cogs')
+ @if (auth()->user()->hasRole(['Developer', 'Owner']))
Harga Beli *
Rp
+ wire:model.live.debounce.500ms="form.cost_price"
+ autocomplete="off" />
- @endcan
+ @endif
diff --git a/resources/views/livewire/studio/catalog/perfume/form.blade.php b/resources/views/livewire/studio/catalog/perfume/form.blade.php
index 53508bb..1077d39 100644
--- a/resources/views/livewire/studio/catalog/perfume/form.blade.php
+++ b/resources/views/livewire/studio/catalog/perfume/form.blade.php
@@ -43,19 +43,20 @@ class="grid grid-cols-1 md:grid-cols-{{ auth()->user()->hasRole(['Developer', 'O
@endforeach
- @can('view cogs')
+ @if (auth()->user()->hasRole(['Developer', 'Owner']))
Harga Beli *
Rp
-
- @endcan
+ @endif
Harga Jual *
diff --git a/resources/views/livewire/studio/catalog/product/form.blade.php b/resources/views/livewire/studio/catalog/product/form.blade.php
index 810d48c..52c73a3 100644
--- a/resources/views/livewire/studio/catalog/product/form.blade.php
+++ b/resources/views/livewire/studio/catalog/product/form.blade.php
@@ -32,18 +32,19 @@
- @can('view cogs')
+ @if (auth()->user()->hasRole(['Developer', 'Owner']))
Harga Beli *
Rp
+ wire:model.live.debounce.500ms="form.cost_price"
+ autocomplete="off" />
- @endcan
+ @endif