@use(Carbon\CarbonInterface) @use(App\Models\Invoice) @php($c=$o->product) @if($p->exists) @endif @if($p->exists) @endif @if($p->exists) @endif @if($p->exists) @endif @if($p->exists) @endif @if($p->exists) @endif @if($p->exists) @endif @if($p->exists) @endif @if($p->exists) @endif @if($o->is_contracted) @else @endif @if($p->exists) @endif
  This Plan  Proposed Plan  
  Client Supplier  Client Supplier  
Product #{{ $o->product_id }}: {{ $o->product->name }} #{{ $c->supplied->id }}: {{ $c->supplied->name_long }} {{ $c->category_name }}#{{ $p->id }}: {{ $p->name }} #{{ $p->supplied->id }}: {{ $p->supplied->name_long }}  
Setup ${{ number_format($b=$o->account->taxed($c->setup_charge),2) }} ${{ number_format($a=$o->account->taxed($c->setup_cost),2) }} {!! markup($a,$b) !!}${{ number_format($b=$o->account->taxed($p->setup_charge),2) }} ${{ number_format($a=$o->account->taxed($p->setup_cost),2) }} {!! markup($a,$b) !!}
Billed {{ $o->billing_interval_name }} {{ $c->type->billing_interval_string }}  {{ $o->billing_interval_name }} {{ $p->type->billing_interval_string }}  
Billing Price $o->is_charge_overridden])>${{ number_format($b=$o->billing_charge_taxed,2) }} $o->is_cost_overridden])>${{ number_format($a=$o->billing_cost_taxed,2) }} {!! markup($a,$b) !!}is_charge_overridden)class="text-danger"@endif>${{ number_format($b=$o->account->taxed($p->base_charge()),2) }} ${{ number_format($a=$o->account->taxed($p->base_cost),2) }} {!! markup($a,$b) !!}
Monthly Price $o->is_charge_overridden])> @if($o->is_charge_overridden) ${{ number_format($b=$o->billing_charge_normalised_taxed,2) }} @else ${{ number_format($b=$o->billing_charge_normalised_taxed,2) }} @endif $o->is_cost_overridden])> @if($o->is_cost_overridden) ${{ number_format($a=$o->billing_cost_normalised_taxed,2) }} @else ${{ number_format($a=$o->billing_cost_normalised_taxed,2) }} @endif {!! markup($a,$b) !!}$o->is_charge_overridden])>${{ number_format($b=$o->account->taxed($p->base_charge())*Invoice::billing_change($o->billing_interval,Invoice::BILL_MONTHLY),2) }} $o->is_cost_overridden])>${{ number_format($a=$o->account->taxed($p->base_cost)*Invoice::billing_change($o->billing_interval,Invoice::BILL_MONTHLY),2) }} {!! markup($a,$b) !!}
Contract {{ $o->contract_term }} months {{ $c->supplied->contract_term }} months  {{ $p->contract_term }} months {{ $p->supplied->contract_term }} months  
Min Price ${{ number_format($b=$o->account->taxed($o->product->min_charge),2) }} ${{ number_format($a=$o->account->taxed($c->supplied->min_cost),2) }} {!! markup($a,$b) !!}${{ number_format($a=$o->account->taxed($p->min_charge),2) }} ${{ number_format($a=$o->account->taxed($p->supplied->min_cost ?? 0),2) }} {!! markup($a,$b) !!}
Contract Left${{ number_format($o->billing_charge_to($o->contract_end),2) }} ({{ $o->paid_to?->format('Y-m-d') }}) ${{ number_format($o->billing_cost_to($o->contract_end),2) }} ({{ $o->invoiced_to?->format('Y-m-d') }}) {{ $o->contract_end->format('Y-m-d') }}
({{ $o->contract_end->diffForHumans(now(),CarbonInterface::DIFF_RELATIVE_TO_OTHER,FALSE,2) }} today)
Not on contract