@php ($taxrate = 0) @php ($index = 1) @php ($nettotal = 0) @php ($taxtotal = 0) @php ($grandtotal = 0) @foreach($serviceFees as $key => $serviceFee) @if($currency == "SOS") @php ($item_price = $item_price_list[$key]->price_list_rate) @php ($itemrate = $item_price) @else @php ($itemrate = $serviceFee->standard_rate) @endif @if($currency == "SOS") @php ($displayrate = number_format($item_price, 2)) @else @php ($displayrate = number_format($serviceFee->standard_rate, 2)) @endif @if($currency == "SOS") @php ($tax = $taxrate * $item_price) @else @php ($tax = $taxrate * $serviceFee->standard_rate) @endif @php ($subtotal = $tax + $itemrate) @php ($taxtotal += $tax) @php ($nettotal += $subtotal) @endforeach
No. Fee Item Fee ({{isset($currency_symbol)? $currency_symbol : '$'}}) Tax ({{$taxrate}}%) Discount % Net Subtotal ({{isset($currency_symbol)? $currency_symbol : '$'}})
{{ $index++ }} {{ $serviceFee->description }} {{isset($currency_symbol)? $currency_symbol : '$'}} {{ $displayrate }} {{isset($currency_symbol)? $currency_symbol : '$'}} {{ number_format($tax, 2) }} ({{$taxrate}}%) {{ $item->discount_percentage }} {{isset($currency_symbol)? $currency_symbol : '$'}} {{ number_format($subtotal,2) }}
Net Total {{isset($currency_symbol)? $currency_symbol : '$'}} {{ number_format($nettotal,2) }}
Tax {{isset($currency_symbol)? $currency_symbol : '$'}} {{ number_format($taxtotal,2) }}
{{Lang::get('payment.discount_amount')}} {{isset($currency_symbol)? $currency_symbol : '$'}} {{ isset($sales_invoice->discount_amount)? number_format($sales_invoice->discount_amount, 2) : 0.00 }}
TOTAL {{isset($currency_symbol)? $currency_symbol : '$'}} {{ number_format($nettotal + $taxtotal, 2) }}