@ -91,7 +91,7 @@ class DivisiController extends Controller
public function list()
{
$parentMenus = Divisi::whereNull('parent')->with('children')->get();
$parentMenus = Divisi::with('children')->whereNull('parent')->get();
$divisions = [];
foreach($parentMenus as $menu){
$childs = $this->getAllChildren($menu);