2026-07-30 17:07:46 +02:00
|
|
|
<script lang="ts">
|
2025-05-15 17:00:20 +02:00
|
|
|
import Checkout from "layout/checkout/Checkout.svelte";
|
2026-07-30 17:07:46 +02:00
|
|
|
import { user } from "lib/UserStore";
|
2025-03-27 15:38:59 +01:00
|
|
|
import LoginRegister from "login/LoginRegister.svelte";
|
|
|
|
|
import Euro from "util/Euro.svelte";
|
2024-11-18 17:09:27 +01:00
|
|
|
</script>
|
|
|
|
|
|
2026-07-30 17:07:46 +02:00
|
|
|
{#if $user !== null}
|
2024-11-18 17:09:27 +01:00
|
|
|
<div class="page_content">
|
|
|
|
|
<section>
|
2026-09-30 19:26:21 +02:00
|
|
|
{#if $user.subscription.id !== ""}
|
2024-11-18 17:09:27 +01:00
|
|
|
<p>
|
2026-09-30 19:26:21 +02:00
|
|
|
You already have the {$user.subscription.name} plan active.
|
|
|
|
|
Your account balance is <Euro
|
|
|
|
|
amount={$user.balance_micro_eur}/>. Subscriptions are
|
|
|
|
|
charged from this balance every day, use the form below to
|
|
|
|
|
top it up or to switch to another plan.
|
2024-11-18 17:09:27 +01:00
|
|
|
</p>
|
|
|
|
|
{:else}
|
|
|
|
|
<p>
|
2026-09-30 19:26:21 +02:00
|
|
|
Pick a subscription plan to upgrade your account. Your
|
|
|
|
|
account balance is <Euro amount={$user.balance_micro_eur}/>.
|
2024-11-18 17:09:27 +01:00
|
|
|
</p>
|
|
|
|
|
{/if}
|
2026-09-30 19:26:21 +02:00
|
|
|
<Checkout/>
|
2024-11-18 17:09:27 +01:00
|
|
|
</section>
|
|
|
|
|
</div>
|
|
|
|
|
{:else}
|
|
|
|
|
<LoginRegister/>
|
|
|
|
|
{/if}
|