All prices in US Dollar.
Subscription:
@foreach($packageList as $list)
@if($list->price_id == $plan->id)
@if($list->package_id == 1)
Single Unit
@elseif($list->package_id == 2)
Multi Unit
@else
Commercial
@endif
@endif
@endforeach
@foreach($packageList as $list)
@if($list->price_id == $plan->id)
({{$list->schedule_type}})
@endif
@endforeach
-
@if(count($invoice['lines']['data']) > 1)
{{$invoice['lines']['data'][1]['quantity']}}
@else
{{$invoice['lines']['data'][0]['quantity']}}
@endif
Unit
@if($invoice->subtotal < 0 || $history)
${{number_format($history->subtotal,2)}}
@else
${{number_format($invoice->subtotal/100 ,2)}}
@endif
Subtotal
@if($invoice->subtotal < 0 || $history)
${{number_format($history->subtotal,2)}}
@else
${{number_format($invoice->subtotal/100 ,2)}}
@endif
Discount
@if($invoice->subtotal < 0 || $history)
${{number_format($history->subtotal - $history->amount,2)}}
@else
@if(count($invoice->total_discount_amounts)> 0)
${{ number_format($invoice['total_discount_amounts']['0']['amount']/100,2)}}
@else
$0.00
@endif
@endif
Account Credit
@if($invoice->subtotal < 0) ${{ str_replace("-", "", number_format($invoice->subtotal/100 ,2)) }} @else $0.00 @endif
Paid
${{number_format($invoice->amount_paid/100 ,2)}}