osb/resources/views/theme/backend/adminlte/service/widget/internal.blade.php

90 lines
2.2 KiB
PHP
Raw Normal View History

2023-05-03 08:09:29 +00:00
<!-- $o = Service::class, $p = Product::class -->
<table class="table table-sm">
<thead>
<tr>
<th>&nbsp;</th>
@if (($s=$o->supplied) && $s->exists)
2023-05-05 00:32:04 +00:00
<th>{{ $s->supplier->name }}</th>
@endif
<th>Us</th>
@if ($s->exists)
<th>&nbsp;</th>
@endif
</tr>
</thead>
<tbody>
<tr>
<th>Product</th>
@if ($s->exists)
<td>#{{ $s->id }}: {{ $s->name }}</td>
@endif
2023-05-03 08:09:29 +00:00
<td>#{{ $p->id }}: {{ $p->name }}</td>
@if ($s->exists)
2023-05-03 08:09:29 +00:00
<td>{{ $p->category_name }}</td>
@endif
2020-02-19 12:37:45 +00:00
</tr>
<tr>
<th>Setup</th>
@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>
<td>{!! markup($a,$b) !!}</td>
@else
<td>-</td>
@endif
</tr>
2023-05-05 05:48:24 +00:00
{{--
<tr>
<th>Billed</th>
@if ($s->exists)
<td>{{ $s->billing_interval_string }}</td>
@endif
<td>{{ $o->billing_interval_string }}</td>
@if ($s->exists)
<td>&nbsp;</td>
@endif
</tr>
<tr>
<th>Billing Price</th>
@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>
@endif
<td>${{ number_format($b=$o->billing_charge,2) }}</td>
@if ($s->exists)
<td>{!! markup($a,$b) !!}</td>
@endif
</tr>
<tr>
<th>Monthly Price</th>
@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>
@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>
@if ($s->exists)
<td>{!! markup($a,$b) !!}</td>
@endif
</tr>
<tr>
<th>Contract</th>
@if ($s->exists)
<td>{{ $s->contract_term }} months</td>
@endif
2023-05-03 08:09:29 +00:00
<td>{{ $p->contract_term }} months</td>
@if ($s->exists)
<td>&nbsp;</td>
@endif
</tr>
<tr>
<th>Min Price</th>
@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>
<td>{!! markup($a,$b) !!}</td>
@else
<td>-</td>
@endif
</tr>
2023-05-05 05:48:24 +00:00
--}}
</tbody>
2023-05-03 08:09:29 +00:00
</table>