>"; } public function setBuilder($table, $orderBy = 1) { $intl = File::exists(public_path('i18n/' . user()->locale . '.json')) ? asset('i18n/' . user()->locale . '.json') : __('app.datatable'); return parent::builder() ->setTableId($table) ->columns($this->getColumns()) /** @phpstan-ignore-line */ ->minifiedAjax() ->orderBy($orderBy) ->destroy(true) ->responsive() ->serverSide() ->stateSave(false) ->pageLength(companyOrGlobalSetting()->datatable_row_limit ?? 10) ->processing() ->dom($this->domHtml) ->language($intl); } protected function filename(): string { // Remove DataTable from name $filename = str()->snake(class_basename($this), '-'); return str_replace('data-table', '', $filename) . now()->format('Y-m-d-H-i-s'); } }