@inject('helperClass','PowerComponents\LivewirePowerGrid\Helpers\Helpers') @props([ 'primaryKey' => null, 'row' => null, 'field' => null, 'theme' => null, 'currentTable' => null, 'tableName' => null, 'showErrorBag' => null, 'editable' => null, ]) @php $fallback = html_entity_decode(strval(data_get($editable, 'fallback')), ENT_QUOTES, 'utf-8'); $value = html_entity_decode(strval($helperClass->resolveContent($currentTable, $field, $row)), ENT_QUOTES, 'utf-8'); $content = !empty($value) || $value == '0' ? $value : $fallback; $params = [ 'theme' => $theme->name, 'tableName' => $tableName, 'id' => $row->{$primaryKey}, 'dataField' => $field, 'content' => $content, 'fallback' => $fallback ]; @endphp