{{-- checkbox with loose false/null/0 checking --}} @php $checkValue = data_get($entry, $column['name']); $checkedIcon = data_get($column, 'icons.checked', 'la-check-circle'); $uncheckedIcon = data_get($column, 'icons.unchecked', 'la-circle'); $exportCheckedText = data_get($column, 'labels.checked', trans('backpack::crud.yes')); $exportUncheckedText = data_get($column, 'labels.unchecked', trans('backpack::crud.no')); $icon = $checkValue == false ? $uncheckedIcon : $checkedIcon; $column['text'] = $checkValue == false ? $exportUncheckedText : $exportCheckedText; $column['escaped'] = $column['escaped'] ?? true; $column['prefix'] = $column['prefix'] ?? ''; $column['suffix'] = $column['suffix'] ?? ''; $column['text'] = $column['prefix'].$column['text'].$column['suffix']; @endphp @includeWhen(!empty($column['wrapper']), 'crud::columns.inc.wrapper_start') @includeWhen(!empty($column['wrapper']), 'crud::columns.inc.wrapper_end') @if($column['escaped']) {{ $column['text'] }} @else {!! $column['text'] !!} @endif