Skip to content

Commit 48deeb9

Browse files
committed
billing plans for ai credits
1 parent 233a37f commit 48deeb9

4 files changed

Lines changed: 7 additions & 2 deletions

File tree

app/Database/Seeder.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ public function run(): void
3737
['free', 'Free', 0, 'monthly', 'subscription', 10, 1],
3838
['trial', 'Trial', 0, 'trial', 'subscription', 10, 1],
3939
['pro', 'Pro', 2900, 'monthly', 'subscription', 100, 1],
40+
['pro-yearly', 'Pro (Annual)', 29900, 'yearly', 'subscription', 1200, 1],
4041
['business', 'Business', 9900, 'monthly', 'subscription', 350, 1],
42+
['business-yearly', 'Business (Annual)', 99900, 'yearly', 'subscription', 4200, 1],
4143
['topup-500', 'AI Credits 500', 500, 'one_time', 'topup', 500, 1],
4244
['topup-2000', 'AI Credits 2000', 1800, 'one_time', 'topup', 2000, 1],
4345
];

public/assets/css/site.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,10 @@ input[type="file"]::-webkit-file-upload-button:hover {
732732
margin-top: 16px;
733733
}
734734

735+
.table tr.is-inactive td {
736+
opacity: 0.6;
737+
}
738+
735739
.table-toolbar {
736740
margin-bottom: 16px;
737741
position: relative;

views/admin/billing_plans/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</thead>
3131
<tbody>
3232
<?php foreach ($plans as $plan) : ?>
33-
<tr>
33+
<tr class="<?= (int)($plan['is_active'] ?? 0) === 1 ? '' : 'is-inactive' ?>">
3434
<td><?= e($plan['code'] ?? '') ?></td>
3535
<td><?= e($plan['name'] ?? '') ?></td>
3636
<td><?= e((string)($plan['price_cents'] ?? 0)) ?></td>

views/billing/index.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@
120120
</div>
121121
<?php endforeach; ?>
122122
</div>
123-
<p class="muted">Paid plans redirect to hosted checkout based on your active payment gateways.</p>
124123
<?php endif; ?>
125124
</div>
126125

0 commit comments

Comments
 (0)