@if( !empty($value) && is_array($value) )
                    @php
                        $title_index = 1;
                    @endphp
                    @foreach($value as $index=> $single )
                        @php
                            $mapping_fields = !empty($fields) && is_array($fields) ? $fields : [];
                        @endphp
                        
                            
                                {{ $repeater_title ?? '' }} {{ $title_index++ }}
                                
                                    @if(!isset($edit) || !empty($edit))
                                        
 
                                    @endif
                                    
                                 
                            
                                
                                    @if( !empty($mapping_fields) && is_array($mapping_fields) )
                                        @php
                                            foreach($single as $key=> $item){
                                                $field_index = array_search($key, array_column($mapping_fields, 'id'));
                                                if( $field_index !== false ){
                                                    $mapping_fields[$field_index]['value'] = $item;
                                                }
                                            }
                                        @endphp
                                        {!! getSectionSetting(['tab_key' => $tab_key, 'index' => $index, 'repeater_id' => ($id ??  '') ], $mapping_fields) !!}
                                    @endif    
                                
                             
                         
                    @endforeach
                @else
                    
                        
                            {{ $repeater_title ?? '' }}
                            
                                @if(!isset($edit) || !empty($edit))
                                
 
                                @endif
                                
                             
                        
                            
                                @if( !empty($fields) && is_array($fields) )
                                    {!! getSectionSetting(['tab_key' => $tab_key, 'index' => rand(1,999).time(), 'repeater_id' => ($id ??  '') ], $fields) !!}
                                @endif    
                            
                         
                          
                @endif