Skip to content

Commit

Permalink
Merge pull request #7 from starfolksoftware/feat/6-table-items-count
Browse files Browse the repository at this point in the history
feat: stats message show on a table tile
  • Loading branch information
frknasir authored Jun 2, 2022
2 parents dcc92c1 + 67ed262 commit d85815e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions resources/views/tile.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@
</p>
</div>
</div>
<div class="block mt-1">
@if (count($table->rows) > 0)
<p class="text-sm text-gray-700">
Showing
<span class="font-medium">1</span>
to
<span class="font-medium">{{ count($table->rows) }}</span>
of
<span class="font-medium">{{ count($table->rows) }}</span>
results
</p>
@endif
</div>
</div>
<!-- Filters -->
@if (!empty($table->searchableColumns) || !empty($table->availableFilters))
Expand Down

0 comments on commit d85815e

Please sign in to comment.