Merge pull request #13184 from akemidx/department_in_side_bar

User department now visible in side pane of asset view page
This commit is contained in:
snipe
2023-07-13 21:01:48 +01:00
committed by GitHub
2 changed files with 5 additions and 0 deletions
@@ -45,4 +45,5 @@ return [
'alert_details' => 'Please see below for details.',
'custom_export' => 'Custom Export',
'mfg_warranty_lookup' => ':manufacturer Warranty Status Lookup',
'user_department' => 'User Department',
];
+4
View File
@@ -919,6 +919,10 @@
</li>
@endif
@if((isset($asset->assignedTo)) && ($asset->assignedTo->department))
<li>{{ trans('admin/hardware/general.user_department') }}: {{ $asset->assignedTo->department->name}}</li>
@endif
@if (isset($asset->location))
<li>{{ $asset->location->name }}</li>
<li>{{ $asset->location->address }}