@php
$product=App\Models\Product::all();
$netTotal=0;
foreach ($product as $key => $products) {
$netTotal+=$products->quantity * $products->price;
}
@endphp
Wancom Report
{{-- --}}
Date |
Products |
Quantity In |
Quantity out |
Department Name |
{{-- --}}
{{-- --}}
@if(count($data['products']) > 0)
@foreach($data['products'] as $p)
{{$p['created_at']}} |
{{$p['name']}} |
{{$p['quantity']}} |
|
Inventory |
@php
$debit = 0;
$debit =( $p['price'] * $p['quantity']) + $debit;
@endphp
@endforeach
@endif
@if(count($data['purchaseOrder']) > 0)
@foreach($data['purchaseOrder'] as $po)
{{$po['created_at']}} |
{{$po['name']}} |
|
{{$po['quantity']}} |
{{$po['deptName']}} |
@endforeach
@endif
{{-- --}}
Stock Price : Rs. {{$netTotal}}
This is a system generated report
Generated By: {{Auth::user()->name}} on {{$currentDate}}