@extends ('focus.report.pdf.statement') @section('statement_body') @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 ''; echo ''; $fill = !$fill; } @endphp
{{trans('general.date')}} {{trans('orders.order')}}# {{$lang['party_2']}} {{trans('general.total')}} {{trans('general.tax')}} {{trans('accounts.balance')}}
' . dateFormat($row['invoicedate']) . '' . $row['tid'] . '' . $row->customer->name . '' . amountFormat($row['total']) . '' . amountFormat($row['tax']) . '' . amountFormat($balance) . '
CGST ' . amountFormat($cgst) . 'SGST ' . amountFormat($sgst) . 'IGST ' . amountFormat($igst) . '


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