{{-- 💡 組件內部已經包含了 @csrf,但為了保險起見我們維持原樣 --}} @csrf {{-- Card wrapper --}}
{{-- Room Details --}}

Room Details

{{-- 1. Unit 字段 --}}
@if(isset($unit))
Unit {{ $unit->unit_no }} ({{ $unit->property->name ?? 'N/A' }})
@else
Error: No unit selected. Go back
@endif
{{-- 2. Room Number --}}
{{-- 3. Room Type --}}
{{-- 4. Status --}}
{{-- 5. Address --}}
{{ $unit->property->address . ', ' . $unit->property->city . ', ' . $unit->property->postcode . ' ' . $unit->property->state ?? 'No address set for this property' }}
* This room will be registered under the primary property address.

{{-- Asset Selection (Library) - 保持原樣以確保 JS 功能正常 --}}

Select Assets for this Room

ASSET-PICKER
@forelse($assetLibrary as $lib) @if($lib->status === "Active")
{{ $lib->name }}
index.qty", 0) }}" readonly class="qty-input w-10 text-center text-[12px] bg-transparent border-none focus:ring-0 p-0" onchange="syncCheckbox(this)">
@endif @empty
No active assets found in library
@endforelse
{{-- Actions --}}