@php
$amount = $report->perday_amount * $report->amountday;
$discounted = $report->perday_amount * $report->discount_day;
$discount += $discounted;
$costs += $report->principal; //($report->principal + $report->interest) - $report->perday_amount;
$sales += $amount;
if($report->product_group == 1 || $report->product_group == 2){
$goldweight += $report->weight;
}
@endphp
| {{ $report->first_date }} |
{{ $report->contract_no }} |
{{ $report->name }} |
{{ nb($amount,2)}} |
{{ nb($discounted,2) }} |
{{nb( $amount - $discounted ,2) }} |
@endforeach