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