This commit is contained in:
30
app/Cells/MenuCell.php
Normal file
30
app/Cells/MenuCell.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
namespace App\Cells;
|
||||
|
||||
use App\Models\common\MenuModel;
|
||||
class MenuCell
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
$model = new MenuModel();
|
||||
$menus = $model->getMenuList();
|
||||
|
||||
$menuIcons = [
|
||||
'M1' => 'pe-7s-note2',
|
||||
'M2' => 'pe-7s-monitor',
|
||||
'M3' => 'pe-7s-mail',
|
||||
'M4' => 'pe-7s-display2',
|
||||
'M5' => 'pe-7s-config',
|
||||
'M6' => '',
|
||||
'M7' => 'pe-7s-monitor',
|
||||
'M8' => 'pe-7s-server',
|
||||
'M9' => 'pe-7s-graph2',
|
||||
];
|
||||
|
||||
return view('layouts/sidebar', [
|
||||
'mMenu' => $menus["mainMenu"],
|
||||
'sMenu' => $menus["subMenu"],
|
||||
'icons' => $menuIcons,
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user