@php $gst_amount = $gst_amount ?? 0; @endphp @if($gst_amount>0) @endif @if($transactionSummery['discountAmount']>0) @endif @php $grand_total = $transactionSummery['totalBilling'] + $gst_amount - (Integer)$transactionSummery['discountAmount'] ?? 0; @endphp @if($transactionSummery['roundOffAmount']!=0) @endif
VOUCHER SUMMARY
BASIC AMOUNT {!! isset($transactionSummery['totalBilling']) ? convertDecimelPoint($transactionSummery['totalBilling']) : '' !!}
TOTAL TAX {!! convertDecimelPoint($gst_amount) ?? '' !!}
SUBTOTAL {!! convertDecimelPoint($transactionSummery['totalBilling'] + $gst_amount) ?? '' !!}
SPECIAL DISCOUNT {!! convertDecimelPoint($transactionSummery['discountAmount']) ?? '' !!}
Round OFF {!! abs($transactionSummery['roundOffAmount']) !!}
GRAND TOTAL @if($transactionSummery['roundOffAmount']!=0) {!! convertDecimelPoint(round($grand_total)) !!} @else {!! convertDecimelPoint($grand_total) !!} @endif
{{--

In words : {!! convertAmountToWords($grand_total) !!}

--}}