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

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

<?= view('partials/workspace_hero', [
    'workspaceCrumbPill'    => 'Transport',
    'workspaceCrumbCurrent' => 'Edit Driver',
    'workspaceTitle'        => 'Edit Driver',
    'workspaceDesc'         => 'Update license details, contact info, or status.',
]) ?>

<article class="enterprise-settings-card" style="max-width:860px;">
    <div class="enterprise-settings-card__head">
        <i class="fa-solid fa-pen"></i>
        <h2 class="enterprise-settings-card__title"><?= esc($driver['number']) ?></h2>
    </div>

    <?= $this->include('Modules\Transport\Views\partials\form_errors') ?>

    <form action="<?= base_url('transport/drivers/' . $driver['id']) ?>" method="post" novalidate>
        <?= csrf_field() ?>
        <?= $this->include('Modules\Transport\Views\drivers\_form') ?>
        <div class="enterprise-settings-card__footer">
            <a href="<?= base_url('transport/drivers/' . $driver['id']) ?>" class="btn btn-outline-secondary">Cancel</a>
            <button type="submit" class="btn btn-primary">Save Changes</button>
        </div>
    </form>
</article>

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