pianello-api/resources/views/components/base/tiny-slider/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

20 lines
479 B
PHP

@props(['config' => null])
<div
data-config="{{ $config }}"
{{ $attributes->class(merge(['tiny-slider', $attributes->whereStartsWith('class')->first()]))->merge($attributes->whereDoesntStartWith('class')->getAttributes()) }}
>
{{ $slot }}
</div>
@once
@push('vendors')
@vite('resources/js/vendor/tiny-slider/index.js')
@endpush
@endonce
@once
@push('scripts')
@vite('resources/js/components/tiny-slider/index.js')
@endpush
@endonce