One more fix for #6175 (non-accessories)

This commit is contained in:
snipe 2018-10-31 10:23:47 -07:00
parent 5da9120870
commit 2cecd5e056

View file

@ -113,7 +113,7 @@
@endphp
@foreach ($licenses as $license)
@if ($license)
<tr>
<td>{{ $lcounter }}</td>
<td>{{ $license->name }}</td>
@ -123,6 +123,8 @@
@php
$lcounter++
@endphp
@endif
@endforeach
</table>
@endif
@ -185,7 +187,7 @@
@endphp
@foreach ($consumables as $consumable)
@if ($consumable)
<tr>
<td>{{ $ccounter }}</td>
<td>{{ ($consumable->manufacturer) ? $consumable->manufacturer->name : '' }} {{ $consumable->name }} {{ $consumable->model_number }}</td>
@ -195,6 +197,7 @@
@php
$ccounter++
@endphp
@endif
@endforeach
</table>
@endif