@extends('layouts.app') @section('content')
| Item | Purchased Qty | Purchased Avg. | Purchased Amount | Sales Qty | Sales Avg. | Sales Amount | Profit/Loss |
|---|---|---|---|---|---|---|---|
| {{ $row['item_name'] }} | {{ number_format($row['purchase_qty'], 2) }} | BDT {{ number_format($p_avg, 2) }} | BDT {{ number_format($row['purchase_amount'], 2) }} | {{ number_format($row['sales_qty'], 2) }} | BDT {{ number_format($s_avg, 2) }} | BDT {{ number_format($row['sales_amount'], 2) }} | BDT {{ number_format($profit, 2) }} |
| No data found for this date range. | |||||||
| Total | {{ number_format($t_pq, 2) }} | BDT {{ number_format(($t_pq>0 ? $t_pa/$t_pq : 0), 2) }} | BDT {{ number_format($t_pa, 2) }} | {{ number_format($t_sq, 2) }} | BDT {{ number_format(($t_sq>0 ? $t_sa/$t_sq : 0), 2) }} | BDT {{ number_format($t_sa, 2) }} | BDT {{ number_format($t_sa - $t_pa, 2) }} |