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) {
+4 -1
View File
@@ -17,10 +17,13 @@ class ButtonCRM extends Component
public $icon;
public $variant;
public $size;
public function __construct($type = 'button', $route = null, $url = null, $icon = null, $variant = 'primary', $size = 'md')
public $params;
public function __construct($type = 'button', $route = null, $params = [], $url = null, $icon = null, $variant = 'primary', $size = 'md')
{
$this->type = $type;
$this->route = $route;
$this->params = $params;
$this->url = $url;
$this->icon = $icon;
$this->variant = $variant;