@if(!defined('LOAD_FILEINPUT'))
    @push('css')
        <link rel="stylesheet" href="{!! asset('/assets/plugins/bootstrap-fileinput/css/fileinput.min.css') !!}">
    @endpush
    @push('js')
        <script src="{!! asset('/assets/plugins/bootstrap-fileinput/js/fileinput.min.js') !!}"></script>
        @if(App::getLocale() !== 'en')
            <script src="{!! asset('/assets/plugins/bootstrap-fileinput/js/locales/'. App::getLocale() .'.js') !!}"></script>
            <script>
                $.fn.fileinput.defaults.language = '{{ App::getLocale() }}';
            </script>
        @endif
    @endpush
    <script>
        function initUpload(selector) {
            var selector = '.file';
            $(selector).fileinput({
                showCaption: false,
                dropZoneEnabled: false,
                showUpload: false,
            });
        }
    </script>
    @php(define('LOAD_FILEINPUT', true))
@endif