Skip to content

Commit

Permalink
Merge pull request #5 from starfolksoftware/fix/table
Browse files Browse the repository at this point in the history
fix: repeating column values
  • Loading branch information
frknasir authored May 2, 2022
2 parents a2e5a3f + db66608 commit de839c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/tile.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@
{{ collect($row)->first() }}
<dl class="font-normal">
@foreach($table->columns as $columnKey => $columnValue)
@if (!$loop->last)
@if (!$loop->last && !$loop->first)
<dt class="sr-only">{{ $columnValue['label'] }}</dt>
<dd class="mt-1 truncate text-gray-700">{{ $row[$columnKey] }}</dd>
@endif
@endforeach
</dl>
</td>
<td class="px-3 py-4 text-sm text-gray-500">
{{ collect($row)->last() }}
{{ $row[collect($table->columns)->keys()->last()] }}
</td>
</tr>
@endforeach
Expand Down

0 comments on commit de839c6

Please sign in to comment.