@csrf
<div class="row g-3">
    <div class="col-md-5"><label class="form-label">Route Name <span class="text-danger">*</span></label>
        <input type="text" name="name" value="{{ old('name', $route->name) }}" class="form-control @error('name') is-invalid @enderror" required>
        @error('name')<div class="invalid-feedback">{{ $message }}</div>@enderror</div>
    <div class="col-md-3"><label class="form-label">Code</label>
        <input type="text" name="code" value="{{ old('code', $route->code) }}" class="form-control"></div>
    <div class="col-md-2"><label class="form-label">Base Fare</label>
        <input type="number" step="0.01" name="fare" value="{{ old('fare', $route->fare ?? 0) }}" class="form-control"></div>
    <div class="col-md-2 d-flex align-items-end"><div class="form-check"><input type="checkbox" name="is_active" value="1" id="is_active" class="form-check-input" @checked(old('is_active', $route->is_active ?? true))><label for="is_active" class="form-check-label">Active</label></div></div>
</div>
<div class="mt-3 d-flex gap-2">
    <button class="btn btn-primary"><i class="bi bi-check-lg me-1"></i>{{ $submitLabel ?? 'Save' }}</button>
    <a href="{{ route('transport-routes.index') }}" class="btn btn-light border">Cancel</a>
</div>
