@if (session()->has('message'))
✓ {{ session('message') }}
@endif @php function stripSvgTags($content) { // Match the content inside the tags preg_match('/]*>(.*?)<\/svg>/s', $content, $matches); return str_replace("\n", '', $matches[1]) ?? $content; } @endphp
@foreach ($solidIconsList as $solidIcon)
@php $svgCode = file_get_contents($solidIcon->getRealPath()); $pathCode = stripSvgTags($svgCode); @endphp
{!! $svgCode !!}
{{ $solidIcon->getFilenameWithoutExtension() }}
                        <BaseUIIcon name="{{ $solidIcon->getFilenameWithoutExtension() }}" classes="size-6"/>
                    
                        '{{ $solidIcon->getFilenameWithoutExtension() }}': '{{ $pathCode}}',
                    
@csrf
@endforeach
@foreach ($lineIconsList as $lineIcon)
@php $svgCode = file_get_contents($lineIcon->getRealPath()); $pathCode = stripSvgTags($svgCode); @endphp
{!! $svgCode !!}
{{ $lineIcon->getFilenameWithoutExtension() }}
                        <BaseUIIcon type="line" name="{{ $lineIcon->getFilenameWithoutExtension() }}" classes="size-6"/>
                    
                        '{{ $lineIcon->getFilenameWithoutExtension() }}': '{{ $pathCode}}',
                    
@csrf
@endforeach