{{define "formtabler_selectgroup_payments"}}
<div class="mb-3">
  <label class="form-label">{{defaultVal "Payment method" .Label}}</label>
  <div class="form-selectgroup form-selectgroup-boxes d-flex flex-column">
    {{range .Items}}
    <label class="form-selectgroup-item flex-fill">
      <input type="radio" name="form-payment" value="{{.Provider}}" class="form-selectgroup-input"{{if .Checked}} checked{{end}}>
      <div class="form-selectgroup-label d-flex align-items-center p-3">
        <div class="me-3">
          <span class="form-selectgroup-check"></span>
        </div>
        <div>
          <span class="payment payment-provider-{{.Provider}} payment-xs me-2"></span>
          {{if .Ending}}ending in <strong>{{.Ending}}</strong>{{end}}
        </div>
      </div>
    </label>
    {{end}}
  </div>
</div>
{{end}}
