File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,8 +147,8 @@ class="snipe-table table table-striped inventory"
147147 <td >
148148 {{ Helper:: getFormattedDateObject ($asset -> last_checkout , ' datetime' , false ) } } </td >
149149 <td >
150- @if (($asset -> assetlog -> first ( )) && ($asset -> assetlog -> first ( )-> accept_signature != ' ' ) )
151- <img style =" width :auto ;height :100px ;" src =" {{ asset (' /' ) } } display-sig/{{ $asset -> assetlog -> first ( )-> accept_signature } }" >
150+ @if (($asset -> assetlog -> firstWhere ( ' action_type ' , ' accepted ' )) && ($asset -> assetlog -> firstWhere ( ' action_type ' , ' accepted ' )-> accept_signature != ' ' ) )
151+ <img style =" width :auto ;height :100px ;" src =" {{ asset (' /' ) } } display-sig/{{ $asset -> assetlog -> firstWhere ( ' action_type ' , ' accepted ' )-> accept_signature } }" >
152152 @endif
153153 </td >
154154 </tr >
@@ -174,8 +174,8 @@ class="snipe-table table table-striped inventory"
174174 <td >
175175 {{ Helper:: getFormattedDateObject ($asset -> last_checkout , ' datetime' , false ) } } </td >
176176 <td >
177- @if (($asset -> assetlog -> first ( )) && ($asset -> assetlog -> first ( )-> accept_signature != ' ' ) )
178- <img style =" width :auto ;height :100px ;" src =" {{ asset (' /' ) } } display-sig/{{ $asset -> assetlog -> first ( )-> accept_signature } }" >
177+ @if (($asset -> assetlog -> firstWhere ( ' action_type ' , ' accepted ' )) && ($asset -> assetlog -> firstWhere ( ' action_type ' , ' accepted ' )-> accept_signature != ' ' ) )
178+ <img style =" width :auto ;height :100px ;" src =" {{ asset (' /' ) } } display-sig/{{ $asset -> assetlog -> firstWhere ( ' action_type ' , ' accepted ' )-> accept_signature } }" >
179179 @endif
180180 </td >
181181 </tr >
You can’t perform that action at this time.
0 commit comments