From c482fb3c79d814f51e3a8a91d9042d44bd093ece Mon Sep 17 00:00:00 2001 From: sky121113 Date: Wed, 13 May 2026 17:22:24 +0800 Subject: [PATCH] =?UTF-8?q?[FEAT]=20=E5=9C=A8=E5=95=86=E5=93=81=E6=B8=85?= =?UTF-8?q?=E5=96=AE=E4=B8=AD=E9=A1=AF=E7=A4=BA=E5=95=86=E5=93=81=20ID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 修改 resources/views/admin/products/partials/tab-products.blade.php,在桌面版表格與行動版卡片中新增 ID 顯示。 2. 更新語系檔案 (zh_TW, en, ja),新增 ID 欄位的翻譯對應。 --- lang/en.json | 5 ++++- lang/ja.json | 5 ++++- lang/zh_TW.json | 5 ++++- .../views/admin/products/partials/tab-products.blade.php | 8 +++++++- 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/lang/en.json b/lang/en.json index 6774098..0ca46f5 100644 --- a/lang/en.json +++ b/lang/en.json @@ -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" } \ No newline at end of file diff --git a/lang/ja.json b/lang/ja.json index cc55e6c..e4acee6 100644 --- a/lang/ja.json +++ b/lang/ja.json @@ -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": "アップロードに失敗しました。もう一度お試しください" } \ No newline at end of file diff --git a/lang/zh_TW.json b/lang/zh_TW.json index 4da5ba6..f663c7b 100644 --- a/lang/zh_TW.json +++ b/lang/zh_TW.json @@ -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": "上傳失敗,請重試" } \ No newline at end of file diff --git a/resources/views/admin/products/partials/tab-products.blade.php b/resources/views/admin/products/partials/tab-products.blade.php index 55e608f..5cdb90c 100644 --- a/resources/views/admin/products/partials/tab-products.blade.php +++ b/resources/views/admin/products/partials/tab-products.blade.php @@ -74,6 +74,9 @@ $baseRoute = 'admin.data-config.products'; + @@ -102,6 +105,9 @@ $baseRoute = 'admin.data-config.products'; @forelse($products as $product) +
+ {{ __('ID') }} {{ __('Product Info') }}
+ #{{ $product->id }} +
@@ -249,7 +255,7 @@ $baseRoute = 'admin.data-config.products';

- {{ $product->barcode ?: '--' }} + {{ __('ID') }}: #{{ $product->id }} | {{ $product->barcode ?: '--' }}