@php $entityName = strtolower(class_basename($crud->getModel())); $tableId = $entityName . 'Table'; @endphp {{-- Table columns --}} @foreach ($crud->columns() as $column) @endforeach @if ($crud->buttons()->where('stack', 'line')->count()) @endif
if developer forced field in table with 'visibleInTable => true' data-visible => regular visibility of the field data-can-be-visible-in-table => prevents the column to be loaded into the table (export-only) data-visible-in-modal => if column apears on responsive modal data-visible-in-export => if this field is exportable data-force-export => force export even if field are hidden --}} {{-- If it is an export field only, we are done. --}} @if (isset($column['exportOnlyField']) && $column['exportOnlyField'] === true) data-visible="false" data-visible-in-table="false" data-can-be-visible-in-table="false" data-visible-in-modal="false" data-visible-in-export="true" data-force-export="true" @else data-visible-in-table="{{ var_export($column['visibleInTable'] ?? false) }}" data-visible="{{ var_export($column['visibleInTable'] ?? true) }}" data-can-be-visible-in-table="true" data-visible-in-modal="{{ var_export($column['visibleInModal'] ?? true) }}" @if (isset($column['visibleInExport'])) @if ($column['visibleInExport'] === false) data-visible-in-export="false" data-force-export="false" @else data-visible-in-export="true" data-force-export="true" @endif @else data-visible-in-export="true" data-force-export="false" @endif @endif > {{-- Bulk checkbox --}} @if ($loop->first && $crud->getOperationSetting('bulkActions')) {!! View::make('crud::columns.inc.bulk_actions_checkbox')->render() !!} @endif {!! $column['label'] !!}