<?php $pickup = $pickup ?? []; ?>
<div class="enterprise-field enterprise-field--full">
    <label class="enterprise-field-label">Address</label>
    <input type="text" name="address" class="form-control" maxlength="255"
           value="<?= esc(old('address', $pickup['address'] ?? '')) ?>"
           placeholder="Street / building description shown to the driver">
</div>
<div class="enterprise-field enterprise-field--full">
    <label class="enterprise-field-label">Status</label>
    <select name="status" class="form-select">
        <?php foreach (['active', 'inactive'] as $s): ?>
            <option value="<?= $s ?>" <?= old('status', $pickup['status'] ?? 'active') === $s ? 'selected' : '' ?>>
                <?= esc(ucfirst($s)) ?>
            </option>
        <?php endforeach; ?>
    </select>
</div>
<?= view('Modules\Transport\Views\partials\map_picker', [
    'mapSettings' => $mapSettings,
    'latitude'    => $pickup['latitude'] ?? '',
    'longitude'   => $pickup['longitude'] ?? '',
]) ?>
<div class="enterprise-field enterprise-field--full">
    <label class="enterprise-field-label">Notes</label>
    <textarea name="notes" class="form-control" rows="2"><?= esc(old('notes', $pickup['notes'] ?? '')) ?></textarea>
</div>
