@php
                                $imgCount = 0;
                            @endphp
                            @foreach ($section->element as $k => $content)
                                @if ($k == 'images')
                                    @php
                                        $imgCount = collect($content)->count();
                                    @endphp
                                    @foreach ($content as $imgKey => $image)
                                        
                                            
                                            
                                                
                                                
                                            
                                         
                                    @endforeach
                                    
                                        @push('divend')
                                        
                                    @endpush
                                @elseif($content == 'icon')
                                    
                                @else
                                    @if ($content == 'textarea')
                                        
                                    @elseif($content == 'textarea-nic')
                                        
                                    @elseif($k == 'select')
                                        @php
                                            $selectName = $content->name;
                                        @endphp
                                        
                                            
                                                
                                                
                                            
                                         
                                    @elseif($k == 'slug')
                                        
                                    @else
                                        
                                    @endif
                                @endif
                                @endforeach
                                
                                    
                                
                            @stack('divend')