diff --git a/resources/views/hardware/requested.blade.php b/resources/views/hardware/requested.blade.php index 2b3ccab86f..94a99ac1ef 100644 --- a/resources/views/hardware/requested.blade.php +++ b/resources/views/hardware/requested.blade.php @@ -48,12 +48,14 @@ @foreach ($requestedItems as $request) + + @if ($request->requestable) {{ csrf_field() }} - @if ($request->itemType() == "asset") + @if (($request->itemType() == "asset") && ($request->requestable)) - @else + @elseif (($request->itemType() == "asset_model") && ($request->requestable)) @endif @@ -102,6 +104,7 @@ + @endif @endforeach