CasperSecurity
<div
wire:ignore
x-data
x-init="() => {
const post = FilePond.create($refs.<?php echo e($attributes->get('ref') ?? 'input'); ?>);
post.setOptions({
allowMultiple: <?php echo e($attributes->has('multiple') ? 'true' : 'false'); ?>,
server: {
process:(fieldName, file, metadata, load, error, progress, abort, transfer, options) => {
window.livewire.find('<?php echo e($_instance->id); ?>').upload('<?php echo e($attributes->whereStartsWith('wire:model')->first()); ?>', file, load, error, progress)
},
revert: (filename, load) => {
window.livewire.find('<?php echo e($_instance->id); ?>').removeUpload('<?php echo e($attributes->whereStartsWith('wire:model')->first()); ?>', filename, load)
},
},
allowImagePreview: <?php echo e($attributes->has('allowFileTypeValidation') ? 'true' : 'false'); ?>,
imagePreviewMaxHeight: <?php echo e($attributes->has('imagePreviewMaxHeight') ? $attributes->get('imagePreviewMaxHeight') : '256'); ?>,
allowFileTypeValidation: <?php echo e($attributes->has('allowFileTypeValidation') ? 'true' : 'false'); ?>,
acceptedFileTypes: <?php echo $attributes->get('acceptedFileTypes') ?? 'null'; ?>,
allowFileSizeValidation: <?php echo e($attributes->has('allowFileSizeValidation') ? 'true' : 'false'); ?>,
maxFileSize: <?php echo $attributes->has('maxFileSize') ? "'".$attributes->get('maxFileSize')."'" : 'null'; ?>
});
}"
>
<input type="file" x-ref="<?php echo e($attributes->get('ref') ?? 'input'); ?>" />
</div>
<?php $__env->startPush('styles'); ?>
<?php if (! $__env->hasRenderedOnce('f1f1b980-6dd2-46a5-8edb-5926b121277a')): $__env->markAsRenderedOnce('f1f1b980-6dd2-46a5-8edb-5926b121277a'); ?>
<link href="https://unpkg.com/filepond/dist/filepond.css" rel="stylesheet">
<link href="https://unpkg.com/filepond-plugin-image-preview/dist/filepond-plugin-image-preview.css" rel="stylesheet">
<?php endif; ?>
<?php $__env->stopPush(); ?>
<?php $__env->startPush('scripts'); ?>
<?php if (! $__env->hasRenderedOnce('fa72c3d1-776b-4e9f-a9a9-b92fb1c79763')): $__env->markAsRenderedOnce('fa72c3d1-776b-4e9f-a9a9-b92fb1c79763'); ?>
<script src="https://unpkg.com/filepond-plugin-file-validate-type/dist/filepond-plugin-file-validate-type.js"></script>
<script src="https://unpkg.com/filepond-plugin-file-validate-size/dist/filepond-plugin-file-validate-size.js"></script>
<script src="https://unpkg.com/filepond-plugin-image-preview/dist/filepond-plugin-image-preview.js"></script>
<script src="https://unpkg.com/filepond/dist/filepond.js"></script>
<script>
FilePond.registerPlugin(FilePondPluginFileValidateType);
FilePond.registerPlugin(FilePondPluginFileValidateSize);
FilePond.registerPlugin(FilePondPluginImagePreview);
</script>
<?php endif; ?>
<?php $__env->stopPush(); ?>
<?php /**PATH /var/www/orientalss.com/resources/views/components/forms/filepond.blade.php ENDPATH**/ ?>