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

69 lines
1.6 KiB
PHP
Raw Normal View History

2022-04-19 07:07:39 +00:00
<!-- $o = App\Models\Service\Phone::class -->
2020-02-19 12:37:45 +00:00
<div class="card">
@if($o->service->isPending())
<div class="ribbon-wrapper ribbon-lg">
<div class="ribbon bg-warning">
Pending
</div>
</div>
@endif
<div class="card-header bg-gray-dark">
2022-04-19 07:07:39 +00:00
<h3 class="card-title">Phone Details</h3>
2020-02-19 12:37:45 +00:00
</div>
<div class="card-body bg-gray-dark">
<table class="table table-sm">
<tr>
<th>Address</th>
<td>{{ $o->service_address }}</td>
2020-02-19 12:37:45 +00:00
</tr>
<tr>
<th>Service Number</th>
<td>{{ $o->service_number }}</td>
2020-02-19 12:37:45 +00:00
</tr>
<tr>
<th>Service Username</th>
<td>{{ $o->service_username }}</td>
</tr>
<tr>
<th>Service Password</th>
<td>{{ $o->service_password }}</td>
</tr>
2022-04-19 07:07:39 +00:00
@if($o->connect_at)
2020-02-19 12:37:45 +00:00
<tr>
<th>Connected</th>
2022-04-19 07:07:39 +00:00
<td>{{ $o->connect_at->format('Y-m-d') }}</td>
2020-02-19 12:37:45 +00:00
</tr>
@endif
<!-- @todo -->
@if($o->technology)
<tr>
<th>Technology</th>
<td>{{ $o->technology }}</td>
</tr>
@endif
<!-- @todo -->
@if($o->service->product->type)
<tr>
2022-03-05 02:49:50 +00:00
<th>Usage</th>
<td>{{ $o->service->product->type->allowance_string() }} Included Calls</td>
2020-02-19 12:37:45 +00:00
</tr>
@endif
@if ($o->inContract())
<tr>
<th>Contract</th>
2022-09-29 07:55:50 +00:00
<td>{{ $o->contract_term }} months</td>
2020-02-19 12:37:45 +00:00
</tr>
<tr>
<th>Contract End</th>
2022-09-29 07:55:50 +00:00
<td>{{ $o->service_expire->format('Y-m-d') }} <small>({{ $o->service_expire->diffForHumans() }})</small></td>
2020-02-19 12:37:45 +00:00
</tr>
@endif
<tr>
<th>Cancel Notice</th>
2022-09-29 07:55:50 +00:00
<td>1 month @if($o->inContract())<small>(after {{ $o->service_expire->subMonth()->format('Y-m-d') }})</small>@endif</td>
2020-02-19 12:37:45 +00:00
</tr>
</table>
</div>
</div>