改进 用户切换逻辑

This commit is contained in:
iVampireSP.com 2022-11-18 18:09:51 +08:00
parent bd885d182d
commit 747c161f96
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -8,6 +8,7 @@
<div class="overflow-auto"> <div class="overflow-auto">
<table class="table table-hover"> <table class="table table-hover">
<thead> <thead>
<th>ID</th>
<th>用户名</th> <th>用户名</th>
<th>邮箱</th> <th>邮箱</th>
<th>金额</th> <th>金额</th>
@ -19,7 +20,12 @@
@foreach ($users as $user) @foreach ($users as $user)
<tr> <tr>
<td> <td>
<a href="{{ route('admin.users.edit', $user) }}"> <a href="{{ route('admin.users.show', $user) }}" title="切换到 {{ $user->name }}">
{{ $user->id }}
</a>
</td>
<td>
<a href="{{ route('admin.users.edit', $user) }}" title="显示和编辑 {{ $user->name }} 的资料">
{{ $user->name }} {{ $user->name }}
</a> </a>
</td> </td>