{{-- ================= HEADER ================= --}} @include('templates.pdf_header', [ 'organisation' => $organisation, 'asOfDate' => $from_date->toDateString().' to '.$to_date->toDateString(), 'title' => 'Stock Ledger Report' ])
{{-- ================= LEDGER TABLE ================= --}} {{-- STOCK IN --}} {{-- STOCK OUT --}} {{-- BALANCE --}} @php $lastItem = null; @endphp @if (!$data)

There is no data found

@endif @foreach($data as $row) {{-- ITEM NAME (PRINT ONCE) --}} {{-- STOCK IN --}} {{-- STOCK OUT --}} {{-- BALANCE --}} @endforeach
Item Warehouse UOM STOCK IN STOCK OUT BALANCE
Qty Price ValueQty Cost ValueQty Value
@if($lastItem !== $row['particular']) {{ $row['particular'] }} @php $lastItem = $row['particular']; @endphp @endif {{ $row['warehouse'] ?? 'N/A' }} {{ $row['uom'] }}{{ number_format($row['quantity_received'], 2) }} {{ number_format($row['buying_price'], 2) }} {{ number_format($row['stock_in_value'], 2) }}{{ number_format($row['stock_out_qty'], 2) }} {{ number_format($row['stock_out_cost'], 2) }} {{ number_format($row['stock_out_value'], 2) }}{{ number_format($row['balance_qty'], 2) }} {{ number_format($row['balance_value'], 2) }}
{{-- ================= FOOTER ================= --}}