{{trans('general.date')}} |
{{trans('products.product')}} |
{{trans('products.price')}} |
{{trans('products.qty')}} |
{{trans('general.total')}} |
@php
$fill = false;
$balance=0;
foreach ($account_details as $row) {
if ($fill == true) {
$flag = ' mfill';
} else {
$flag = '';
}
$balance += $row['product_qty'];
echo '' . dateFormat($row['created_at']) . ' | ' . $row['product_name'] . ' | ' . amountFormat($row['product_price']) .' | ' . numberFormat($row['product_qty']) . ' '. $row['unit'] . ' | ' . numberFormat($balance) . ' |
';
$fill = !$fill;
}
@endphp