@if(data_get($setUp, 'detail.showCollapseIcon')) @endif @if($checkbox) @endif @foreach ($columns as $column) @php if (filled($column->dataField) && str_contains($column->dataField, '.')) { $field = $column->field; } else if (filled($column->dataField) && !str_contains($column->dataField, '.')) { $field = $column->dataField; } else { $field = $column->field; } @endphp @if ($column->count['header']) {{ $column->count['label'] }}: {{ $withoutPaginatedData->collect()->reject(function($data) use($field) { return empty($data->{$field} ?? $data[$field]); })->count($field) }}
@endif @if ($column->sum['header'] && is_numeric($withoutPaginatedData[0][$field])) {{ $column->sum['label'] }}: {{ round($withoutPaginatedData->collect()->sum($field), $column->sum['rounded']) }}
@endif @if ($column->avg['header'] && is_numeric($withoutPaginatedData[0][$field])){{ $column->avg['label'] }}: {{ round($withoutPaginatedData->collect()->avg($field), $column->avg['rounded']) }}
@endif @if ($column->min['header'] && is_numeric($withoutPaginatedData[0][$field])) {{ $column->min['label'] }}: {{ round($withoutPaginatedData->collect()->min($field), $column->min['rounded']) }}
@endif @if ($column->max['header'] && is_numeric($withoutPaginatedData[0][$field])) {{ $column->max['label'] }}: {{ round($withoutPaginatedData->collect()->max($field), $column->max['rounded']) }}
@endif @endforeach @if(isset($actions) && count($actions)) @endif