diff --git a/app/Traits/Purchase/WithAddItem.php b/app/Traits/Purchase/WithAddItem.php index 761d4ba..5664b73 100644 --- a/app/Traits/Purchase/WithAddItem.php +++ b/app/Traits/Purchase/WithAddItem.php @@ -13,19 +13,19 @@ trait WithAddItem public function addItem(string $type) { switch ($type) { - case 'perfume': + case 'parfum': $model = Perfume::class; $id = $this->form->perfume_id; $quantity = replaceCurrency($this->form->quantity_perfume); break; - case 'product': + case 'produk': $model = Product::class; $id = $this->form->product_id; $quantity = replaceCurrency($this->form->quantity_product); break; - case 'bottle': + case 'botol': $model = Bottle::class; $id = $this->form->bottle_id; $quantity = replaceCurrency($this->form->quantity_bottle); diff --git a/resources/views/livewire/studio/manage/purchase/form.blade.php b/resources/views/livewire/studio/manage/purchase/form.blade.php index 2220cf4..58f1c5f 100644 --- a/resources/views/livewire/studio/manage/purchase/form.blade.php +++ b/resources/views/livewire/studio/manage/purchase/form.blade.php @@ -66,7 +66,7 @@ autocomplete="off" x-mask:dynamic="$money($input, ',')" />
- + Tambah
@@ -83,7 +83,7 @@ autocomplete="off" x-mask:dynamic="$money($input, ',')" />
- + Tambah
@@ -101,7 +101,7 @@ x-mask:dynamic="$money($input, ',')" />
- + Tambah