{{-- Amount buttons + "enter amount". Needs: $presets, $min, $current (int|null), optional $popular. --}} @php $popular = $popular ?? null; $isPreset = in_array((int) $current, $presets, true); @endphp

Choose an amount

@foreach ($presets as $p) @endforeach
@if ($allowCustom ?? true)

OR

@error('other')

{{ $message }}

@enderror
@endif