Skip to content

Commit

Permalink
Merge pull request #6 from macbookandrew/feature/format-large-numbers
Browse files Browse the repository at this point in the history
format numbers for humans
  • Loading branch information
maantje authored Apr 3, 2024
2 parents d32f503 + a423184 commit b5b29c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/livewire/database-card.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class="flex items-center pr-8 xl:pr-12 {{ $connections->count() > 1 ? 'py-2' : '
@foreach($values as $value)
<div class="flex flex-col justify-center @sm:block">
<span class="text-xl uppercase font-bold text-gray-700 dark:text-gray-300 tabular-nums">
{{ $connection->$value }}
{{ \Illuminate\Support\Number::format($connection->$value) }}
</span>
<span class="text-xs uppercase font-bold text-gray-500 dark:text-gray-400">
{{ str_replace('_', ' ', ucfirst($value)) }}
Expand Down

0 comments on commit b5b29c3

Please sign in to comment.