{{ ($s=$o->supplied)->supplier_detail->supplier->name }} Us  
Product #{{ $s->id }}: {{ $s->name }} #{{ $o->product->id }}: {{ $o->product->name }} {{ $s->type }}
Setup ${{ number_format($a=\App\Models\Tax::tax_calc($s->setup_cost,$o->account->taxes),2) }} ${{ number_format($b=\App\Models\Tax::tax_calc($o->product->setup_charge,$o->account->taxes),2) }} {!! markup($a,$b) !!}
Billed {{ $s->billing_interval_string }} {{ $o->billing_interval_string }}  
Billing Price ${{ number_format($a=\App\Models\Tax::tax_calc($s->base_cost*\App\Models\Invoice::billing_change($s->billing_interval,$o->product->billing_interval),$o->account->taxes),2) }} ${{ number_format($b=$o->billing_charge,2) }} {!! markup($a,$b) !!}
Monthly Price ${{ number_format($a=\App\Models\Tax::tax_calc($s->base_cost*\App\Models\Invoice::billing_change($s->billing_interval,1),$o->account->taxes),2) }} ${{ number_format($b=$o->billing_monthly_price,2) }} {!! markup($a,$b) !!}
Contract {{ $s->contract_term }} months {{ $o->contract_term }} months  
Min Price ${{ number_format($a=\App\Models\Tax::tax_calc($s->min_cost,$o->account->taxes),2) }} ${{ number_format($b=\App\Models\Tax::tax_calc($o->product->getMinChargeAttribute($o->billing_interval),$o->account->taxes),2) }} {!! markup($a,$b) !!}
@php function markup($a,$b) { return ($a > $b) ? sprintf('(%3.1f%%)',$a ? ($b-$a)/($b ?: 1)*100 : 100) : sprintf('%3.1f%%',$a ? ($b-$a)/($b ?: 1)*100 : ($b ? 100: 0)); } @endphp