@props([ 'label' => '', 'value' => '0', 'color' => 'info', 'icon' => 'fas fa-chart-bar', 'filter' => null, // valor a pasar como filtro (ej: '1', '0', 'null', '') 'tableId' => null, // id del DataTable a filtrar 'param' => 'filtro', // nombre del parámetro custom enviado al servidor 'id' => null, ]) @php $clickable = ($filter !== null && $filter !== '' && $tableId) || ($filter === '' && $tableId); $hasFilter = $tableId !== null; @endphp
except(['id', 'class']) }} >
{{ $label }}

{{ $value }}

@pushonce('js') @endpushonce