feat: update attribute labels in various request files to use lowercase Indonesian terms for consistency

This commit is contained in:
Yoga Pangestu 2026-08-13 08:39:32 +07:00
parent 9f46b6d6be
commit 5a89a0d1e3
12 changed files with 112 additions and 112 deletions

View File

@ -64,18 +64,18 @@ public function rules(): array
public function attributes(): array public function attributes(): array
{ {
return [ return [
'email' => 'Email', 'email' => 'email',
'username' => 'Username', 'username' => 'username',
'role' => 'Role', 'role' => 'role',
'full_name' => 'Nama Lengkap', 'full_name' => 'nama lengkap',
'phone_number' => 'No. Telepon', 'phone_number' => 'no. telepon',
'gender' => 'Jenis Kelamin', 'gender' => 'jenis kelamin',
'birth_date' => 'Tanggal Lahir', 'birth_date' => 'tanggal lahir',
'address' => 'Alamat', 'address' => 'alamat',
'join_date' => 'Tanggal Masuk', 'join_date' => 'tanggal masuk',
'resign_date' => 'Tanggal Keluar', 'resign_date' => 'tanggal keluar',
'employment_status' => 'Status Kepegawaian', 'employment_status' => 'status kepegawaian',
'base_salary' => 'Gaji Pokok', 'base_salary' => 'gaji pokok',
]; ];
} }
} }

View File

@ -35,19 +35,19 @@ public function rules(): array
public function attributes(): array public function attributes(): array
{ {
return [ return [
'description' => 'Keterangan', 'description' => 'keterangan',
'product_name' => 'Nama Produk', 'product_name' => 'nama produk',
'sample' => 'Sample', 'sample' => 'sample',
'original_outside_sample' => 'Diluar Sample', 'original_outside_sample' => 'diluar sample',
'cutting_result' => 'Hasil', 'cutting_result' => 'hasil',
'materials' => 'Bahan Baku', 'materials' => 'bahan baku',
'materials.*.raw_material_price_id' => 'Varian Bahan Baku', 'materials.*.raw_material_price_id' => 'varian bahan baku',
'materials.*.material_usage' => 'Pemakaian', 'materials.*.material_usage' => 'pemakaian',
'materials.*.material_result' => 'Hasil Material', 'materials.*.material_result' => 'hasil material',
'materials.*.combination_index' => 'Indeks Kombinasi', 'materials.*.combination_index' => 'indeks kombinasi',
'combinations' => 'Kombinasi', 'combinations' => 'kombinasi',
'combinations.*.material_result' => 'Hasil Kombinasi', 'combinations.*.material_result' => 'hasil kombinasi',
'photo_key' => 'Foto', 'photo_key' => 'foto',
]; ];
} }
} }

View File

@ -48,22 +48,22 @@ public function rules(): array
public function attributes(): array public function attributes(): array
{ {
return [ return [
'name' => 'Nama Bahan Baku', 'name' => 'nama bahan baku',
'unit' => 'Satuan', 'unit' => 'satuan',
'variants' => 'Varian', 'variants' => 'varian',
'variants.*.variant' => 'Nama Varian', 'variants.*.variant' => 'nama varian',
'variants.*.price' => 'Harga', 'variants.*.price' => 'harga',
'variants.*.stock' => 'Stok', 'variants.*.stock' => 'stok',
'variants.*.photo_key' => 'Foto Varian', 'variants.*.photo_key' => 'foto varian',
'existing_items' => 'Item Bahan Baku', 'existing_items' => 'item bahan baku',
'existing_items.*.raw_material_price_id' => 'Varian Bahan Baku', 'existing_items.*.raw_material_price_id' => 'varian bahan baku',
'existing_items.*.quantity' => 'Jumlah', 'existing_items.*.quantity' => 'jumlah',
'existing_items.*.unit_price' => 'Harga Beli', 'existing_items.*.unit_price' => 'harga beli',
'supplier_id' => 'Supplier', 'supplier_id' => 'supplier',
'discount' => 'Diskon', 'discount' => 'diskon',
'shipping_cost' => 'Ongkir', 'shipping_cost' => 'ongkir',
'notes' => 'Keterangan', 'notes' => 'keterangan',
'photo_key' => 'Foto', 'photo_key' => 'foto',
]; ];
} }
} }

View File

@ -29,12 +29,12 @@ public function rules(): array
public function attributes(): array public function attributes(): array
{ {
return [ return [
'stock_type' => 'Jenis Stok', 'stock_type' => 'jenis stok',
'items' => 'Item Produk', 'items' => 'item produk',
'items.*.product_variant_id' => 'Varian Produk', 'items.*.product_variant_id' => 'varian produk',
'items.*.quantity' => 'Jumlah', 'items.*.quantity' => 'jumlah',
'notes' => 'Keterangan', 'notes' => 'keterangan',
'photo_key' => 'Foto', 'photo_key' => 'foto',
]; ];
} }
} }

View File

@ -57,23 +57,23 @@ public function rules(): array
public function attributes(): array public function attributes(): array
{ {
return [ return [
'stock_type' => 'Tipe Stok', 'stock_type' => 'tipe stok',
'channel' => 'Channel', 'channel' => 'channel',
'price_type' => 'Tipe Harga', 'price_type' => 'tipe harga',
'payment_type' => 'Tipe Pembayaran', 'payment_type' => 'tipe pembayaran',
'customer_id' => 'Pelanggan', 'customer_id' => 'pelanggan',
'marketing_id' => 'Marketing', 'marketing_id' => 'marketing',
'discount' => 'Diskon', 'discount' => 'diskon',
'nego_price' => 'Harga Nego', 'nego_price' => 'harga nego',
'is_completed' => 'Pesanan Selesai', 'is_completed' => 'pesanan selesai',
'is_affiliate' => 'Affiliasi', 'is_affiliate' => 'affiliasi',
'tiktok_order_id' => 'ID Pesanan TikTok', 'tiktok_order_id' => 'id pesanan tiktok',
'shopee_order_id' => 'ID Pesanan Shopee', 'shopee_order_id' => 'id pesanan shopee',
'items' => 'Item Produk', 'items' => 'item produk',
'items.*.product_variant_id' => 'Varian Produk', 'items.*.product_variant_id' => 'varian produk',
'items.*.quantity' => 'Jumlah', 'items.*.quantity' => 'jumlah',
'notes' => 'Keterangan', 'notes' => 'keterangan',
'photo_key' => 'Foto', 'photo_key' => 'foto',
]; ];
} }
} }

View File

@ -61,20 +61,20 @@ public function rules(): array
public function attributes(): array public function attributes(): array
{ {
return [ return [
'name' => 'Nama Produk', 'name' => 'nama produk',
'description' => 'Deskripsi', 'description' => 'deskripsi',
'status' => 'Status', 'status' => 'status',
'category_ids' => 'Kategori', 'category_ids' => 'kategori',
'variants' => 'Varian', 'variants' => 'varian',
'variants.*.name' => 'Nama Varian', 'variants.*.name' => 'nama varian',
'variants.*.stock' => 'Stok', 'variants.*.stock' => 'stok',
'variants.*.reject_stock' => 'Stok Reject', 'variants.*.reject_stock' => 'stok reject',
'variants.*.retail_stock' => 'Stok Retail', 'variants.*.retail_stock' => 'stok retail',
'variants.*.photo_keys' => 'Foto', 'variants.*.photo_keys' => 'foto',
'variants.*.photo_keys.*' => 'Foto', 'variants.*.photo_keys.*' => 'foto',
'variants.*.prices' => 'Harga', 'variants.*.prices' => 'harga',
'variants.*.prices.*.type' => 'Tipe Harga', 'variants.*.prices.*.type' => 'tipe harga',
'variants.*.prices.*.price' => 'Harga', 'variants.*.prices.*.price' => 'harga',
]; ];
} }
} }

View File

@ -40,15 +40,15 @@ public function rules(): array
public function attributes(): array public function attributes(): array
{ {
return [ return [
'name' => 'Nama Varian', 'name' => 'nama varian',
'stock' => 'Stok Bagus', 'stock' => 'stok bagus',
'reject_stock' => 'Stok Reject', 'reject_stock' => 'stok reject',
'retail_stock' => 'Stok Ecer', 'retail_stock' => 'stok ecer',
'photo_keys' => 'Foto', 'photo_keys' => 'foto',
'photo_keys.*' => 'Foto', 'photo_keys.*' => 'foto',
'prices' => 'Harga', 'prices' => 'harga',
'prices.*.type' => 'Tipe Harga', 'prices.*.type' => 'tipe harga',
'prices.*.price' => 'Harga', 'prices.*.price' => 'harga',
]; ];
} }
} }

View File

@ -22,8 +22,8 @@ public function rules(): array
public function attributes(): array public function attributes(): array
{ {
return [ return [
'quantity' => 'Jumlah Transfer', 'quantity' => 'jumlah transfer',
'description' => 'Keterangan', 'description' => 'keterangan',
]; ];
} }
} }

View File

@ -40,14 +40,14 @@ public function rules(): array
public function attributes(): array public function attributes(): array
{ {
return [ return [
'name' => 'Nama Bahan Baku', 'name' => 'nama bahan baku',
'unit' => 'Satuan', 'unit' => 'satuan',
'is_active' => 'Status', 'is_active' => 'status',
'variants' => 'Varian', 'variants' => 'varian',
'variants.*.variant' => 'Nama Varian', 'variants.*.variant' => 'nama varian',
'variants.*.price' => 'Harga', 'variants.*.price' => 'harga',
'variants.*.stock' => 'Stok', 'variants.*.stock' => 'stok',
'variants.*.photo_key' => 'Foto Varian', 'variants.*.photo_key' => 'foto varian',
]; ];
} }
} }

View File

@ -33,10 +33,10 @@ public function rules(): array
public function attributes(): array public function attributes(): array
{ {
return [ return [
'variant' => 'Nama Varian', 'variant' => 'nama varian',
'price' => 'Harga', 'price' => 'harga',
'stock' => 'Stok', 'stock' => 'stok',
'photo_key' => 'Foto', 'photo_key' => 'foto',
]; ];
} }
} }

View File

@ -32,8 +32,8 @@ public function rules(): array
public function attributes(): array public function attributes(): array
{ {
return [ return [
'name' => 'Nama Role', 'name' => 'nama role',
'permissions' => 'Permission', 'permissions' => 'permission',
]; ];
} }
} }

View File

@ -73,9 +73,9 @@ public function attributes(): array
'tiktok_shop_affiliate.base' => 'dasar affiliate tiktok shop', 'tiktok_shop_affiliate.base' => 'dasar affiliate tiktok shop',
'tiktok_shop_affiliate.type' => 'tipe affiliate tiktok shop', 'tiktok_shop_affiliate.type' => 'tipe affiliate tiktok shop',
'tiktok_shop_affiliate.value' => 'nilai affiliate tiktok shop', 'tiktok_shop_affiliate.value' => 'nilai affiliate tiktok shop',
'tiktok_shop_pre_order_service_fee.base' => 'dasar layanan PO tiktok shop', 'tiktok_shop_pre_order_service_fee.base' => 'dasar layanan po tiktok shop',
'tiktok_shop_pre_order_service_fee.type' => 'tipe layanan PO tiktok shop', 'tiktok_shop_pre_order_service_fee.type' => 'tipe layanan po tiktok shop',
'tiktok_shop_pre_order_service_fee.value' => 'nilai layanan PO tiktok shop', 'tiktok_shop_pre_order_service_fee.value' => 'nilai layanan po tiktok shop',
'shopee_admin_fee.base' => 'dasar biaya administrasi shopee', 'shopee_admin_fee.base' => 'dasar biaya administrasi shopee',
'shopee_admin_fee.type' => 'tipe biaya administrasi shopee', 'shopee_admin_fee.type' => 'tipe biaya administrasi shopee',
'shopee_admin_fee.value' => 'nilai biaya administrasi shopee', 'shopee_admin_fee.value' => 'nilai biaya administrasi shopee',
@ -94,12 +94,12 @@ public function attributes(): array
'shopee_order_processing_fee.base' => 'dasar biaya proses pesanan shopee', 'shopee_order_processing_fee.base' => 'dasar biaya proses pesanan shopee',
'shopee_order_processing_fee.type' => 'tipe biaya proses pesanan shopee', 'shopee_order_processing_fee.type' => 'tipe biaya proses pesanan shopee',
'shopee_order_processing_fee.value' => 'nilai biaya proses pesanan shopee', 'shopee_order_processing_fee.value' => 'nilai biaya proses pesanan shopee',
'shopee_ams_commission_fee.base' => 'dasar biaya komisi AMS shopee', 'shopee_ams_commission_fee.base' => 'dasar biaya komisi ams shopee',
'shopee_ams_commission_fee.type' => 'tipe biaya komisi AMS shopee', 'shopee_ams_commission_fee.type' => 'tipe biaya komisi ams shopee',
'shopee_ams_commission_fee.value' => 'nilai biaya komisi AMS shopee', 'shopee_ams_commission_fee.value' => 'nilai biaya komisi ams shopee',
'shopee_pre_order.base' => 'dasar PO shopee', 'shopee_pre_order.base' => 'dasar po shopee',
'shopee_pre_order.type' => 'tipe PO shopee', 'shopee_pre_order.type' => 'tipe po shopee',
'shopee_pre_order.value' => 'nilai PO shopee', 'shopee_pre_order.value' => 'nilai po shopee',
'shopee_live_extra.base' => 'dasar live extra shopee', 'shopee_live_extra.base' => 'dasar live extra shopee',
'shopee_live_extra.type' => 'tipe live extra shopee', 'shopee_live_extra.type' => 'tipe live extra shopee',
'shopee_live_extra.value' => 'nilai live extra shopee', 'shopee_live_extra.value' => 'nilai live extra shopee',