{getValue
{auth.formatMoney(row.original.amount)}
+ ), + meta: { + headerClass: 'col-span-2', + cellClass: 'col-span-2', + }, + }, + { + accessorKey: 'plan', + header: t('settings.billing.table.plan'), + cell: ({ row }) => ( + <> +{row.original.plan}
+ {row.original.details?.length ? ( ++ {row.original.details.join(' · ')} +
+ ) : null} + > + ), + meta: { + headerClass: 'col-span-3', + cellClass: 'col-span-3', + }, + }, + { + accessorKey: 'status', + header: t('settings.billing.table.status'), + cell: ({ row }) => ( + + {t('settings.billing.status.' + row.original.status)} + + ), + meta: { + headerClass: 'col-span-2', + cellClass: 'col-span-2', + }, + }, + { + accessorKey: 'invoice', + enableSorting: false, + header: t('settings.billing.table.invoice'), + cell: ({ row }) => ( + + ), + meta: { + headerClass: 'col-span-2 flex justify-center', + cellClass: 'col-span-2 justify-center', + }, + }, + ]; + return () => ({t('settings.billing.paymentHistory')}
@@ -132,71 +210,36 @@ const PaymentHistory = defineComponent({{t('settings.billing.noPaymentHistory')}
-{item.date}
+ ), + empty: () => ( +{t('settings.billing.noPaymentHistory')}
{auth.formatMoney(item.amount)}
-{item.plan}
- { - item.details?.length ? ( -- {item.details.join(' · ')} -
- ) : null - } -