diff --git a/resources/views/datatable.blade.php b/resources/views/datatable.blade.php index e92119d9b..0a99f957b 100644 --- a/resources/views/datatable.blade.php +++ b/resources/views/datatable.blade.php @@ -6,134 +6,136 @@ @php($isBootstrap4 = $this->isBootstrap4) @php($isBootstrap5 = $this->isBootstrap5) -
getTopLevelAttributes() }}> - - @includeWhen( - $this->hasConfigurableAreaFor('before-wrapper'), - $this->getConfigurableAreaFor('before-wrapper'), - $this->getParametersForConfigurableArea('before-wrapper') - ) - - - @if($this->hasActions && !$this->showActionsInToolbar) - - @endif - +
+
getTopLevelAttributes() }}> @includeWhen( - $this->hasConfigurableAreaFor('before-tools'), - $this->getConfigurableAreaFor('before-tools'), - $this->getParametersForConfigurableArea('before-tools') + $this->hasConfigurableAreaFor('before-wrapper'), + $this->getConfigurableAreaFor('before-wrapper'), + $this->getParametersForConfigurableArea('before-wrapper') ) - @if($this->shouldShowTools) - - @if ($this->showSortPillsSection) - - @endif - @if($this->showFilterPillsSection) - + + @if($this->hasActions && !$this->showActionsInToolbar) + @endif + @includeWhen( - $this->hasConfigurableAreaFor('before-toolbar'), - $this->getConfigurableAreaFor('before-toolbar'), - $this->getParametersForConfigurableArea('before-toolbar') + $this->hasConfigurableAreaFor('before-tools'), + $this->getConfigurableAreaFor('before-tools'), + $this->getParametersForConfigurableArea('before-tools') ) - @if($this->shouldShowToolBar) - - @endif - - @includeWhen( - $this->hasConfigurableAreaFor('after-toolbar'), - $this->getConfigurableAreaFor('after-toolbar'), - $this->getParametersForConfigurableArea('after-toolbar') - ) - - - @endif - - - - - @if($this->getCurrentlyReorderingStatus) - + @if($this->shouldShowTools) + + @if ($this->showSortPillsSection) + @endif - @if($this->showBulkActionsSections) - - @endif - @if ($this->showCollapsingColumnSections) - + @if($this->showFilterPillsSection) + @endif - @foreach($this->selectedVisibleColumns as $index => $column) - - @endforeach - - - @if($this->secondaryHeaderIsEnabled() && $this->hasColumnsWithSecondaryHeader()) - - @endif - @if($this->hasDisplayLoadingPlaceholder()) - - @endif + @includeWhen( + $this->hasConfigurableAreaFor('before-toolbar'), + $this->getConfigurableAreaFor('before-toolbar'), + $this->getParametersForConfigurableArea('before-toolbar') + ) + @if($this->shouldShowToolBar) + + @endif - @if($this->showBulkActionsSections) - + @includeWhen( + $this->hasConfigurableAreaFor('after-toolbar'), + $this->getConfigurableAreaFor('after-toolbar'), + $this->getParametersForConfigurableArea('after-toolbar') + ) + + @endif - @forelse ($this->getRows as $rowIndex => $row) - + + + @if($this->getCurrentlyReorderingStatus) - + @endif @if($this->showBulkActionsSections) - + @endif @if ($this->showCollapsingColumnSections) - + @endif - @foreach($this->selectedVisibleColumns as $colIndex => $column) - - @if($column->isHtml()) - {!! $column->renderContents($row) !!} - @else - {{ $column->renderContents($row) }} - @endif - + @foreach($this->selectedVisibleColumns as $index => $column) + @endforeach - + - @if ($this->showCollapsingColumnSections) - + @if($this->secondaryHeaderIsEnabled() && $this->hasColumnsWithSecondaryHeader()) + @endif - @empty - - @endforelse - - @if ($this->footerIsEnabled() && $this->hasColumnsWithFooter()) - - @if ($this->useHeaderAsFooterIsEnabled()) - - @else - + @if($this->hasDisplayLoadingPlaceholder()) + + @endif + + + @if($this->showBulkActionsSections) + + @endif + + @forelse ($this->getRows as $rowIndex => $row) + + @if($this->getCurrentlyReorderingStatus) + + @endif + @if($this->showBulkActionsSections) + + @endif + @if ($this->showCollapsingColumnSections) + + @endif + + @foreach($this->selectedVisibleColumns as $colIndex => $column) + + @if($column->isHtml()) + {!! $column->renderContents($row) !!} + @else + {{ $column->renderContents($row) }} + @endif + + @endforeach + + + @if ($this->showCollapsingColumnSections) + @endif - - @endif - + @empty + + @endforelse + + @if ($this->footerIsEnabled() && $this->hasColumnsWithFooter()) + + @if ($this->useHeaderAsFooterIsEnabled()) + + @else + + @endif + + @endif + - + - @includeIf($customView) - + @includeIf($customView) + - @includeWhen( - $this->hasConfigurableAreaFor('after-wrapper'), - $this->getConfigurableAreaFor('after-wrapper'), - $this->getParametersForConfigurableArea('after-wrapper') - ) - -
+ @includeWhen( + $this->hasConfigurableAreaFor('after-wrapper'), + $this->getConfigurableAreaFor('after-wrapper'), + $this->getParametersForConfigurableArea('after-wrapper') + ) + +
+
\ No newline at end of file