@include('backend.admin.report.header')
Date: {{ request()->get('date') ?? '' }}
@php $totalPurchasePrice = 0; $totalSalePrice = 0; @endphp @foreach ($results as $item) @php $totalPurchasePrice += $item->stock * $item->purchase_price; $totalSalePrice += $item->stock * $item->sale_price; @endphp @endforeach
Sl# Product Category Stock ID Stock Purchase Price Stock Price Sale Price Total Price Total Purchase Total Sale Total Stock
{{ $loop->iteration }} {{ $item->name_en }} {{ $item->category }} {{ $item->stock_id }}@if ($item->batch_no)
{{ $item->batch_no }}@endif
{{ $item->stock }} {{ $item->purchase_price }} {{ $item->stock * $item->purchase_price }} {{ $item->sale_price }} {{ $item->stock * $item->sale_price }} {{ (int) ($item->total_purchase ?? 0) }} {{ (int) ($item->total_sale ?? 0) }} {{ (int) ($item->total_stock ?? 0) }}
Total {{ number_format($totalPurchasePrice, 2) }} {{ number_format($totalSalePrice, 2) }}
Accontant   Manager