Move some service\type::class methods into __get(), no functional changes
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
<th>IP6 Address</th>
|
||||
<td>{{ $o->ip6address ?: '-' }}</td>
|
||||
</tr>
|
||||
@if ($o->inContract())
|
||||
@if ($o->in_contract)
|
||||
<tr>
|
||||
<th>Contract</th>
|
||||
<td>{{ $o->contract_term }} months</td>
|
||||
@@ -74,7 +74,7 @@
|
||||
@endif
|
||||
<tr>
|
||||
<th>Cancel Notice</th>
|
||||
<td>1 month @if($o->inContract())<small>(after {{ $o->service_expire->subMonth()->format('Y-m-d') }})</small>@endif</td>
|
||||
<td>1 month @if($o->in_contract)<small>(after {{ $o->service_expire->subMonth()->format('Y-m-d') }})</small>@endif</td>
|
||||
</tr>
|
||||
|
||||
@if(($x=$o->service->changes()->where('service__change.active',TRUE)->where('complete',FALSE)->get()->pop()))
|
||||
|
@@ -20,7 +20,7 @@
|
||||
<td>{{ $o->service_connect_date->format('Y-m-d') }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@if ($o->inContract())
|
||||
@if ($o->in_contract)
|
||||
<tr>
|
||||
<th>Contract Term</th>
|
||||
<td>{{ $o->service->contract_term }} months</td>
|
||||
|
@@ -34,7 +34,7 @@
|
||||
<td>{{ $o->service_connect_date->format('Y-m-d') }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@if ($o->inContract())
|
||||
@if ($o->in_contract)
|
||||
<tr>
|
||||
<th>Contract Term</th>
|
||||
<td>{{ $o->service->contract_term }} months</td>
|
||||
|
@@ -46,7 +46,7 @@
|
||||
<td>{{ $o->service->product->type->allowance_string() }} Included Calls</td>
|
||||
</tr>
|
||||
@endif
|
||||
@if ($o->inContract())
|
||||
@if ($o->in_contract)
|
||||
<tr>
|
||||
<th>Contract</th>
|
||||
<td>{{ $o->contract_term }} months</td>
|
||||
@@ -58,7 +58,7 @@
|
||||
@endif
|
||||
<tr>
|
||||
<th>Cancel Notice</th>
|
||||
<td>1 month @if($o->inContract())<small>(after {{ $o->service_expire->subMonth()->format('Y-m-d') }})</small>@endif</td>
|
||||
<td>1 month @if($o->in_contract)<small>(after {{ $o->service_expire->subMonth()->format('Y-m-d') }})</small>@endif</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user