@props(['key', 'default' => '', 'seoTag' => null]) @php $snippet = \App\Models\Snippet::where('key', $key)->first(); $content = $snippet && $snippet->content ? $snippet->content : ($default ?: $slot); $seo = $snippet && $snippet->seo_description ? $snippet->seo_description : null; @endphp @if($seo && $seoTag === 'meta') @endif @if($seo && $seoTag === 'span') @endif {!! $content !!}