Complete task 5

This commit is contained in:
Thuan Bui
2025-04-03 10:37:47 +09:00
parent 4b534fd9d5
commit 03db7feece
8 changed files with 1511 additions and 1192 deletions
+8
View File
@@ -18,16 +18,24 @@
</tr>
</thead>
{{-- Task: add the loop here to show users, or the row "No content" --}}
@if (count($users) > 0)
@foreach ($users as $user )
<tbody>
<tr>
<td>{{ $user->name }}</td>
<td>{{ $user->email }}</td>
<td>{{ $user->created_at }}</td>
</tr>
</tbody>
@endforeach
@else
<tbody>
<tr>
<td colspan="3">No content.</td>
</tr>
</tbody>
@endif
</table>
</div>
</div>