This commit is contained in:
pbao9
2026-02-02 23:17:10 +07:00
parent 8b3be9cc58
commit 372b6bf0f6
106 changed files with 147 additions and 3969 deletions
@@ -130,8 +130,9 @@ class Datacenter extends Controller
return DataTables::eloquent($query)
->addColumn(
'action',
fn($d) =>
'<a href="' . route('package.datacenter.edit', $d->id) . '" class="btn btn-primary btn-sm">Edit</a>'
function ($d) {
return view('administrator.pages.package.datacenter.datatable.edit', ['row' => $d])->render();
}
)
->filterColumn('v_center.host', function ($query, $keyword) {
$query->whereHas('vCenter', function ($q) use ($keyword) {