<!-- Modal --> <div class="modal fade" id="uploadFileModal" tabindex="-1" role="dialog" aria-labelledby="uploadFileModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h2 class="modal-title" id="uploadFileModalLabel">Upload File</h4> </div> {{ Form::open([ 'method' => 'POST', 'route' => ['upload/'.$item_type, $item_id], 'files' => true, 'class' => 'form-horizontal' ]) }} <input type="hidden" name="_token" value="{{ csrf_token() }}" /> <div class="modal-body"> <div class="row"> <div class="col-md-3"> <label class="btn btn-default"> {{ trans('button.select_file') }} <input type="file" name="file[]" multiple="true" id="uploadFile" data-maxsize="{{ \App\Helpers\Helper::file_upload_max_size() }}" accept="image/*,.csv,.zip,.rar,.doc,.docx,.xls,.xlsx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel,text/plain,.pdf" style="display:none"> </label> </div> <div class="col-md-9"> <span id="upload-file-info"></span> </div> <div class="col-md-12"> <p class="help-block" id="upload-file-status">{{ trans('general.upload_filetypes_help', ['size' => \App\Helpers\Helper::file_upload_max_size_readable()]) }}</p> </div> <div class="col-md-12"> {{ Form::textarea('notes', Input::old('notes', Input::old('notes')), ['class' => 'form-control','placeholder' => 'Notes (Optional)', 'rows'=>3, 'aria-label' => 'file']) }} </div> </div> </div> <!-- /.modal-body--> <div class="modal-footer"> <a href="#" class="pull-left" data-dismiss="modal">{{ trans('button.cancel') }}</a> <button type="submit" class="btn btn-primary">{{ trans('button.upload') }}</button> </div> {{ Form::close() }} </div> </div> </div>