@php $grandTotal = 0; $uniqueRacks = collect($data['collection'])->pluck('rack_num')->unique(); $isSingleRack = $uniqueRacks->count() === 1; @endphp @if ($isSingleRack) @endif
INVENTORY PHYSICAL COUNT
Prooflist Report
Count Site: {{ $data['countSite'] }}
Area: {{ $data['area'] }}
Rack: {{ $uniqueRacks->first() }}
@if (!$isSingleRack) @endif @php $grandTotal = 0; @endphp @forelse ($data['collection'] as $item) @php $grandTotal += $item->qty; @endphp @if (!$isSingleRack) @endif @empty no data @endforelse
SeqRackBrand Code Item Code Description Qty Scanner
{{ $loop->iteration }}{{ $item->rack_num }}{{ $item->sap_brand_code }} {{ $item->sap_article }} {{ $item->sap_product_name }} {{ $item->qty }} {{ $item->sc_id }}
Total Qty: {{ $grandTotal }}