| {{ $value->product->id }} |
{{ $value->product->product_name }} |
{{ $value->category->category_name }} |
{{ $value->sub_category->sub_category_name }} |
{{ $value->sub_sub_category->sub_sub_category_name }} |
{{ $value->brand->brand_name }} |
{{ $value->total_sold_qty }} |
{{ $value->total_buying_amount }} |
{{ $value->total_sales_amount }} |
{{ $value->total_sales_amount - $value->total_buying_amount }} |
@php
$total_sold_qty += $value->total_sold_qty;
$total_buying_amount += $value->total_buying_amount;
$total_sales_amount += $value->total_sales_amount;
@endphp
@endforeach