Skip to content

Commit

Permalink
chore: showing column labels
Browse files Browse the repository at this point in the history
  • Loading branch information
frknasir committed May 3, 2022
1 parent c70e4b6 commit e3ca162
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions resources/views/tile.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@
<dl class="font-normal">
@foreach($table->columns as $columnKey => $columnValue)
@if (!$loop->last && !$loop->first)
<dt class="sr-only">{{ $columnValue['label'] }}</dt>
<dd class="mt-1 truncate text-gray-700">{{ $row[$columnKey] }}</dd>
<div class="space-y-1">
<dt class="text-sm font-medium text-gray-500">{{ $columnValue['label'] }}</dt>
<dd class="mt-1 text-sm text-gray-900">{{ $row[$columnKey] }}</dd>
</div>
@endif
@endforeach
</dl>
Expand Down

0 comments on commit e3ca162

Please sign in to comment.