@extends ('focus.report.pdf.statement') @section('statement_body') @php $fill = false; $balance=0; foreach ($transactions as $row) { if ($fill == true) { $flag = ' mfill'; } else { $flag = ''; } $balance += ($row['product_price'] - $row['purchase_price'])*$row['product_qty']; echo ''; $fill = !$fill; } @endphp
{{trans('general.date')}} {{trans('products.product')}} {{trans('meta.purchase')}} {{trans('meta.sales')}} {{trans('en.profit')}}
' . dateFormat($row['created_at']) . ''.$row['product_name'] . ' ' . $row['code'].'' . amountFormat($row['purchase_price']) . '' . amountFormat($row['product_price']) . '' . amountFormat($balance) . '


{{trans('general.summary')}}
{{trans('en.profit')}}: {{amountFormat($balance)}}
@endsection