@php /** $action, $event, $heading, $note, $who (optional), $party (optional: ask for the retailer's details), $bulk (optional: output and who to include), $v = discount, security, ba, target, cap, place */ $fieldClass = 'mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-900 dark:text-gray-100 shadow-sm focus:border-indigo-500 focus:ring-indigo-500'; $plain = fn ($n) => rtrim(rtrim(number_format((float) $n, 2, '.', ''), '0'), '.') ?: '0'; @endphp