+
@@ -257,12 +257,14 @@
|
-
+
{{ row.data.attributes.status }}
-
- {{ row.data.attributes.type }}
-
+ |
+
+
+ {{ $t(row.data.attributes.type) }}
+
|
@@ -366,6 +368,11 @@
field: 'status',
sortable: true
},
+ {
+ label: this.$t('Type'),
+ field: 'status',
+ sortable: true
+ },
{
label: this.$t('admin_page_invoices.table.total'),
field: 'amount',
diff --git a/src/App/Users/Resources/UserResource.php b/src/App/Users/Resources/UserResource.php
index ba79a3cb..84a49767 100644
--- a/src/App/Users/Resources/UserResource.php
+++ b/src/App/Users/Resources/UserResource.php
@@ -67,7 +67,7 @@ class UserResource extends JsonResource
'usages' => $this->getUsageEstimates(),
]),
$this->mergeWhen($isMeteredSubscription, fn () => [
- 'totalDebt' => format_currency($this->failedPayments->sum('amount'), $this->failedPayments->first()->currency),
+ 'totalDebt' => format_currency($this->failedPayments->sum('amount'), $this->subscription->plan->currency),
]),
],
],
|