Initial Kaffeekasse SaaS restart
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
<?php require __DIR__ . '/../partials/layout-top.php'; ?>
|
||||
|
||||
<section class="page-head inline-head">
|
||||
<div>
|
||||
<span class="eyebrow">Betrieb</span>
|
||||
<h1>Plattform-Dashboard</h1>
|
||||
<p>Ueberblick ueber Mandanten, Paketstand und direkte Einstiege in die Kundenumgebungen.</p>
|
||||
</div>
|
||||
<form method="post" action="/admin/logout">
|
||||
<?= csrf_field($csrf) ?>
|
||||
<button class="button button-secondary" type="submit">Abmelden</button>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<section class="table-card">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Mandant</th>
|
||||
<th>Paket</th>
|
||||
<th>Status</th>
|
||||
<th>Mitglieder</th>
|
||||
<th>Produkte</th>
|
||||
<th>Aktion</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($tenants as $tenant): ?>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><?= e($tenant['name']) ?></strong><br>
|
||||
<small>/t/<?= e($tenant['slug']) ?></small>
|
||||
</td>
|
||||
<td><?= e(ucfirst($tenant['plan'])) ?></td>
|
||||
<td><?= e($tenant['status']) ?></td>
|
||||
<td><?= e((string) $tenant['member_count']) ?></td>
|
||||
<td><?= e((string) $tenant['product_count']) ?></td>
|
||||
<td><a class="text-link" href="<?= e(tenant_url($tenant['slug'])) ?>">Tenant oeffnen</a></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<?php require __DIR__ . '/../partials/layout-bottom.php'; ?>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php require __DIR__ . '/../partials/layout-top.php'; ?>
|
||||
|
||||
<section class="page-head">
|
||||
<span class="eyebrow">Plattform</span>
|
||||
<h1>Admin-Login</h1>
|
||||
<p>Fuer Betrieb, Mandantenuebersicht, Support und spaetere Vermarktungssteuerung.</p>
|
||||
</section>
|
||||
|
||||
<form class="card form-card slim" method="post" action="/admin/login">
|
||||
<?= csrf_field($csrf) ?>
|
||||
<label>
|
||||
<span>E-Mail</span>
|
||||
<input type="email" name="email" value="<?= e((string) old('email')) ?>" required>
|
||||
</label>
|
||||
<label>
|
||||
<span>Passwort</span>
|
||||
<input type="password" name="password" required>
|
||||
</label>
|
||||
<button class="button button-primary" type="submit">Anmelden</button>
|
||||
</form>
|
||||
|
||||
<?php require __DIR__ . '/../partials/layout-bottom.php'; ?>
|
||||
Reference in New Issue
Block a user