{{-- Machines Tab Content (Partial) --}} {{-- 此檔案被 index.blade.php 的 @include 和 AJAX 模式共用 --}} {{-- Toolbar 區:搜尋框 + 按鈕 (同列) --}}
{{-- 搜尋輸入框 --}}
{{-- 搜尋按鈕 --}} {{-- 重置按鈕 --}}
{{-- ── 桌面表格 (xl+) ── --}} {{-- ── Mobile / Tablet Card Grid (< xl) ── --}}
@forelse($machines as $machine) @php $status = $machine->calculated_status; @endphp
{{-- Card Header --}}
@if(isset($machine->image_urls[0])) @else @endif

{{ $machine->name }}

{{ $machine->serial_no }}

{{-- Info Grid --}}

{{ __('Machine Model') }}

{{ $machine->machineModel->name ?? '--' }}

{{ __('Owner') }}

{{ $machine->company->name ?? __('System') }}

{{ __('Card Reader') }}

{{ $machine->card_reader_seconds ?? 0 }}s / No.{{ $machine->card_reader_no ?? '--' }}

{{-- Action Buttons --}}
@empty
@endforelse
{{ $machines->appends(['tab' => 'machines'])->links('vendor.pagination.luxury') }}