@php ($index = 1)
@php ($nettotal = 0)
@php ($taxtotal = 0)
@php ($grandtotal = 0)
@foreach($sales_invoice->items as $item)
@php ($itemrate = $item->rate)
@php ($displayrate = number_format($item->rate, 2))
@php ($tax = 0)
@php ($subtotal = $item->amount)
@php ($taxtotal += $tax)
@php ($nettotal += $subtotal)
{{ $index++ }} |
{{ $item->item_name }} |
{{isset($currency_symbol)? $currency_symbol : '$'}} {{ $displayrate }} |
{{ $item->discount_percentage }} |
{{isset($currency_symbol)? $currency_symbol : '$'}} {{ number_format($subtotal,2) }} |
@endforeach
|
|
|
{{Lang::get('payment.net_total')}} |
{{isset($currency_symbol)? $currency_symbol : '$'}} {{ number_format($sales_invoice->total, 2) }} |
|
|
|
{{Lang::get('payment.tax')}} |
{{isset($currency_symbol)? $currency_symbol : '$'}}{{ number_format($sales_invoice->total_taxes_and_charges, 2) }} |
|
|
|
{{Lang::get('payment.discount_amount')}} |
{{isset($currency_symbol)? $currency_symbol : '$'}} {{ number_format($sales_invoice->discount_amount, 2) }} |
|
|
|
{{Lang::get('payment.total')}} |
{{isset($currency_symbol)? $currency_symbol : '$'}} {{ number_format($sales_invoice->rounded_total, 2) }} |