diff --git a/resources/views/licenses/view.blade.php b/resources/views/licenses/view.blade.php index a656ef07b9..fc5bd02423 100755 --- a/resources/views/licenses/view.blade.php +++ b/resources/views/licenses/view.blade.php @@ -61,7 +61,8 @@ Seat {{ $count }} - @if (($licensedto->assigned_to) && ($licensedto->deleted_at == NULL)) + + @if (($licensedto->user) && ($licensedto->deleted_at == NULL)) @can('users.view') {{ $licensedto->user->fullName() }} @@ -70,9 +71,9 @@ {{ $licensedto->user->fullName() }} @endcan - @elseif (($licensedto->assigned_to) && ($licensedto->deleted_at != NULL)) + @elseif (($licensedto->user) && ($licensedto->deleted_at != NULL)) {{ $licensedto->user->fullName() }} - @elseif ($licensedto->asset_id) + @elseif ($licensedto->asset) @if ($licensedto->asset->assigned_to != 0) @can('users.view') @@ -377,9 +378,17 @@ @if (($log->target) && ($log->target->id!='0')) - - {{ $log->userlog->fullName() }} - + + @if ($log->target_type == 'App\Models\User') + + {{ $log->userlog->fullName() }} + + @elseif ($log->target_type == 'App\Models\Asset') + + {{ $log->userlog->showAssetName() }} + + @endif + @elseif ($log->action_type=='uploaded')