@php
                                $data = $post->more_option_1 ?? '';                              
                                preg_match_all("/<!--type:(.*?)-->(.*?)(?=(<!--type:|$))/s", $data, $matches, PREG_SET_ORDER);
                            @endphp

                            @foreach ($matches as $item)
                                @php
                                    $type = trim($item[1]);
                                    $value = trim($item[2]);
                                @endphp
                               

                                @if ($type === 'color')

                                    @php                                      
                                        $color = explode('<!--block-->', $value)[0];
                                    @endphp
                                    <span class="dot" style="background: {{ trim($color) }}"></span>
 
                                @endif
                            @endforeach