searchable(), Column::make('Jumlah', 'amount') ->format(fn ($value) => currency($value, 'Rp')) ->searchable(), Column::make('Aksi') ->label(function ($row) { $actions = ''; $actions .= view('components.datatables.edit-modal', [ 'id' => $row->id, 'method' => 'update', 'modalTitle' => 'Ubah Kategori', ])->render(); $actions .= view('components.datatables.delete', [ 'id' => $row->id, 'deleteRoute' => route('studio.finance.expense.delete', $row->id), ])->render(); return $actions; }) ->html(), ]; } public function builder(): Builder { return Expense::select('id', 'description', 'amount'); } }