<form method="POST" action="actions/update_vehicle_status.php">
    <div class="form-group">
        <label for="new_status">Update Vehicle Status</label>
        <select class="form-control" id="new_status" name="new_status">
            <?php
            $statuses = $db2->query("SELECT * FROM vehicle_statuses ORDER BY vehicle_status_name ASC");
            while ($status = $statuses->fetch_assoc()) {
                echo '<option value="' . $status['vehicle_status_id'] . '">' . $status['vehicle_status_name'] . '</option>';
            }
            ?>
        </select>
    </div>
    <input type="hidden" name="veh_id" value="<?php echo $fleet_id; ?>">
    <button type="submit" class="btn btn-primary mt-2">Update Status</button>
</form>
