From 9ea68c770c8992842d0231e0178881b061e94276 Mon Sep 17 00:00:00 2001 From: terrylee Date: Thu, 16 Jul 2026 10:11:47 +0800 Subject: [PATCH] =?UTF-8?q?style(app-ui):=20APP=E7=AE=A1=E7=90=86=E4=B8=89?= =?UTF-8?q?=E9=A0=81=E6=94=B9=E7=94=A8=E7=AB=99=E4=B8=8A=E8=A8=AD=E8=A8=88?= =?UTF-8?q?=E7=B3=BB=E7=B5=B1(luxury=E6=8C=89=E9=88=95/=E6=A8=99=E6=BA=96?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC/=E8=86=A0=E5=9B=8Atabs/=E6=A8=99=E6=BA=96mod?= =?UTF-8?q?al/=E5=88=AA=E9=99=A4=E7=A2=BA=E8=AA=8D)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - btn-luxury-primary/secondary + x-delete-confirm-modal - 膠囊式頁籤(對齊 x-tab-nav 外觀) - 「新增」改用 __('Create')=新增(不動全域 New=新值,那是 products 變更紀錄用) Co-Authored-By: Claude Opus 4.8 (1M context) --- lang/en.json | 1 + lang/zh_TW.json | 1 + resources/views/admin/app/_tabs.blade.php | 29 ++--- .../admin/app/ui-bundles/content.blade.php | 28 ++-- .../admin/app/ui-bundles/index.blade.php | 95 +++++++------- .../admin/app/ui-elements/index.blade.php | 120 +++++++++--------- .../admin/app/ui-machines/index.blade.php | 39 +++--- 7 files changed, 157 insertions(+), 156 deletions(-) diff --git a/lang/en.json b/lang/en.json index d3e8d68..6bb4b88 100644 --- a/lang/en.json +++ b/lang/en.json @@ -2337,6 +2337,7 @@ "Type": "Type", "Type to search or leave blank for system defaults.": "Type to search or leave blank for system defaults.", "UI Elements": "UI Elements", + "APP UI Elements": "APP UI Elements", "UI Bundles": "UI Bundles", "Machine Binding": "Machine Binding", "UI element created": "UI element created", diff --git a/lang/zh_TW.json b/lang/zh_TW.json index 4adbaaf..ec844ed 100644 --- a/lang/zh_TW.json +++ b/lang/zh_TW.json @@ -2338,6 +2338,7 @@ "Type": "類型", "Type to search or leave blank for system defaults.": "輸入關鍵字搜尋,或留空以使用系統預設。", "UI Elements": "UI元素", + "APP UI Elements": "APP UI 元素設定", "UI Bundles": "UI組合編輯", "Machine Binding": "機台設定", "UI element created": "UI 元素已新增", diff --git a/resources/views/admin/app/_tabs.blade.php b/resources/views/admin/app/_tabs.blade.php index 1fb5584..90da629 100644 --- a/resources/views/admin/app/_tabs.blade.php +++ b/resources/views/admin/app/_tabs.blade.php @@ -1,25 +1,22 @@ -{{-- APP UI元素設定 共用頁籤列。傳入 $active = elements | bundles | machines --}} +{{-- APP UI元素設定 共用標題 + 頁籤列。傳入 $active = elements | bundles | machines --}} @php $tabs = [ - 'elements' => ['label' => __('UI Elements'), 'route' => 'admin.app.ui-elements'], - 'bundles' => ['label' => __('UI Bundles'), 'route' => 'admin.app.ui-bundles'], + 'elements' => ['label' => __('UI Elements'), 'route' => 'admin.app.ui-elements'], + 'bundles' => ['label' => __('UI Bundles'), 'route' => 'admin.app.ui-bundles'], 'machines' => ['label' => __('Machine Binding'), 'route' => 'admin.app.ui-machines'], ]; @endphp -
-
-
-

{{ __('APP Management') }}

-

{{ __('UI Elements') }}

-
-
-
+ +
+

{{ __('APP UI Elements') }}

+ + @if(session('success')) -
+
{{ session('success') }}
@endif @if($errors->any()) -
+
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
diff --git a/resources/views/admin/app/ui-bundles/content.blade.php b/resources/views/admin/app/ui-bundles/content.blade.php index 114090e..8b57ad6 100644 --- a/resources/views/admin/app/ui-bundles/content.blade.php +++ b/resources/views/admin/app/ui-bundles/content.blade.php @@ -1,43 +1,43 @@ @extends('layouts.admin') @section('content') -
+
@include('admin.app._tabs', ['active' => 'bundles']) -
- ← {{ __('Back') }} - / -

{{ __('Content Settings') }}:{{ $bundle->name }}

+
+ + + {{ __('Back') }} + +

{{ __('Content Settings') }}:{{ $bundle->name }}

@csrf @method('PUT') -
+
@foreach($parts as $key => $part) @php $currentId = optional($itemsByPart->get($key))->ui_element_id; $currentThumb = optional(optional($itemsByPart->get($key))->element)->image_url ?? ''; @endphp -
-
- +
diff --git a/resources/views/admin/app/ui-bundles/index.blade.php b/resources/views/admin/app/ui-bundles/index.blade.php index aefd93b..6d65541 100644 --- a/resources/views/admin/app/ui-bundles/index.blade.php +++ b/resources/views/admin/app/ui-bundles/index.blade.php @@ -1,75 +1,80 @@ @extends('layouts.admin') @section('content') -
+
@include('admin.app._tabs', ['active' => 'bundles']) -
-
-
- - - - - - +
+
{{ __('ID') }}{{ __('Name') }}{{ __('Actions') }}
+ + + + + - + @forelse($bundles as $bundle) - - + - @empty - + @endforelse
{{ __('ID') }}{{ __('Name') }}{{ __('Actions') }}
{{ $bundle->id }} + {{ $bundle->id }} {{ $bundle->name }} -
+ @csrf @method('PUT') - - - + + +
- - {{ __('Content Settings') }} -
- @csrf @method('DELETE') - -
+
+
+ + {{ __('Content Settings') }} + +
{{ __('No data') }}
{{ __('No data') }}
{{-- 新增組合 Modal --}} -