mirror of
https://github.com/10h30/Test-Laravel-Blade-Basics.git
synced 2026-07-11 18:56:15 +09:00
Complete task 5
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user