themes add and some fix
This commit is contained in:
7
kernel/modules/menu/views/index.php
Normal file → Executable file
7
kernel/modules/menu/views/index.php
Normal file → Executable file
@ -19,12 +19,15 @@ $table = new ListEloquentTable(new EloquentDataProvider(Menu::class, [
|
||||
'baseUrl' => "/admin/settings/menu",
|
||||
]));
|
||||
$table->columns([
|
||||
'parent_id' => (function ($data) {
|
||||
'parent_id' => function ($data) {
|
||||
if ($data == 0) return null;
|
||||
return Menu::find($data)->label;
|
||||
}),
|
||||
},
|
||||
'icon_file' => function ($data) {
|
||||
return $data ? "<img src='$data' width='150px'>" : "";
|
||||
},
|
||||
'status' => function ($data) {
|
||||
return Menu::getStatus()[$data];
|
||||
}
|
||||
]);
|
||||
$table->beforePrint(function () {
|
||||
|
Reference in New Issue
Block a user