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