{{-- Note: we don't extends the 'input-group-component' blade layout as we have done with other form components. The reason is that the underlying Krajee file input plugin already generates an 'input-group' structure and will conflict with the one provided by the mentioned layout. So instead, we define a new layout. --}} {{-- Set errors bag internallly --}} @php($setErrorsBag($errors ?? null)) {{-- Create the form group layout --}}
{{-- Input label --}} @isset($label) @endisset {{-- Krajee file input --}} merge(['class' => $makeItemClass()]) }}> {{-- Error feedback --}} @if($isInvalid()) {{ $errors->first($errorKey) }} @endif
{{-- Add the plugin initialization code --}} @push('js') @endpush