ids = $ids; } public function collection() { $model = Model::usingSearchString(request('search')); if (!empty($this->ids)) { $model->whereIn('id', (array) $this->ids); } return $model->get(); } public function map($model): array { return [ $model->bill_number, $model->order_number, $model->bill_status_code, $model->billed_at, $model->due_at, $model->amount, $model->currency_code, $model->currency_rate, $model->contact_id, $model->contact_name, $model->contact_email, $model->contact_tax_number, $model->contact_phone, $model->contact_address, $model->notes, $model->category_id, $model->footer, ]; } public function headings(): array { return [ 'bill_number', 'order_number', 'bill_status_code', 'billed_at', 'due_at', 'amount', 'currency_code', 'currency_rate', 'contact_id', 'contact_name', 'contact_email', 'contact_tax_number', 'contact_address', 'notes', 'category_id', 'footer', ]; } public function title(): string { return 'bills'; } }