This commit is contained in:
Čarodej
2022-01-13 18:55:10 +01:00
parent 8eff3969d3
commit ceba8f5cc1
74 changed files with 192 additions and 315 deletions

View File

@@ -1,25 +1,18 @@
<template>
<div class="card shadow-card">
<div class="md:flex md:space-x-10 mb-8">
<div class="md:mb-0 mb-6">
<b class="block leading-5 text-lg">
{{ status }}
</b>
<small class="text-gray-500">
{{ $t('We will send you a notification upon Subscription expiration') }}
</small>
</div>
<div>
<b class="block leading-5 text-lg">
{{ price }}
</b>
<small class="text-gray-500">
{{ subscription.relationships.plan.data.attributes.name }}
</small>
</div>
</div>
<FormLabel>
{{ $t('Subscription') }}
</FormLabel>
<div v-for="(limit, i) in limitations" :key="i" class="mb-6">
<b class="text-3xl font-extrabold -mt-3 block mb-0.5">
{{ status }}
</b>
<b class="mb-3 block text-sm text-gray-400 mb-8">
{{ subscription.relationships.plan.data.attributes.name }} / {{ price }}
</b>
<div v-for="(limit, i) in limitations" :key="i">
<b class="mb-3 block text-sm text-gray-400">
{{ limit.message }}
</b>
@@ -28,6 +21,7 @@
</div>
</template>
<script>
import FormLabel from "../../../../components/Others/Forms/FormLabel";
import ProgressLine from "../../../../components/Admin/ProgressLine"
import {mapGetters} from "vuex";
@@ -38,7 +32,8 @@
'user',
],
components: {
ProgressLine
ProgressLine,
FormLabel,
},
computed: {
status() {

View File

@@ -13,6 +13,21 @@
:user="user"
/>
<!--Free Plan-->
<div v-if="!subscription && config.subscriptionType === 'fixed'" class="card shadow-card">
<FormLabel>
{{ $t('Subscription') }}
</FormLabel>
<b class="text-3xl font-extrabold -mt-3 block mb-0.5">
{{ $t('Free Plan') }}
</b>
<b class="block text-sm text-gray-400">
{{ $t('1GB Free storage space with 5 Team members') }}
</b>
</div>
<!--Transactions-->
<div class="card shadow-card">
<FormLabel icon="file-text">
@@ -58,19 +73,12 @@
<!--Empty page-->
<template v-slot:empty-page>
<InfoBox>
<p>{{ $t('admin_page_user.invoices.empty') }}</p>
<InfoBox style="margin-bottom: 0">
<p>{{ $t("User doesn't have any transactions yet.") }}</p>
</InfoBox>
</template>
</DatatableWrapper>
</div>
<!--Empty Message-->
<div v-if="! subscription && !isLoading" class="card shadow-card">
<InfoBox style="margin-bottom: 0">
<p>{{ $t("User don't have any subscription") }}</p>
</InfoBox>
</div>
</PageTab>
</template>