add formatMoney helper

This commit is contained in:
Matt Young 2026-01-28 05:16:08 -06:00
parent 26d2d87104
commit 7f3c7aeca1
1 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ new class extends Component {
<flux:table.cell>{{ $product->sku }}</flux:table.cell>
<flux:table.cell>{{ $product->name }}</flux:table.cell>
<flux:table.cell class="max-w-xs truncate">{{ $product->description }}</flux:table.cell>
<flux:table.cell>{{ $product->price }}</flux:table.cell>
<flux:table.cell>{{ formatMoney($product->price) }}</flux:table.cell>
<flux:table.cell>
<flux:badge :color="$product->active ? 'green' : 'zinc'">
{{ $product->active ? 'Active' : 'Inactive' }}
@ -90,4 +90,4 @@ new class extends Component {
@endforeach
</flux:table.rows>
</flux:table>
</div>
</div>