{{ trans('general.adjust_quantity') }}

@csrf

{{ trans('general.available') }}:

{{-- min is populated by snipeit.js when the modal opens (–available). The browser stepper then refuses to go below and the built-in constraint-validation message surfaces if a user types past it. Zero is a valid input: it produces an audit-only QuantityAdjust log entry with no qty change so users can record a physical count against the current DB value. --}}

{{ trans('general.adjust_quantity_amount_help') }}

{{-- Acquisition-only fields (order_number, supplier, unit cost, currency). Shown for positive qty changes and hidden by snipeit.js when the amount is 0 or negative — those cases are corrections or losses rather than purchases, so purchase metadata doesn't apply. --}}
{{-- Inlined js-data-ajax select instead of for the same reason the file-upload input is inlined below: the shared component uses a Bootstrap 3 horizontal-form scaffold (col-md-3 label + col-md-7 input) that collides with the modal-footer top border. snipeit.js auto-initializes any .js-data-ajax select. --}}
{{-- Label swaps between "Purchase Date" (positive qty) and "Date" (0 or negative) via snipeit.js. --}} {{-- Pre-populated with today's date because most --}} {{-- adjust events happen the day they are recorded. --}} {{-- Editable, and snipeit.js resets to today on --}} {{-- every modal open so a stale date can't bleed --}} {{-- across sessions. --}}
{{-- Unit cost + currency side by side. Bootstrap 3 input-group doesn't handle a form-control addon cleanly (the addon slot expects a span, not a second input), so this uses a plain row / col split instead. Currency is editable and left blank on open — pre-filling with the system default would assert info we don't have per event (Snipe-IT's historical currency handling is squishy already). Placeholder hints at the system default without stamping it. --}}
{{-- Shown by snipeit.js when the modal opens with --}} {{-- pre-populated cost/currency from the trigger's --}} {{-- data-last-* attrs. Hidden as soon as the user --}} {{-- edits either field, so it disappears the moment --}} {{-- the pre-fill stops being authoritative. --}}

{{ trans('general.adjust_quantity_prefilled_from_last_order') }}

{{-- Inlined instead of because that component wraps its markup in , a Bootstrap 3 horizontal-form scaffold (col-md-3 label + col-md-9 input). The three fields above use vertical form-group styling, so the horizontal scaffold collided with the modal-footer top border. --}}

{{ trans('general.upload_filetypes_help', ['allowed_filetypes' => config('filesystems.allowed_upload_extensions'), 'size' => \App\Helpers\Helper::file_upload_max_size_readable()]) }}