id = $id; $this->ajax = $ajax; $this->columns = $columns; $this->bulkDeleteUrl = $bulkDeleteUrl; if ($this->bulkDeleteUrl) { array_unshift($this->columns, [ 'key' => 'checkbox', 'label' => '
', 'orderable' => false, 'searchable' => false, 'className' => 'text-center align-middle', 'width' => '30px' ]); } } /** * Get the view / contents that represent the component. */ public function render(): View|Closure|string { return view('components.data-table'); } }