diff --git a/resources/views/table.blade.php b/resources/views/table.blade.php index 399bf5c0..92f15c85 100644 --- a/resources/views/table.blade.php +++ b/resources/views/table.blade.php @@ -19,14 +19,19 @@ {{-- Task: add the loop here to show users, or the row "No content" --}} - - {{ $user->name }} - {{ $user->email }} - {{ $user->created_at }} - - - No content. - + @if(count($users) > 0) + @foreach($users as $user) + + {{ $user->name }} + {{ $user->email }} + {{ $user->created_at }} + + @endforeach + @else + + No content. + + @endif