pianello-api/resources/views/components/base/dropzone/index.blade.php
Ale Gallo 96c0bfb8ce Committing laravel (part 5)
committing blade templating files and components that might come in handy
2023-11-10 16:41:20 +01:00

31 lines
833 B
PHP

@props(['multiple' => null])
<form
{{ $attributes->class(merge(['[&.dropzone]:border-2 [&.dropzone]:border-dashed dropzone [&.dropzone]:border-darkmode-200/60 [&.dropzone]:dark:bg-darkmode-600 [&.dropzone]:dark:border-white/5', $attributes->whereStartsWith('class')->first()]))->merge($attributes->whereDoesntStartWith('class')->getAttributes()) }}
>
<div class="fallback">
<input
name="file"
type="file"
{{ $multiple ? 'multiple' : '' }}
/>
</div>
<div
class="dz-message"
data-dz-message
>
{{ $slot }}
</div>
</form>
@once
@push('vendors')
@vite('resources/js/vendor/dropzone/index.js')
@endpush
@endonce
@once
@push('scripts')
@vite('resources/js/components/dropzone/index.js')
@endpush
@endonce