update
This commit is contained in:
@@ -166,11 +166,12 @@ class IPMapping extends Controller
|
||||
);
|
||||
|
||||
return DataTables::eloquent($query)
|
||||
->addColumn(
|
||||
'action',
|
||||
fn($d) =>
|
||||
'<a href="' . route('package.ipaddress.edit', $d->id) . '" class="btn btn-primary btn-sm">Edit</a>'
|
||||
)
|
||||
->addColumn('action', function ($d) {
|
||||
return view('administrator.pages.package.ipaddress.datatable.action', [
|
||||
'id' => $d->id,
|
||||
'ip' => $d->ip
|
||||
])->render();
|
||||
})
|
||||
->filterColumn('host.datacenter.v_center.host', function ($query, $keyword) {
|
||||
$query->whereHas('host.datacenter.vCenter', function ($q) use ($keyword) {
|
||||
$q->where('host', 'like', "%{$keyword}%");
|
||||
|
||||
Reference in New Issue
Block a user