diff --git a/config/language-translations.php b/config/language-translations.php index c1e1c859..f146296d 100644 --- a/config/language-translations.php +++ b/config/language-translations.php @@ -201,13 +201,13 @@ return [ 'col_date' => 'Date', 'col_amount' => 'Amount', 'total' => 'Total', + + // v2 'max_team_members' => 'Up to {value} Team Members', - 'max_team_members.unlimited' => 'Up to {value} Team Members', + 'max_team_members.unlimited' => 'Unlimited Team Members', 'max_storage_amount' => '{value} GB Storage Size', 'interval.month' => 'Monthly', 'interval.year' => 'Yearly', - - // v2 'bandwidth' => 'Bandwidth', 'storage' => 'Storage', 'flatFee' => 'Flat Fee', diff --git a/resources/js/components/Admin/WidgetLatestTransactions.vue b/resources/js/components/Admin/WidgetLatestTransactions.vue index 24ab3de4..474b31e4 100644 --- a/resources/js/components/Admin/WidgetLatestTransactions.vue +++ b/resources/js/components/Admin/WidgetLatestTransactions.vue @@ -51,9 +51,9 @@ -
+
diff --git a/resources/js/components/Others/SelectSingleChargeMethodPopup.vue b/resources/js/components/Others/SelectSingleChargeMethodPopup.vue index b3e68fe8..c7d97ea1 100644 --- a/resources/js/components/Others/SelectSingleChargeMethodPopup.vue +++ b/resources/js/components/Others/SelectSingleChargeMethodPopup.vue @@ -47,7 +47,7 @@ :email="user.data.attributes.email" :paystackkey="config.paystack_public_key" :reference="$generatePaystackReference()" - :callback="paystackPaymentSuccessful" + :callback="paymentSuccessful" :close="paystackClosed" > @@ -132,8 +132,9 @@ export default { this.paypal.isMethodsLoaded = true this.paypal.isMethodLoading = false + const app = this - // Initialize paypal buttons for single charge + // Initialize paypal buttons for single charge await paypal .Buttons({ createOrder: function (data, actions) { @@ -148,10 +149,13 @@ export default { ], }) }, + onApprove: function () { + app.paymentSuccessful() + }, }) .render('#paypal-button-container') }, - paystackPaymentSuccessful() { + paymentSuccessful() { this.$closePopup() events.$emit('toaster', { diff --git a/resources/js/components/Spotlight/Spotlight.vue b/resources/js/components/Spotlight/Spotlight.vue index c5d45513..d5d502c6 100644 --- a/resources/js/components/Spotlight/Spotlight.vue +++ b/resources/js/components/Spotlight/Spotlight.vue @@ -227,7 +227,9 @@
- {{ i === 0 ? '↵' : metaKeyIcon + i }} + + {{ i === 0 ? '↵' : metaKeyIcon + i }} +
diff --git a/resources/js/components/Subscription/SelectPlanSubscriptionPopup.vue b/resources/js/components/Subscription/SelectPlanSubscriptionPopup.vue index e099759c..54f20176 100644 --- a/resources/js/components/Subscription/SelectPlanSubscriptionPopup.vue +++ b/resources/js/components/Subscription/SelectPlanSubscriptionPopup.vue @@ -92,7 +92,7 @@ -
+
- + {{ $t('admin_page_plans.create_plan_button') }} diff --git a/resources/js/views/Admin/Users.vue b/resources/js/views/Admin/Users.vue index 0f793913..df6e4bd4 100644 --- a/resources/js/views/Admin/Users.vue +++ b/resources/js/views/Admin/Users.vue @@ -137,7 +137,7 @@ {{ row.data.attributes.role }} - + {{ row.data.relationships.subscription ? $t('global.premium') : $t('global.free') }} @@ -343,7 +343,7 @@ export default { sortable: true, }, { - label: this.$t('admin_page_user.table.plan'), + label: this.$t('Account'), sortable: false, }, { diff --git a/src/App/Users/Resources/UserMinimalResource.php b/src/App/Users/Resources/UserMinimalResource.php index d9e1a522..93694f9a 100644 --- a/src/App/Users/Resources/UserMinimalResource.php +++ b/src/App/Users/Resources/UserMinimalResource.php @@ -16,7 +16,7 @@ class UserMinimalResource extends JsonResource return [ 'data' => [ 'id' => $this->id, - 'type' => 'users', + 'type' => 'user', 'attributes' => [ 'avatar' => $this->settings->avatar, 'name' => $this->settings->name,