@php $inputAttributes = new \Illuminate\View\ComponentAttributeBag([ 'class' => theme_style($theme, 'checkbox.input'), ]); $rules = collect($row->__powergrid_rules) ->where('apply', true) ->where('forAction', \PowerComponents\LivewirePowerGrid\Components\Rules\RuleManager::TYPE_CHECKBOX) ->last(); if (isset($rules['attributes'])) { foreach ($rules['attributes'] as $key => $value) { $inputAttributes = $inputAttributes->merge([ $key => $value, ]); } } $disable = (bool) data_get($rules, 'disable'); $hide = (bool) data_get($rules, 'hide'); @endphp @if ($hide)