FEATURE: hide user name when empty
This commit is contained in:
@@ -50,7 +50,9 @@
|
||||
<div class="tab-content tabs-bordered card">
|
||||
<div class="tab-pane active" id="user-detail" role="tabpanel">
|
||||
<ul>
|
||||
<li><strong>{{$user->name}}</strong></li>
|
||||
@if(!empty($user->name))
|
||||
<li><strong>{{$user->name}}</strong></li>
|
||||
@endif
|
||||
<li>{{$user->email}}</li>
|
||||
<li><em>{{$roles[$user->role]}}</em></li>
|
||||
<li>{{$statuses[$user->status]}}</li>
|
||||
|
||||
@@ -22,8 +22,10 @@
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<ul>
|
||||
@if(!empty($user->name))
|
||||
<li><a href="{{route('users.edit', ['id' => $user->id])}}">{{$user->name}}</a></li>
|
||||
<li>{{$user->email}}</li>
|
||||
@endif
|
||||
<li><a href="{{route('users.edit', ['id' => $user->id])}}">{{$user->email}}</a></li>
|
||||
<li><em>{{$roles[$user->role]}}</em></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user