Department Wise Report Department Wise Report {{-- Test --}}
{{--
 
--}}
{{-- @foreach ($stockDetails as $detail) @endforeach --}} @foreach ($fixedCategories as $cat) @endforeach @foreach ($stockDetails as $index => $row) @foreach ($fixedCategories as $cat) @endforeach @endforeach
Sr No. Work Order No. Vendor Inward Date Category Product Unit Brand Model View Quantity Supplied Quantity Remaining Quantity
{{ $loop->iteration }} {{ $detail->stock->work_order_no }} {{ $detail->stock->vendor->company_name }} {{ $detail->stock->inward_date }} {{ $detail->category->name }} {{ $detail->product->name }} {{ $detail->unit->name }} {{ $detail->brand }} {{ $detail->model }} @isset($detail->stock?->work_order_file) View @else N/A @endisset {{ $detail->stock_quantity }} {{ $detail->supplied_quantity }} {{ $detail->remaining_quantity }}
Sr No. Department User Name{{ $cat }}
{{ $index + 1 }} {{ $row['department'] }} {{ $row['user_name'] }} @if (!empty($row[$cat])) @foreach (explode("\n", $row[$cat]) as $product) {{ $product }} @endforeach @else @endif
{{-- Print Selected Filed in PDF --}}