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

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

<?= view('partials/workspace_hero', [
    'workspaceCrumbPill'    => 'Transport',
    'workspaceCrumbCurrent' => 'Add Driver',
    'workspaceTitle'        => 'Add Driver',
    'workspaceDesc'         => 'Link an employee to a transport driver profile with license details.',
]) ?>

<article class="enterprise-settings-card" style="max-width:860px;">
    <div class="enterprise-settings-card__head">
        <i class="fa-solid fa-id-card"></i>
        <h2 class="enterprise-settings-card__title">Driver Details</h2>
    </div>

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

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

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