Do not show section if user doesn't exist

This commit is contained in:
Marcus Moore
2025-05-21 17:28:41 -07:00
parent ce18b91b03
commit 932b589bd9
3 changed files with 11 additions and 13 deletions

View File

@@ -303,7 +303,6 @@ return [
'type' => 'Type',
'undeployable' => 'Un-deployable',
'unknown_admin' => 'Unknown Admin',
'unknown_user' => 'Unknown User',
'username' => 'Username',
'update' => 'Update',
'updating_item' => 'Updating :item',

View File

@@ -317,16 +317,18 @@
@endif
<div class="row">
<div class="col-md-3" style="padding-bottom: 10px;">
<strong>
{{ trans('general.created_by') }}
</strong>
@if ($accessory->adminuser)
<div class="row">
<div class="col-md-3" style="padding-bottom: 10px;">
<strong>
{{ trans('general.created_by') }}
</strong>
</div>
<div class="col-md-9" style="word-wrap: break-word;">
<x-full-user-name :user="$accessory->adminuser" />
</div>
</div>
<div class="col-md-9" style="word-wrap: break-word;">
<x-full-user-name :user="$accessory->adminuser" />
</div>
</div>
@endif
</div>

View File

@@ -10,7 +10,4 @@
{{-- if the user exists --}}
<s><a href="{{ route('users.show', $user->id) }}">{{ $user->present()->fullName() }}</a></s>
@endif
@else
{{-- if the user does not exist --}}
<span>{{ trans('general.unknown_user') }}</span>
@endif