Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
luanfreitasdev committed Oct 22, 2023
1 parent 34c2288 commit fae7a31
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions resources/views/components/frameworks/tailwind/table-base.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ class="py-2 align-middle inline-block min-w-full w-full sm:px-6 lg:px-8"
])

@if (config('livewire-powergrid.filter') === 'outside')
{{-- @php--}}
{{-- $filtersFromColumns = collect($this->allColumns)--}}
{{-- ->filter(fn($column) => filled($column->filters))--}}
{{-- ->pluck('filters');--}}
{{-- @endphp--}}
@php
$filtersFromColumns = collect($this->allColumns)
->filter(fn($column) => filled($column->filters))
->pluck('filters');
@endphp

{{-- @if ($filtersFromColumns->count() > 0)--}}
{{-- <x-livewire-powergrid::frameworks.tailwind.filter--}}
{{-- :enabled-filters="$enabledFilters"--}}
{{-- :tableName="$tableName"--}}
{{-- :columns="$columns"--}}
{{-- :filtersFromColumns="$filtersFromColumns"--}}
{{-- :theme="$theme"--}}
{{-- />--}}
{{-- @endif--}}
@if ($filtersFromColumns->count() > 0)
<x-livewire-powergrid::frameworks.tailwind.filter
:enabled-filters="$enabledFilters"
:tableName="$tableName"
:columns="$columns"
:filtersFromColumns="$filtersFromColumns"
:theme="$theme"
/>
@endif
@endif

<div
Expand Down

0 comments on commit fae7a31

Please sign in to comment.