|
18 | 18 | </div> |
19 | 19 | <?php else : ?> |
20 | 20 | <div class="card"> |
| 21 | + <div class="tabs" data-tabs> |
| 22 | + <button type="button" class="tab-button is-active" data-tab-button="current" |
| 23 | + aria-selected="true" aria-controls="tab-current">Current</button> |
| 24 | + <button type="button" class="tab-button" data-tab-button="history" |
| 25 | + aria-selected="false" aria-controls="tab-history">History</button> |
| 26 | + </div> |
| 27 | + <div class="tab-panels"> |
| 28 | + <div class="tab-panel is-active" data-tab-panel="current" id="tab-current" role="tabpanel"> |
| 29 | + <div class="card-muted"> |
21 | 30 | <h2>Current subscription</h2> |
22 | 31 | <?php if (!empty($subscription)) : ?> |
23 | 32 | <p><strong><?= e($subscription['plan_name'] ?? '') ?></strong> — <?= e(ucfirst((string)($subscription['status'] ?? ''))) ?></p> |
|
35 | 44 | <?php endif; ?> |
36 | 45 | </div> |
37 | 46 |
|
38 | | - <div class="card"> |
| 47 | + <div class="card-muted"> |
39 | 48 | <h2>AI credit balance</h2> |
40 | 49 | <p class="muted">Available credits for this workspace.</p> |
41 | 50 | <p class="plan-price"><?= number_format((int)($workspace['ai_credit_balance'] ?? 0)) ?> credits</p> |
42 | 51 | </div> |
43 | 52 |
|
44 | 53 | <?php if (!empty($pendingChanges)) : ?> |
45 | | - <div class="card"> |
| 54 | + <div class="card-muted"> |
46 | 55 | <h2>Pending changes</h2> |
47 | 56 | <table class="table"> |
48 | 57 | <thead> |
|
72 | 81 | </div> |
73 | 82 | <?php endif; ?> |
74 | 83 |
|
75 | | - <div class="card"> |
| 84 | + <div class="card-muted"> |
76 | 85 | <h2>Plans</h2> |
77 | 86 | <?php if (empty($plans)) : ?> |
78 | 87 | <p>No plans configured yet.</p> |
|
186 | 195 | <?php endif; ?> |
187 | 196 | </div> |
188 | 197 |
|
189 | | - <div class="card"> |
| 198 | + <div class="card-muted"> |
190 | 199 | <h2>AI credit top-ups</h2> |
191 | 200 | <p class="muted">Purchase extra AI actions as needed.</p> |
192 | 201 | <?php if (empty($topupPlans)) : ?> |
|
238 | 247 | <?php endif; ?> |
239 | 248 | </div> |
240 | 249 |
|
241 | | - <div class="card"> |
| 250 | + </div> |
| 251 | + <div class="tab-panel" data-tab-panel="history" id="tab-history" role="tabpanel" hidden> |
| 252 | + <div class="card-muted"> |
242 | 253 | <h2>Invoices</h2> |
243 | 254 | <?php if (empty($invoices)) : ?> |
244 | 255 | <p>No invoices yet.</p> |
|
266 | 277 | </tbody> |
267 | 278 | </table> |
268 | 279 | <?php endif; ?> |
| 280 | + </div> |
| 281 | + </div> |
| 282 | + </div> |
269 | 283 | </div> |
270 | 284 |
|
271 | 285 | <?php endif; ?> |
|
0 commit comments