Skip to content

Commit

Permalink
Added icon for dept
Browse files Browse the repository at this point in the history
Signed-off-by: snipe <[email protected]>
  • Loading branch information
snipe committed Aug 31, 2024
1 parent f8bbb7a commit 13dbf9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/Helpers/IconHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ public static function icon($type) {
return 'fas fa-user-secret';
case 'employee_num' :
return 'fa-regular fa-id-card';
case 'department' :
return 'fa-solid fa-building-user';

}
}
Expand Down
4 changes: 3 additions & 1 deletion resources/views/hardware/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,9 @@
@endif

@if((isset($asset->assignedTo)) && ($asset->assignedTo->department))
<li>{{ trans('admin/hardware/general.user_department') }}: {{ $asset->assignedTo->department->name}}</li>
<li>
<x-icon type="department" class="fa-fw" />
{{ $asset->assignedTo->department->name}}</li>
@endif

@if (isset($asset->location))
Expand Down

0 comments on commit 13dbf9e

Please sign in to comment.