Check for valid seat on hardware view

This commit is contained in:
snipe 2019-07-17 12:09:18 -07:00
parent b4b6d6b571
commit 79ab0d8dc2

View file

@ -569,6 +569,7 @@
</thead> </thead>
<tbody> <tbody>
@foreach ($asset->licenseseats as $seat) @foreach ($asset->licenseseats as $seat)
@if ($seat->license)
<tr> <tr>
<td><a href="{{ route('licenses.show', $seat->license->id) }}">{{ $seat->license->name }}</a></td> <td><a href="{{ route('licenses.show', $seat->license->id) }}">{{ $seat->license->name }}</a></td>
<td> <td>
@ -582,6 +583,7 @@
<a href="{{ route('licenses.checkin', $seat->id) }}" class="btn btn-sm bg-purple" data-tooltip="true">{{ trans('general.checkin') }}</a> <a href="{{ route('licenses.checkin', $seat->id) }}" class="btn btn-sm bg-purple" data-tooltip="true">{{ trans('general.checkin') }}</a>
</td> </td>
</tr> </tr>
@endif
@endforeach @endforeach
</tbody> </tbody>
</table> </table>