Disallow checkout of undeployable items
This commit is contained in:
@@ -109,11 +109,13 @@ Assets ::
|
||||
@endif
|
||||
|
||||
<td>
|
||||
@if ($asset->status_id < 1 )
|
||||
@if ($asset->assigned_to != 0)
|
||||
<a href="{{ route('checkin/hardware', $asset->id) }}" class="btn btn-primary">Checkin</a>
|
||||
@else
|
||||
<a href="{{ route('checkout/hardware', $asset->id) }}" class="btn btn-info">Checkout</a>
|
||||
@endif
|
||||
@endif
|
||||
</td>
|
||||
<td nowrap="nowrap">
|
||||
<a href="{{ route('update/hardware', $asset->id) }}" class="btn btn-warning"><i class="icon-pencil icon-white"></i></a>
|
||||
|
||||
Reference in New Issue
Block a user