Add premium My Case MVP
This commit is contained in:
+5
-6
@@ -20,9 +20,8 @@ $dashTier = $dashIsSso ? FreeTier::tier((int)$_SESSION['dbn_tools_sso_uid']) : '
|
||||
$dashDetail = $dashIsSso ? FreeTier::balanceDetail((int)$_SESSION['dbn_tools_sso_uid']) : null;
|
||||
$tierLabels = [
|
||||
'free' => ['Gratis', '#f3f4f6', '#374151'],
|
||||
'light' => ['Light', '#ddd6fe', '#5b21b6'],
|
||||
'pro' => ['Pro', '#bfdbfe', '#1e40af'],
|
||||
'pro_plus' => ['Pro+ Familie', '#fde68a', '#92400e'],
|
||||
'plus' => ['Plus', '#ddd6fe', '#5b21b6'],
|
||||
'pro' => ['Pro Familie', '#bfdbfe', '#1e40af'],
|
||||
];
|
||||
$tierLabel = $tierLabels[$dashTier] ?? ['CaveauAI', '#d1fae5', '#065f46'];
|
||||
$showSurveyCta = $dashIsSso && empty($dashDetail['survey_completed_at']);
|
||||
@@ -82,11 +81,11 @@ window.DBN_TOOLS_LANG = <?= json_encode($uiLang, JSON_UNESCAPED_UNICODE) ?>;
|
||||
<p style="margin:0; color:#6b7280; font-size:0.85rem; text-transform:uppercase; letter-spacing:0.06em;">Tilgjengelige kreditter</p>
|
||||
<p style="margin:0.35rem 0 0; font-size:1.8rem; font-weight:700; color:#00205B;">
|
||||
<?php $eff = (int)$dashDetail['balance'] + (int)$dashDetail['bonus_balance']; ?>
|
||||
<?php if ($dashTier === 'pro_plus'): ?>∞<?php else: ?><?= number_format($eff, 0, ',', ' ') ?><?php endif; ?>
|
||||
<?= number_format($eff, 0, ',', ' ') ?>
|
||||
</p>
|
||||
<p style="margin:0; color:#6b7280; font-size:0.85rem;"><?= (int)$dashDetail['balance'] ?> månedlige · <?= (int)$dashDetail['bonus_balance'] ?> bonus · <a href="/billing.php">Detaljer</a></p>
|
||||
</div>
|
||||
<?php if (in_array($dashTier, ['light','pro','pro_plus'], true)): ?>
|
||||
<?php if (in_array($dashTier, ['plus','pro'], true)): ?>
|
||||
<a class="status-card" href="/min-sak.php" style="background:#fff; border:1px solid #e5e7eb; border-radius:10px; padding:1.1rem 1.25rem; text-decoration:none; color:inherit;">
|
||||
<p style="margin:0; color:#6b7280; font-size:0.85rem; text-transform:uppercase; letter-spacing:0.06em;">Min sak</p>
|
||||
<p style="margin:0.35rem 0 0; font-size:1.4rem; font-weight:700; color:#00205B;">Bygg din egen sak →</p>
|
||||
@@ -102,7 +101,7 @@ window.DBN_TOOLS_LANG = <?= json_encode($uiLang, JSON_UNESCAPED_UNICODE) ?>;
|
||||
<a class="status-card" href="/pricing.php" style="background:linear-gradient(135deg,#00205B,#003478); color:#fff; border-radius:10px; padding:1.1rem 1.25rem; text-decoration:none;">
|
||||
<p style="margin:0; opacity:0.85; font-size:0.85rem; text-transform:uppercase; letter-spacing:0.06em;">Bygg din egen sak</p>
|
||||
<p style="margin:0.35rem 0 0; font-size:1.4rem; font-weight:700;">Last opp dokumenter →</p>
|
||||
<p style="margin:0; opacity:0.85; font-size:0.85rem;">Tilgjengelig fra Light €9/mo</p>
|
||||
<p style="margin:0; opacity:0.85; font-size:0.85rem;">Tilgjengelig fra Plus NOK 129/mnd</p>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if ($showSurveyCta): ?>
|
||||
|
||||
Reference in New Issue
Block a user