| From Date: {{ $from_date }} To Date: {{ $to_date }} Staff Name:{{ $staffname }} |
| s.no | Product Name | @foreach ($units as $unit){{ $unit->name }} | @endforeach|
|---|---|---|---|
| {{ $loop->iteration }} | {{ $item[0]->stockItem->name }} | @php $orderUnits = $item->pluck('unit_id')->toArray(); @endphp @foreach ($units as $unit) @if (in_array($unit->id, $orderUnits)){{ $item->where('unit_id', $unit->id)->first()->base_qty }} | @else@endif @endforeach |