@aware(['component', 'tableName']) @php $customAttributes = [ 'wrapper' => $this->getTableWrapperAttributes(), 'table' => $this->getTableAttributes(), 'thead' => $this->getTheadAttributes(), 'tbody' => $this->getTbodyAttributes(), ]; @endphp @if ($component->isTailwind())
merge($customAttributes['wrapper'])->class([ 'shadow overflow-y-auto border-b border-gray-200 dark:border-gray-700 sm:rounded-lg' => $customAttributes['wrapper']['default'] ?? true, ])->except('default') }}> merge($customAttributes['table'])->class(['min-w-full divide-y divide-gray-200 dark:divide-none' => $customAttributes['table']['default'] ?? true])->except('default') }}> merge($customAttributes['thead'])->class(['bg-gray-50 dark:bg-gray-800' => $customAttributes['thead']['default'] ?? true])->except('default') }}> {{ $thead }} merge($customAttributes['tbody'])->class([ 'bg-white divide-y divide-gray-200 dark:bg-gray-800 dark:divide-none' => $customAttributes['tbody']['default'] ?? true, ])->except('default') }}> {{ $slot }} @if (isset($tfoot)) {{ $tfoot }} @endif
@elseif ($component->isBootstrap())
@if ($component->searchIsEnabled() && $component->searchVisibilityIsEnabled()) @endif
@if ($component->showFilterOnHeader == true) @include($component->FilterComponent[0], [ 'filterHeads' => [ $component->FilterComponent[1], isset($component->FilterComponent[2]) ? $component->FilterComponent[2] : '', ], ]) @endif @if ($component->showButtonOnHeader) @include($component->buttonComponent) @endif
merge($customAttributes['wrapper'])->class(['table-responsive' => $customAttributes['wrapper']['default'] ?? true])->except('default') }}> merge($customAttributes['table'])->class(['table table-striped' => $customAttributes['table']['default'] ?? true])->except('default') }}> merge($customAttributes['thead'])->class(['' => $customAttributes['thead']['default'] ?? true])->except('default') }}> {{ $thead }} merge($customAttributes['tbody'])->class(['' => $customAttributes['tbody']['default'] ?? true])->except('default') }}> {{ $slot }} @if (isset($tfoot)) {{ $tfoot }} @endif
@endif