@php use App\Models\InstallationEvent; $expected = $this->expected; $installed = $expected->filter(fn ($l) => $l->currentInstallationStatus() === 'installed')->count(); @endphp

1 · Pilih kamar / ruang

@if ($this->room)

2 · Pindai label yang sudah ditempel

@endif @foreach ($feed as $f)
{{ $f['at'] }} {{ $f['message'] }}
@endforeach

Label yang seharusnya ada @if($this->room)· {{ $installed }}/{{ $expected->count() }} terpasang@endif

@if (! $this->room)
Pilih kamar untuk melihat daftar label.
@elseif ($expected->isEmpty())
Belum ada label aktif untuk ruang ini.
@else @foreach ($expected as $l) @php $st = $l->currentInstallationStatus(); @endphp @endforeach
KodeNamaStatus
{{ $l->asset?->asset_code ?? $l->quantityGroup?->group_code }} {{ $l->asset?->name ?? $l->quantityGroup?->name }} {{ InstallationEvent::STATUSES[$st] ?? $st }} @if ($st !== 'installed') @endif
@endif