[FEAT] 補全機台與金流設定多語系,並調整帳號管理表格佈局
All checks were successful
star-cloud-deploy-demo / deploy-demo (push) Successful in 44s

This commit is contained in:
2026-03-18 13:52:54 +08:00
parent cd34724c76
commit 3f41896532
19 changed files with 990 additions and 398 deletions

View File

@@ -3,9 +3,9 @@
@section('header')
<div class="flex justify-between items-center">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
機台詳情: {{ $machine->name }}
{{ __('Machine Details') }}: {{ $machine->name }}
</h2>
<a href="{{ route('admin.machines.index') }}" class="text-sm text-gray-600 hover:text-gray-900"> 返回列表</a>
<a href="{{ route('admin.machines.index') }}" class="text-sm text-gray-600 hover:text-gray-900"> {{ __('Back to List') }}</a>
</div>
@endsection
@@ -14,21 +14,21 @@
<div class="sm:px-6 lg:px-8 space-y-6">
<!-- 基本資訊卡片 -->
<div class="bg-white shadow sm:rounded-lg p-6 border border-gray-200">
<h3 class="text-lg font-medium text-gray-900 mb-4 border-b pb-2">基本資訊</h3>
<h3 class="text-lg font-medium text-gray-900 mb-4 border-b pb-2">{{ __('Basic Information') }}</h3>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div>
<p class="text-xs text-gray-500 uppercase">當前狀態</p>
<p class="text-xs text-gray-500 uppercase">{{ __('Status') }}</p>
<p class="text-lg font-bold {{ $machine->status === 'online' ? 'text-green-600' : ($machine->status === 'error' ? 'text-red-600' : 'text-gray-600') }}">
{{ strtoupper($machine->status) }}
{{ __($machine->status === 'online' ? 'Online' : ($machine->status === 'error' ? 'Error' : 'Offline')) }}
</p>
</div>
<div>
<p class="text-xs text-gray-500 uppercase">位置</p>
<p class="text-xs text-gray-500 uppercase">{{ __('Location') }}</p>
<p class="text-sm">{{ $machine->location }}</p>
</div>
<div>
<p class="text-xs text-gray-500 uppercase">最後心跳時間</p>
<p class="text-sm">{{ $machine->last_heartbeat_at ?? 'N/A' }}</p>
<p class="text-xs text-gray-500 uppercase">{{ __('Last Heartbeat') }}</p>
<p class="text-sm">{{ $machine->last_heartbeat_at ?? __('N/A') }}</p>
</div>
</div>
</div>
@@ -36,16 +36,16 @@
<!-- 日誌顯示區 -->
<div class="bg-gray-900 shadow sm:rounded-lg overflow-hidden border border-gray-700">
<div class="p-4 bg-gray-800 border-b border-gray-700 flex justify-between items-center">
<h3 class="text-md font-medium text-gray-200">即時操作日誌 (最後 50 )</h3>
<span class="text-xs text-gray-400">所有時間為系統時區</span>
<h3 class="text-md font-medium text-gray-200">{{ __('Real-time Operation Logs (Last 50)') }}</h3>
<span class="text-xs text-gray-400">{{ __('All Times System Timezone') }}</span>
</div>
<div class="p-0 max-h-[600px] overflow-y-auto">
<table class="min-w-full divide-y divide-gray-800 font-mono text-xs">
<thead class="bg-gray-800 sticky top-0">
<tr>
<th class="px-4 py-2 text-left text-gray-500">時間</th>
<th class="px-4 py-2 text-left text-gray-500">層級</th>
<th class="px-4 py-2 text-left text-gray-500">訊息</th>
<th class="px-4 py-2 text-left text-gray-500">{{ __('Time') }}</th>
<th class="px-4 py-2 text-left text-gray-500">{{ __('Level') }}</th>
<th class="px-4 py-2 text-left text-gray-500">{{ __('Message') }}</th>
</tr>
</thead>
<tbody class="divide-y divide-gray-800">
@@ -75,7 +75,7 @@
</tr>
@empty
<tr>
<td colspan="3" class="px-4 py-8 text-center text-gray-500 italic">暫無相關日誌</td>
<td colspan="3" class="px-4 py-8 text-center text-gray-500 italic">{{ __('No logs found') }}</td>
</tr>
@endforelse
</tbody>