2023-05-03 08:09:29 +00:00
|
|
|
<!-- $o = Service::class, $p = Product::class -->
|
2023-05-05 12:05:42 +00:00
|
|
|
@php($c=$o->product)
|
2020-02-18 11:35:20 +00:00
|
|
|
<table class="table table-sm">
|
2021-12-24 01:14:01 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th> </th>
|
2023-05-05 12:05:42 +00:00
|
|
|
<th class="text-center" colspan="2">This Plan</th>
|
|
|
|
<th> </th>
|
|
|
|
@if($p->exists)
|
|
|
|
<th class="text-center" colspan="2">Proposed Plan</th>
|
|
|
|
<th> </th>
|
2022-06-12 01:21:20 +00:00
|
|
|
@endif
|
2023-05-05 12:05:42 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th> </th>
|
|
|
|
<th>Client</th>
|
|
|
|
<th>Supplier</th>
|
|
|
|
<th> </th>
|
|
|
|
@if($p->exists)
|
|
|
|
<th>Client</th>
|
|
|
|
<th>Supplier</th>
|
2022-06-12 01:21:20 +00:00
|
|
|
<th> </th>
|
|
|
|
@endif
|
2021-12-24 01:14:01 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
2020-02-18 11:35:20 +00:00
|
|
|
<tr>
|
2021-12-24 01:14:01 +00:00
|
|
|
<th>Product</th>
|
2023-05-05 12:05:42 +00:00
|
|
|
<td class="text-center" colspan="2">#{{ $c->supplied->id }}: {{ $c->supplied->name_long }}</td>
|
|
|
|
@if ($p->exists)
|
|
|
|
<th> </th>
|
|
|
|
<td class="text-center" colspan="2">#{{ $p->supplied->id }}: {{ $p->supplied->name_long }}</td>
|
2022-06-12 01:21:20 +00:00
|
|
|
@endif
|
2023-05-05 12:05:42 +00:00
|
|
|
<td>{{ $c->category_name }}</td>
|
2020-02-19 12:37:45 +00:00
|
|
|
</tr>
|
2023-05-05 12:05:42 +00:00
|
|
|
|
2021-12-24 01:14:01 +00:00
|
|
|
<tr>
|
|
|
|
<th>Setup</th>
|
2023-05-05 12:05:42 +00:00
|
|
|
<td>${{ number_format($b=$o->account->taxed($c->setup_charge),2) }}</td>
|
|
|
|
<td>${{ number_format($a=$o->account->taxed($c->setup_cost),2) }}</td>
|
2022-04-22 04:41:18 +00:00
|
|
|
<td>{!! markup($a,$b) !!}</td>
|
2023-05-05 12:05:42 +00:00
|
|
|
@if ($p->exists)
|
|
|
|
<td>${{ number_format($b=$o->account->taxed($p->setup_charge),2) }}</td>
|
|
|
|
<td>${{ number_format($a=$o->account->taxed($p->setup_cost),2) }}</td>
|
|
|
|
<td>{!! markup($a,$b) !!}</td>
|
2022-06-12 01:21:20 +00:00
|
|
|
@endif
|
2021-12-24 01:14:01 +00:00
|
|
|
</tr>
|
2023-05-05 12:05:42 +00:00
|
|
|
|
2021-12-24 01:14:01 +00:00
|
|
|
<tr>
|
|
|
|
<th>Billed</th>
|
2022-04-22 04:41:18 +00:00
|
|
|
<td>{{ $o->billing_interval_string }}</td>
|
2023-05-05 12:05:42 +00:00
|
|
|
<td>{{ $c->type->billing_interval_string }}</td>
|
|
|
|
<td> </td>
|
|
|
|
@if ($p->exists)
|
|
|
|
<td>{{ $o->billing_interval_string }}</td>
|
|
|
|
<td>{{ $p->type->billing_interval_string }}</td>
|
2022-06-12 01:21:20 +00:00
|
|
|
<td> </td>
|
|
|
|
@endif
|
2021-12-24 01:14:01 +00:00
|
|
|
</tr>
|
2023-05-05 12:05:42 +00:00
|
|
|
|
2021-12-24 01:14:01 +00:00
|
|
|
<tr>
|
2022-04-22 04:41:18 +00:00
|
|
|
<th>Billing Price</th>
|
2023-05-05 12:05:42 +00:00
|
|
|
<td @if($o->isChargeOverriden())class="text-danger"@endif>${{ number_format($b=$o->billing_charge,2) }}</td>
|
|
|
|
<td>${{ number_format($a=$o->account->taxed($c->base_cost),2) }}</td>
|
|
|
|
<td>{!! markup($a,$b) !!}</td>
|
|
|
|
@if ($p->exists)
|
|
|
|
<td @if($o->isChargeOverriden())class="text-danger"@endif>${{ number_format($b=$o->account->taxed($p->base_charge),2) }}</td>
|
|
|
|
<td>${{ number_format($a=$o->account->taxed($p->base_cost),2) }}</td>
|
2022-06-12 01:21:20 +00:00
|
|
|
<td>{!! markup($a,$b) !!}</td>
|
|
|
|
@endif
|
2021-12-24 01:14:01 +00:00
|
|
|
</tr>
|
2023-05-05 12:05:42 +00:00
|
|
|
|
2021-12-24 01:14:01 +00:00
|
|
|
<tr>
|
2022-04-22 04:41:18 +00:00
|
|
|
<th>Monthly Price</th>
|
2023-05-05 12:05:42 +00:00
|
|
|
<td @if($x=$o->isChargeOverriden()) class="text-danger" @endif>
|
|
|
|
@if($x)
|
|
|
|
<abbr title="${{ number_format($b=$o->account->taxed($c->base_charge)*\App\Models\Invoice::billing_change($o->billing_interval,\App\Models\Invoice::BILL_MONTHLY),2) }}">${{ number_format($b=$o->billing_monthly_price,2) }}
|
|
|
|
@else
|
|
|
|
{{ number_format($b=$o->account->taxed($c->base_charge)*\App\Models\Invoice::billing_change($o->billing_interval,\App\Models\Invoice::BILL_MONTHLY),2) }}
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td>${{ number_format($a=$o->account->taxed($c->base_cost)*\App\Models\Invoice::billing_change($o->billing_interval,\App\Models\Invoice::BILL_MONTHLY),2) }}</td>
|
|
|
|
<td>{!! markup($a,$b) !!}</td>
|
|
|
|
@if ($p->exists)
|
|
|
|
<td @if($x=$o->isChargeOverriden()) class="text-danger" @endif>${{ number_format($b=$o->account->taxed($p->base_charge)*\App\Models\Invoice::billing_change($o->billing_interval,\App\Models\Invoice::BILL_MONTHLY),2) }}</td>
|
|
|
|
<td>${{ number_format($a=$o->account->taxed($p->base_cost)*\App\Models\Invoice::billing_change($o->billing_interval,\App\Models\Invoice::BILL_MONTHLY),2) }}</td>
|
2022-06-12 01:21:20 +00:00
|
|
|
<td>{!! markup($a,$b) !!}</td>
|
|
|
|
@endif
|
2021-12-24 01:14:01 +00:00
|
|
|
</tr>
|
2023-05-05 12:05:42 +00:00
|
|
|
|
2021-12-24 01:14:01 +00:00
|
|
|
<tr>
|
|
|
|
<th>Contract</th>
|
2023-05-05 12:05:42 +00:00
|
|
|
<td>{{ $o->contract_term }} months</td>
|
|
|
|
<td>{{ $c->supplied->contract_term }} months</td>
|
|
|
|
<td> </td>
|
|
|
|
@if ($p->exists)
|
|
|
|
<td>{{ $p->contract_term }} months</td>
|
|
|
|
<td>{{ $p->supplied->contract_term }} months</td>
|
2022-06-12 01:21:20 +00:00
|
|
|
<td> </td>
|
|
|
|
@endif
|
2021-12-24 01:14:01 +00:00
|
|
|
</tr>
|
2023-05-05 12:05:42 +00:00
|
|
|
|
2021-12-24 01:14:01 +00:00
|
|
|
<tr>
|
2022-04-22 04:41:18 +00:00
|
|
|
<th>Min Price</th>
|
2023-05-05 12:05:42 +00:00
|
|
|
<!-- @todo change this to $o->min_charge when implemented -->
|
|
|
|
<td>${{ number_format($b=$o->account->taxed($o->product->min_charge),2) }}</td>
|
|
|
|
<td>${{ number_format($a=$o->account->taxed($c->supplied->min_cost),2) }}</td>
|
2022-04-22 04:41:18 +00:00
|
|
|
<td>{!! markup($a,$b) !!}</td>
|
2023-05-05 12:05:42 +00:00
|
|
|
@if ($p->exists)
|
|
|
|
<td>${{ number_format($a=$o->account->taxed($p->min_charge),2) }}</td>
|
|
|
|
<td>${{ number_format($a=$o->account->taxed($p->supplied->min_cost ?? 0),2) }}</td>
|
|
|
|
<td>{!! markup($a,$b) !!}</td>
|
2022-06-12 01:21:20 +00:00
|
|
|
@endif
|
2021-12-24 01:14:01 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
2023-05-03 08:09:29 +00:00
|
|
|
</table>
|