diff --git a/app/Livewire/EinundzwanzigPlebTable.php b/app/Livewire/EinundzwanzigPlebTable.php index de5ef4a..2e43304 100644 --- a/app/Livewire/EinundzwanzigPlebTable.php +++ b/app/Livewire/EinundzwanzigPlebTable.php @@ -83,7 +83,12 @@ final class EinundzwanzigPlebTable extends PowerGridComponent 'payment', fn(EinundzwanzigPleb $model) => $model->paymentEvents->count() > 0 && $model->paymentEvents->first( - )->paid ? '' . $model->paymentEvents->first()->amount . '' : 'keine Zahlung vorhanden', + )->paid ? '' . number_format( + $model->paymentEvents->first()->amount, + 0, + ',', + '.', + ) . '' : 'keine Zahlung vorhanden', ) ->add( 'npub', @@ -103,7 +108,7 @@ final class EinundzwanzigPlebTable extends PowerGridComponent AssociationStatus::HONORARY => 'text-xs inline-flex font-medium rounded-full text-center px-2.5 py-1 bg-blue-500/20 text-blue-700', default => 'text-xs inline-flex font-medium rounded-full text-center px-2.5 py-1 text-red-700', }; - return '' . $model->association_status->label().''; + return '' . $model->association_status->label() . ''; }, ) ->add(