@if ($hideEmptyPage || ($documents->count() || request()->get('search', false)))
    @if (! $hideSummary)
    
    @endif
    
        @if (! $withoutTabs)
            
                
                    @stack('document_nav_start')
                    @if ($tabActive == $type)
                        
                    @else
                        
                    @endif
                    @stack('document_nav_end')
                    @if ($tabActive == 'recurring-templates')
                        @if (! $hideRecurringTemplates)
                            
                        @endif
                    @else
                        @if (! $hideRecurringTemplates)
                            
                        @endif
                    @endif
                    @stack('recurring_nav_end')
                
                
                    @if ((! $hideSearchString) && (! $hideBulkAction))
                    
                    @elseif ((! $hideSearchString) && $hideBulkAction)
                    
                    @elseif ($hideSearchString && (! $hideBulkAction))
                    
                    @endif
                    @stack('document_tab_start')
                    @if ($tabActive == $type)
                        
                            
                        
                    @endif
                    @stack('document_tab_end')
                    @if ($tabActive == 'recurring-templates')
                        @if (! $hideRecurringTemplates)
                        
                            
                        
                        @endif
                    @endif
                    @stack('recurring_tab_end')
                
            
        @else
            @if ((! $hideSearchString) && (! $hideBulkAction))
            
            @elseif ((! $hideSearchString) && $hideBulkAction)
            
            @elseif ($hideSearchString && (! $hideBulkAction))
            
            @endif
            @stack('document_start')
            
            @stack('document_end')
        @endif
    
@else
    
@endif