Skip to content

Commit

Permalink
main - wip
Browse files Browse the repository at this point in the history
  • Loading branch information
luanfreitasdev committed Nov 12, 2021
1 parent d6b3092 commit 3f6bd2b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,5 @@

</ul>
</div>
<script>
function toggleColumns() {
return {
open: false,
toggleColumn(key) {
window.livewire.emit('eventToggleColumn', key);
}
}
}
</script>
@endif
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
<label>
<input onclick="toggle(event)"
data-id="{{ $row->id }}"
data-field="{{ $field }}"
data-field="{{ $column->field }}"
class="form-check-input"
type="checkbox" @if($row->$field === 1) checked @endif>
type="checkbox" @if($row->{$column->field} === 1) checked @endif>
</label>
</div>
@else
<div class="text-center">
@if($row->{$field} === 0)
@if($row->{$column->field} === 0)
<div style="padding-top: 0.1em; padding-bottom: 0.1rem"
class="badge bg-danger">
{{ $column->toggleable['default'][1] }}
</div>
@else
<div style="padding-top: 0.1em; padding-bottom: 0.1rem" c
lass="badge bg-success">
<div style="padding-top: 0.1em; padding-bottom: 0.1rem"
class="badge bg-success">
{{ $column->toggleable['default'][0] }}
</div>
@endif
Expand Down
2 changes: 0 additions & 2 deletions src/Jobs/ExportJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ public function handle()
->limit($this->limit)
->get();

dd($query);

return (new $this->type())
->fileName($this->getFilename())
->setData($this->columns, $this->transform($query))
Expand Down

0 comments on commit 3f6bd2b

Please sign in to comment.