mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-12 16:44:08 -08:00
Check for valid seat on hardware view
This commit is contained in:
parent
b4b6d6b571
commit
79ab0d8dc2
|
@ -569,19 +569,21 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach ($asset->licenseseats as $seat)
|
@foreach ($asset->licenseseats as $seat)
|
||||||
<tr>
|
@if ($seat->license)
|
||||||
<td><a href="{{ route('licenses.show', $seat->license->id) }}">{{ $seat->license->name }}</a></td>
|
<tr>
|
||||||
<td>
|
<td><a href="{{ route('licenses.show', $seat->license->id) }}">{{ $seat->license->name }}</a></td>
|
||||||
@can('viewKeys', $seat->license)
|
<td>
|
||||||
{!! nl2br(e($seat->license->serial)) !!}
|
@can('viewKeys', $seat->license)
|
||||||
@else
|
{!! nl2br(e($seat->license->serial)) !!}
|
||||||
------------
|
@else
|
||||||
@endcan
|
------------
|
||||||
</td>
|
@endcan
|
||||||
<td>
|
</td>
|
||||||
<a href="{{ route('licenses.checkin', $seat->id) }}" class="btn btn-sm bg-purple" data-tooltip="true">{{ trans('general.checkin') }}</a>
|
<td>
|
||||||
</td>
|
<a href="{{ route('licenses.checkin', $seat->id) }}" class="btn btn-sm bg-purple" data-tooltip="true">{{ trans('general.checkin') }}</a>
|
||||||
</tr>
|
</td>
|
||||||
|
</tr>
|
||||||
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in a new issue