[FEAT] 在商品清單中顯示商品 ID

1. 修改 resources/views/admin/products/partials/tab-products.blade.php,在桌面版表格與行動版卡片中新增 ID 顯示。
2. 更新語系檔案 (zh_TW, en, ja),新增 ID 欄位的翻譯對應。
This commit is contained in:
sky121113 2026-05-13 17:22:24 +08:00
parent 69e825aeb3
commit c482fb3c79
4 changed files with 19 additions and 4 deletions

View File

@ -684,6 +684,7 @@
"Hours": "Hours",
"Hrs": "Hrs",
"IC Card UID": "IC Card UID",
"ID": "ID",
"ITEM": "ITEM",
"Identification": "Identification",
"Identity & Codes": "Identity & Codes",
@ -1944,5 +1945,7 @@
"Real-time fleet status and revenue monitoring": "Real-time fleet status and revenue monitoring",
"[StaffCard] Verification failed: :uid": "[StaffCard] Verification failed: :uid",
"[PickupCode] Verification failed: :code": "[PickupCode] Verification failed: :code",
"Sync Ads": "Sync Ads"
"Sync Ads": "Sync Ads",
"Uploading...": "Uploading...",
"Upload failed, please try again": "Upload failed, please try again"
}

View File

@ -684,6 +684,7 @@
"Hours": "時間",
"Hrs": "時間",
"IC Card UID": "ICカード UID",
"ID": "ID",
"ITEM": "アイテム",
"Identification": "識別情報",
"Identity & Codes": "識別とコード",
@ -1943,5 +1944,7 @@
"Real-time fleet status and revenue monitoring": "フリート全体のリアルタイムステータスと収益監視",
"[StaffCard] Verification failed: :uid": "[スタッフカード] 認証失敗: :uid",
"[PickupCode] Verification failed: :code": "[受取コード] 認証失敗: :code",
"Sync Ads": "広告を同期"
"Sync Ads": "広告を同期",
"Uploading...": "アップロード中...",
"Upload failed, please try again": "アップロードに失敗しました。もう一度お試しください"
}

View File

@ -684,6 +684,7 @@
"Hours": "小時",
"Hrs": "小時",
"IC Card UID": "IC 卡號",
"ID": "ID",
"ITEM": "ITEM",
"Identification": "識別資訊",
"Identity & Codes": "識別與代碼",
@ -1949,5 +1950,7 @@
"Manual Sync Ads": "手動同步機台廣告",
"Sync command sent successfully.": "同步指令已成功送出",
"Failed to send sync command.": "無法送出同步指令",
"Sync Ads": "同步廣告"
"Sync Ads": "同步廣告",
"Uploading...": "上傳中...",
"Upload failed, please try again": "上傳失敗,請重試"
}

View File

@ -74,6 +74,9 @@ $baseRoute = 'admin.data-config.products';
<table class="w-full text-left border-separate border-spacing-y-0">
<thead>
<tr class="bg-slate-50/50 dark:bg-slate-900/10">
<th
class="px-6 py-4 text-xs font-bold text-slate-500 dark:text-slate-400 uppercase tracking-[0.15em] border-b border-slate-100 dark:border-slate-800">
{{ __('ID') }}</th>
<th
class="px-6 py-4 text-xs font-bold text-slate-500 dark:text-slate-400 uppercase tracking-[0.15em] border-b border-slate-100 dark:border-slate-800">
{{ __('Product Info') }}</th>
@ -102,6 +105,9 @@ $baseRoute = 'admin.data-config.products';
<tbody class="divide-y divide-slate-50 dark:divide-slate-800/80">
@forelse($products as $product)
<tr class="group hover:bg-slate-50/50 dark:hover:bg-white/[0.02] transition-colors duration-200">
<td class="px-6 py-5 whitespace-nowrap">
<span class="text-sm font-mono font-black text-slate-400 dark:text-slate-500 tracking-tight">#{{ $product->id }}</span>
</td>
<td class="px-6 py-5 cursor-pointer group/info" @click="viewProductDetail(@js($product))"
title="{{ __('View Details') }}">
<div class="flex items-center gap-x-4">
@ -249,7 +255,7 @@ $baseRoute = 'admin.data-config.products';
</h3>
<p
class="text-xs font-mono font-bold text-slate-400 dark:text-slate-500 uppercase tracking-widest truncate">
{{ $product->barcode ?: '--' }}
{{ __('ID') }}: #{{ $product->id }} | {{ $product->barcode ?: '--' }}
</p>
</div>
</div>