<div class="row justify-content-center">
    <div class="col-12 col-lg-8 col-xl-6">
        <div class="d-flex justify-content-between align-items-center gap-2 mb-4">
            <div>
                <h1 class="h3 fw-bold mb-1">Excluir resposta</h1>
                <p class="text-muted mb-0">Confirme a exclusão da ficha abaixo.</p>
            </div>
            <a href="<?= e(baseUrl('admin/admissoes/' . $admission['id'])) ?>" class="btn btn-outline-dark">Voltar</a>
        </div>

        <?php if (!empty($success)): ?>
            <div class="alert alert-success rounded-4"><?= e($success) ?></div>
        <?php endif; ?>

        <?php if (!empty($error)): ?>
            <div class="alert alert-danger rounded-4"><?= e($error) ?></div>
        <?php endif; ?>

        <div class="card border-0 shadow-sm">
            <div class="card-body p-4">
                <div class="mb-4">
                    <div class="small text-uppercase text-muted fw-semibold mb-2">Ficha selecionada</div>
                    <div class="fs-5 fw-semibold"><?= e($admission['full_name']) ?></div>
                    <div class="text-muted">#<?= e((string) $admission['id']) ?> • CPF: <?= e($admission['cpf'] ?: '-') ?></div>
                    <div class="text-muted">Unidade: <?= e($admission['unit_name'] ?: '-') ?> • Cargo: <?= e($admission['job_title'] ?: '-') ?></div>
                </div>

                <div class="alert alert-warning rounded-4">
                    Essa ação remove a ficha, os dependentes, os anexos vinculados e não pode ser desfeita.
                </div>

                <form method="post" action="<?= e(baseUrl('admin/admissoes/' . $admission['id'] . '/excluir')) ?>" class="d-flex flex-wrap gap-2">
                    <?= csrf_field() ?>
                    <a href="<?= e(baseUrl('admin/admissoes')) ?>" class="btn btn-outline-secondary">Cancelar</a>
                    <button type="submit" class="btn btn-danger">Confirmar exclusão</button>
                </form>
            </div>
        </div>
    </div>
</div>
