@php $product=App\Models\Product::all(); $netTotal=0; foreach ($product as $key => $products) { $netTotal+=$products->quantity * $products->price; } @endphp Wancom Report
logo

Wancom Report

{{-- --}} {{-- --}} {{-- --}} @if(count($data['products']) > 0) @foreach($data['products'] as $p) @php $debit = 0; $debit =( $p['price'] * $p['quantity']) + $debit; @endphp @endforeach @endif @if(count($data['purchaseOrder']) > 0) @foreach($data['purchaseOrder'] as $po) @endforeach @endif {{-- --}}
Date Products Quantity In Quantity out Department Name
{{$p['created_at']}} {{$p['name']}} {{$p['quantity']}} Inventory
{{$po['created_at']}} {{$po['name']}} {{$po['quantity']}} {{$po['deptName']}}

Stock Price : Rs. {{$netTotal}}

This is a system generated report
Generated By: {{Auth::user()->name}} on {{$currentDate}}