{{trans('general.date')}} |
{{trans('orders.order')}}# |
{{$lang['party_2']}} |
{{trans('general.total')}} |
{{trans('general.tax')}} |
{{trans('accounts.balance')}} |
@php
$fill = false;
$balance=0;
foreach ($account_details as $row) {
if ($fill == true) {
$flag = ' mfill';
} else {
$flag = '';
}
$cgst=0; $sgst=0;$igst=0;
$balance += $row['tax'];
if($row['tax_format']=='cgst'){
$cgst=$row['tax']/2;
$sgst=$row['tax']/2;
} else{
$igst=$row['tax'];
}
echo '' . dateFormat($row['invoicedate']) . ' | ' . $row['tid'] . ' | ' . $row->customer->name . ' | ' . amountFormat($row['total']) . ' | ' . amountFormat($row['tax']) . ' | ' . amountFormat($balance) . ' |
';
echo 'CGST ' . amountFormat($cgst) . ' | SGST ' . amountFormat($sgst) . ' | IGST ' . amountFormat($igst) . ' |
';
$fill = !$fill;
}
@endphp