<div class="d-flex flex-column flex-lg-row justify-content-between align-items-lg-center gap-3 mb-4">
    <div><h1 class="h3 fw-bold mb-1">Editar ficha #<?= e((string)$admission['id']) ?></h1><p class="text-muted mb-0"><?= e($admission['full_name']) ?></p></div>
    <div class="d-flex flex-wrap gap-2"><a href="<?= e(baseUrl('admin/admissoes/' . $admission['id'])) ?>" class="btn btn-outline-dark">Cancelar</a></div>
</div>
<?php if (!empty($errors)): ?><div class="alert alert-danger form-alert"><strong><?= e($error ?? 'Revise o formulário. Existem campos obrigatórios ou inválidos.') ?></strong><ul class="form-alert__list mb-0 mt-2"><?php foreach ($errors as $message): ?><li><?= e($message) ?></li><?php endforeach; ?></ul></div><?php endif; ?>
<div class="card border-0 shadow-sm"><div class="card-body p-3 p-lg-4"><form method="post" action="<?= e(baseUrl('admin/admissoes/' . $admission['id'] . '/editar')) ?>" enctype="multipart/form-data"><?php $mode = 'edit'; require dirname(__DIR__, 2) . '/admissions/partials/form.php'; ?><div class="d-flex justify-content-end gap-2 mt-4"><a href="<?= e(baseUrl('admin/admissoes/' . $admission['id'])) ?>" class="btn btn-outline-secondary">Voltar</a><button type="submit" class="btn btn-primary">Salvar alterações</button></div></form></div></div>
