@props([ 'column' => [], 'tableId' => null, ]) @php $filter = $column['filter'] ?? []; $key = $column['key'] ?? ''; $label = $column['label'] ?? $key; $type = $filter['type'] ?? 'text'; $filterId = ($tableId ?: 'erp_table').'_filter_'.$key; $placeholder = $filter['placeholder'] ?? 'Filter'; $textOperators = [ 'contains' => 'Contains', 'equals' => 'Equals', 'starts' => 'Starts with', 'ends' => 'Ends with', 'not_contains' => 'Does not contain', 'not_equals' => 'Not equal', ]; $numberOperators = [ '=' => '=', '!=' => '<>', '>' => '>', '>=' => '>=', '<' => '<', '<=' => '<=', ]; @endphp @if (($column['filterable'] ?? true) !== false)