@use(App\Models\Invoice) @use(Carbon\CarbonInterface) @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->isContract()) @else @endif
  This Plan  Proposed Plan  
  Client Supplier  Client Supplier  
Product #{{ $o->product_id }}: {{ $o->product->name }} #{{ $c->supplied->id }}: {{ $c->supplied->name_long }}  #{{ $p->supplied->id }}: {{ $p->supplied->name_long }}{{ $c->category_name }}
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_string }} {{ $c->type->billing_interval_string }}  {{ $o->billing_interval_string }} {{ $p->type->billing_interval_string }}  
Billing Price isChargeOverridden())class="text-danger"@endif>${{ number_format($b=$o->billing_charge,2) }} ${{ number_format($a=$o->account->taxed($c->base_cost),2) }} {!! markup($a,$b) !!}isChargeOverridden())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 isChargeOverridden()) class="text-danger" @endif> @if($x) ${{ number_format($b=$o->billing_charge_normalised,2) }} @else ${{ number_format($b=$o->billing_charge_normalised,2) }} @endif isCostOverridden()) class="text-danger" @endif> @if($x) ${{ number_format($b=$o->billing_cost_normalised,2) }} @else ${{ number_format($o->billing_cost_normalised,2) }} @endif {!! markup($a,$b) !!}isChargeOverridden()) class="text-danger" @endif>${{ number_format($b=$o->account->taxed($p->base_charge)*Invoice::billing_change($o->billing_interval,Invoice::BILL_MONTHLY),2) }} ${{ 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