<?= $this->extend('layouts/enterprise') ?>

<?= $this->section('content') ?>

<?= view('partials/workspace_hero', [
    'workspaceCrumbPill'    => 'HRM',
    'workspaceCrumbCurrent'   => 'Edit Employee',
    'workspaceTitle'        => 'Employee Record Amendment',
    'workspaceDesc'         => 'Update personnel data, departmental assignment, identity documentation, and employment status for ' . esc($employee['full_name']) . '.',
    'workspaceAction'       => [
        'href'  => base_url('employees/' . $employee['id']),
        'label' => 'View Profile',
        'icon'  => 'fa-solid fa-eye',
    ],
]) ?>

<form action="<?= base_url('employees/' . $employee['id']) ?>" method="post" enctype="multipart/form-data" novalidate>
    <?= csrf_field() ?>
    <?= $this->include('Modules\Employees\Views\_form') ?>
    <div class="enterprise-settings-card__footer" style="border-top:none;padding-top:0;margin-top:0;">
        <a href="<?= base_url('employees/' . $employee['id']) ?>" class="btn btn-outline-secondary">Cancel</a>
        <button type="submit" class="btn btn-primary">Save Amendments</button>
    </div>
</form>

<?= $this->endSection() ?>
