Skip to content

Commit 1ae741b

Browse files
authored
fix for spp
1 parent 109b35a commit 1ae741b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

resources/views/pages/index.blade.php

+12
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,18 @@
127127
@endforeach
128128
],
129129
columnDefs: [
130+
@foreach($columns->where('type', 'sleeping') as $column_nr => $column)
131+
{ targets: {{$column_nr}},
132+
render: function(data, type, row) {
133+
if ( row['{{$column->value}}'] ) {
134+
return '<i class="fad fa-snooze text-danger"></i>'
135+
} else {
136+
return ''
137+
}
138+
}
139+
},
140+
@endforeach
141+
130142
@foreach($columns->where('type', 'boolean') as $column_nr => $column)
131143
{ targets: {{$column_nr}},
132144
render: function(data, type, row) {

0 commit comments

Comments
 (0)