Quelltext des aktuellen Standes
<?php $this->layout('layouts/portal', [
'page_title' => 'Meine Anträge',
'ssp_active' => 'requests',
]);
$du = ($portal_address ?? 'du') !== 'sie';
?>
<div class="ssp-hello">
<h1><?= $this->te('Meine Anträge') ?></h1>
<p><?= $du
? $this->te('Starte einen neuen Antrag oder verfolge den Stand deiner eingereichten Anträge.')
: $this->te('Starten Sie einen neuen Antrag oder verfolgen Sie den Stand Ihrer eingereichten Anträge.') ?></p>
</div>
<?php if (!empty($catalog)): ?>
<div class="ssp-grid" style="margin-bottom:1.5rem;">
<?php foreach ($catalog as $wf): ?>
<a class="ssp-card ssp-card-link" href="/portal/requests/new/<?= (int)$wf['id'] ?>">
<h2><span class="ssp-card-icon"><i class="fas <?= $this->e($wf['icon'] ?: 'fa-file-signature') ?>" aria-hidden="true"></i></span> <?= $this->e($wf['name']) ?></h2>
<?php if (!empty($wf['description'])): ?><p><?= $this->e($wf['description']) ?></p><?php endif; ?>
</a>
<?php endforeach; ?>
</div>
<?php else: ?>
<div class="ssp-card" style="margin-bottom:1.5rem;">
<p class="ssp-hint"><?= $this->te('Aktuell sind keine Anträge zum Starten freigegeben.') ?></p>
</div>
<?php endif; ?>
<div class="ssp-hello" style="margin-bottom:0.75rem;">
<h1 style="font-size:1.05rem;"><?= $this->te('Eingereichte Anträge') ?></h1>
</div>
<?php if (empty($requests)): ?>
<div class="ssp-empty">
<i class="fas fa-file-signature" aria-hidden="true"></i>
<p><?= $du ? $this->te('Du hast noch keine Anträge eingereicht.') : $this->te('Sie haben noch keine Anträge eingereicht.') ?></p>
</div>
<?php else: ?>
<div class="ssp-list">
<?php foreach ($requests as $r): $st = $request_status[$r['status']] ?? [$r['status'], 'status-pill--neutral']; ?>
<a class="ssp-ticket" href="/portal/requests/<?= (int)$r['id'] ?>">
<span class="ssp-ticket-icon"><i class="fas fa-file-signature" aria-hidden="true"></i></span>
<span class="ssp-ticket-main">
<span class="ssp-ticket-subject"><?= $this->e($r['title']) ?></span>
<span class="ssp-ticket-meta"><?= $this->e($r['workflow_name']) ?> · eingereicht <?= $this->te('{zeitpunkt} Uhr', ['zeitpunkt' => date('d.m.Y H:i', strtotime($r['created_at']))]) ?></span>
</span>
<span class="status-pill <?= $this->e($st[1]) ?>"><?= $this->e($du ? $st[0] : str_replace('dich', 'Sie', $st[0])) ?></span>
</a>
<?php endforeach; ?>
</div>
<?php endif; ?>