@php // if (Session::has('users')){ // $listNotif = Session::has('users.akun.id') ? App\tb_users::find(Session::get('users.akun.id'))->listNotif->where("read",0) : []; // } // else{ // $listNotif = []; // } $path = base_path('menu.json'); $listMenu = Session::has('users') ? json_decode(file_get_contents($path),true) : []; // dd(request()->path()); // dd($listMenu); @endphp