@inject('helperClass','PowerComponents\LivewirePowerGrid\Helpers\Helpers') @if($checkbox) @endif @foreach($columns as $column) @endforeach @if(isset($actions) && count($actions)) {{ trans('livewire-powergrid::datatable.labels.action') }} @endif @if(is_null($data) || count($data) === 0) {{ trans('livewire-powergrid::datatable.labels.no_data') }} @else @if($headerTotalColumn) @endif @foreach($data as $row) @php $class = $theme->table->trBodyClass; $rules = $helperClass->makeActionRules('pg:rows', $row); $ruleSetAttribute = data_get($rules, 'setAttribute'); if (filled($ruleSetAttribute)) { foreach ($ruleSetAttribute as $attribute) { if (isset($attribute['attribute'])) { $class .= ' '.$attribute['value']; } } } @endphp @if($checkbox) @php $rules = $helperClass->makeActionRules('pg:checkbox', $row); $ruleHide = data_get($rules, 'hide'); $ruleDisable = data_get($rules, 'disable'); $ruleSetAttribute = data_get($rules, 'setAttribute'); @endphp @endif @endforeach @if($footerTotalColumn) @endif @endif