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

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

<?= view('partials/workspace_hero', [
    'workspaceCrumbPill'    => 'Transport',
    'workspaceCrumbCurrent' => 'Schedule Trip',
    'workspaceTitle'        => 'Schedule Trip',
    'workspaceDesc'         => 'Assign route, vehicle, and driver for a planned trip.',
]) ?>

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

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

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

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