@php if (isset($_GET['pid'])) { $pid = $_GET['pid']; $uid = $_GET['uid']; }else { $pid = 0; $uid = 0; } $getMenu = \DB::select("SELECT * from menu m join menu_privilege mp on mp.menu_uid = m.menu_uid where m.is_active = 't' and m.has_children = 't' and group_id = ".Auth::guard('admin')->user()->role." order by m.seq"); $getMerchant = \DB::table('merchant')->where('mid',Auth::guard('admin')->user()->mid)->first(); @endphp