2023-05-03 08:09:29 +00:00
|
|
|
<!-- $o = Service::class, $p = Product::class -->
|
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>
|
2022-06-12 01:21:20 +00:00
|
|
|
@if (($s=$o->supplied) && $s->exists)
|
2023-05-05 00:32:04 +00:00
|
|
|
<th>{{ $s->supplier->name }}</th>
|
2022-06-12 01:21:20 +00:00
|
|
|
@endif
|
2021-12-24 01:14:01 +00:00
|
|
|
<th>Us</th>
|
2022-06-12 01:21:20 +00:00
|
|
|
@if ($s->exists)
|
|
|
|
<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>
|
2022-06-12 01:21:20 +00:00
|
|
|
@if ($s->exists)
|
|
|
|
<td>#{{ $s->id }}: {{ $s->name }}</td>
|
|
|
|
@endif
|
2023-05-03 08:09:29 +00:00
|
|
|
<td>#{{ $p->id }}: {{ $p->name }}</td>
|
2022-06-12 01:21:20 +00:00
|
|
|
@if ($s->exists)
|
2023-05-03 08:09:29 +00:00
|
|
|
<td>{{ $p->category_name }}</td>
|
2022-06-12 01:21:20 +00:00
|
|
|
@endif
|
2020-02-19 12:37:45 +00:00
|
|
|
</tr>
|
2021-12-24 01:14:01 +00:00
|
|
|
<tr>
|
|
|
|
<th>Setup</th>
|
2022-06-12 01:21:20 +00:00
|
|
|
@if ($s->exists)
|
2023-05-05 05:48:24 +00:00
|
|
|
<td>${{ number_format($a=$o->account->taxed($s->setup_cost),2) }}</td>
|
|
|
|
<td>${{ number_format($b=$o->account->taxed($p->setup_charge),2) }}</td>
|
2022-04-22 04:41:18 +00:00
|
|
|
<td>{!! markup($a,$b) !!}</td>
|
2022-06-12 01:21:20 +00:00
|
|
|
@else
|
|
|
|
<td>-</td>
|
|
|
|
@endif
|
2021-12-24 01:14:01 +00:00
|
|
|
</tr>
|
2023-05-05 05:48:24 +00:00
|
|
|
{{--
|
2021-12-24 01:14:01 +00:00
|
|
|
<tr>
|
|
|
|
<th>Billed</th>
|
2022-06-12 01:21:20 +00:00
|
|
|
@if ($s->exists)
|
|
|
|
<td>{{ $s->billing_interval_string }}</td>
|
|
|
|
@endif
|
2022-04-22 04:41:18 +00:00
|
|
|
<td>{{ $o->billing_interval_string }}</td>
|
2022-06-12 01:21:20 +00:00
|
|
|
@if ($s->exists)
|
|
|
|
<td> </td>
|
|
|
|
@endif
|
2021-12-24 01:14:01 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2022-04-22 04:41:18 +00:00
|
|
|
<th>Billing Price</th>
|
2022-06-12 01:21:20 +00:00
|
|
|
@if ($s->exists)
|
2023-05-05 05:48:24 +00:00
|
|
|
<td>${{ number_format($a=$o->account->taxed($s->base_cost*\App\Models\Invoice::billing_change($s->billing_interval,$p->billing_interval)),2) }}</td>
|
2022-06-12 01:21:20 +00:00
|
|
|
@endif
|
2022-04-22 04:41:18 +00:00
|
|
|
<td>${{ number_format($b=$o->billing_charge,2) }}</td>
|
2022-06-12 01:21:20 +00:00
|
|
|
@if ($s->exists)
|
|
|
|
<td>{!! markup($a,$b) !!}</td>
|
|
|
|
@endif
|
2021-12-24 01:14:01 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2022-04-22 04:41:18 +00:00
|
|
|
<th>Monthly Price</th>
|
2022-06-12 01:21:20 +00:00
|
|
|
@if ($s->exists)
|
2023-05-05 05:48:24 +00:00
|
|
|
<td>${{ number_format($a=$o->account->taxed($s->base_cost*\App\Models\Invoice::billing_change($s->billing_interval,1)),2) }}</td>
|
2022-06-12 01:21:20 +00:00
|
|
|
@endif
|
2023-05-05 05:48:24 +00:00
|
|
|
<td @if($x=$o->isChargeOverriden()) class="text-danger" @endif>${{ number_format($b=($x ? $o->account->taxed($p->base_charge) : $o->billing_monthly_price),2) }}</td>
|
2022-06-12 01:21:20 +00:00
|
|
|
@if ($s->exists)
|
|
|
|
<td>{!! markup($a,$b) !!}</td>
|
|
|
|
@endif
|
2021-12-24 01:14:01 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Contract</th>
|
2022-06-12 01:21:20 +00:00
|
|
|
@if ($s->exists)
|
|
|
|
<td>{{ $s->contract_term }} months</td>
|
|
|
|
@endif
|
2023-05-03 08:09:29 +00:00
|
|
|
<td>{{ $p->contract_term }} months</td>
|
2022-06-12 01:21:20 +00:00
|
|
|
@if ($s->exists)
|
|
|
|
<td> </td>
|
|
|
|
@endif
|
2021-12-24 01:14:01 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2022-04-22 04:41:18 +00:00
|
|
|
<th>Min Price</th>
|
2022-06-12 01:21:20 +00:00
|
|
|
@if ($s->exists)
|
2023-05-05 05:48:24 +00:00
|
|
|
<td>${{ number_format($a=$o->account->taxed($s->min_cost),2) }}</td>
|
|
|
|
<td>${{ number_format($b=$o->account->taxed($p->getMinChargeAttribute($o->billing_interval)),2) }}</td>
|
2022-04-22 04:41:18 +00:00
|
|
|
<td>{!! markup($a,$b) !!}</td>
|
2022-06-12 01:21:20 +00:00
|
|
|
@else
|
|
|
|
<td>-</td>
|
|
|
|
@endif
|
2021-12-24 01:14:01 +00:00
|
|
|
</tr>
|
2023-05-05 05:48:24 +00:00
|
|
|
--}}
|
2021-12-24 01:14:01 +00:00
|
|
|
</tbody>
|
2023-05-03 08:09:29 +00:00
|
|
|
</table>
|