/* Decoded by unphp.net */ session()->has("user")){${${"GLOBALS"}["vircgyegl"]}=Session::get("user");${"GLOBALS"}["fltxfphcsf"]="table_u";${${"GLOBALS"}["cuockpgc"]}=DB::table("CAPS_Roles_V")->where("T_U_Name",${${"GLOBALS"}["fltxfphcsf"]})->where("UG_ID",$user->CA_USERLEV)->where("delete_s",0)->first();${"GLOBALS"}["cbrxpnvmgamv"]="tablemainper";${${"GLOBALS"}["cbrxpnvmgamv"]}=DB::table("CAPS_TABLES")->where("T_U_Name",${${"GLOBALS"}["msirdmijq"]})->first();${"GLOBALS"}["efjdqkoydx"]="table";${"GLOBALS"}["pnltao"]="caps_model";if(${${"GLOBALS"}["krfpqelagf"]}==NULL){return Redirect("/");}${${"GLOBALS"}["efjdqkoydx"]}=$tablemainper->T_D_Name;${${"GLOBALS"}["pnltao"]}=$tablemainper->M_ID;if($table_per->R_1==1&&$tablemainper->R_1==1){$qrwxkbycnn="table";$gthldoojuik="table";$txbxscl="columnNulls";${"GLOBALS"}["lrryoryhigb"]="tables";$gioawei="databaseName";$roogfl="model";${"GLOBALS"}["muojxgv"]="T1";$xsgkxtrfrp="t_v";${${"GLOBALS"}["lrryoryhigb"]}=DB::table("CAPS_Side_Tables")->where("UG_ID",$user->CA_USERLEV)->where("R_1",1)->where("MR_1",1)->where("delete_s",0)->get();${${"GLOBALS"}["rllbuc"]}=DB::table("CAPS_SUBMODEL")->where("delete_s",0)->get();$yxbiatzj="models";${"GLOBALS"}["kguacvlhw"]="t_v";$sgrhnu="model";${"GLOBALS"}["yespfwt"]="T1";${"GLOBALS"}["xxethshbuz"]="user";$dekssrnls="count";$yfwdssjv="results";${${"GLOBALS"}["ulqvthzbd"]}=DB::SELECT("SELECT * FROM(SELECT distinct M_NAME, M_ID, M_SHORTN, M_ORDER FROM CAPS_Side_Tables where UG_ID = $user->CA_USERLEV and R_1 = 1 and MR_1 = 1 and delete_s = 0) a order by M_ORDER ");${${"GLOBALS"}["mmlngeep"]}=DB::table("INFORMATION_SCHEMA.COLUMNS")->where("TABLE_NAME",${${"GLOBALS"}["hgkkpjwpy"]})->where("ORDINAL_POSITION",1)->value("COLUMN_NAME");${$sgrhnu}="\App\Models\".${$qrwxkbycnn};$ytumska="table";${"GLOBALS"}["slxjlvfegf"]="caps_model";${${"GLOBALS"}["muojxgv"]}=${$roogfl}::first();if(${${"GLOBALS"}["yespfwt"]}==NULL){$ktbkgzhlrtq="results";$csylquucex="count";${${"GLOBALS"}["sldtmyquoun"]}=DB::getSchemaBuilder()->getColumnListing(${${"GLOBALS"}["hgkkpjwpy"]});${$ktbkgzhlrtq}=[];${$csylquucex}=0;}else{${"GLOBALS"}["ngxfrilyv"]="table";${"GLOBALS"}["qlseyjdxrx"]="rows";$ivraktrfcn="count";${${"GLOBALS"}["qlseyjdxrx"]}=array_keys(json_decode(${${"GLOBALS"}["obdimleo"]},true));${${"GLOBALS"}["bvuvtewnsw"]}=DB::table(${${"GLOBALS"}["ngxfrilyv"]})->where("delete_s",0)->orderBy(${${"GLOBALS"}["mmlngeep"]},"DESC")->get();${$ivraktrfcn}=count(${${"GLOBALS"}["bvuvtewnsw"]});}$noeavhbcng="cotyp";${${"GLOBALS"}["sdiclbw"]}=[];${$txbxscl}=[];${$gioawei}=\DB::connection()->getDatabaseName();${${"GLOBALS"}["vmayrwdttxg"]}=DB::SELECT("select COLUMN_NAME as row, DATA_TYPE,IS_NULLABLE from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME = '$table' and TABLE_CATALOG = '$databaseName'");foreach(${${"GLOBALS"}["vmayrwdttxg"]} as${$noeavhbcng}){${"GLOBALS"}["qvkyhesxxli"]="columnNull";${${"GLOBALS"}["unledlemi"]}=$cotyp->DATA_TYPE;$fnxyebchcvmi="columnNulls";${${"GLOBALS"}["qvkyhesxxli"]}=$cotyp->IS_NULLABLE;${${"GLOBALS"}["sdiclbw"]}[$cotyp->row]=${${"GLOBALS"}["unledlemi"]};${$fnxyebchcvmi}[$cotyp->row]=${${"GLOBALS"}["tnvtxjho"]};}${"GLOBALS"}["ysjsmnyki"]="submo";${${"GLOBALS"}["kguacvlhw"]}=DB::table("CAPS_T_V_V")->where("View_Name",${${"GLOBALS"}["hgkkpjwpy"]})->where("delete_s",0)->first();${"GLOBALS"}["wldfuckl"]="rows";if(${$xsgkxtrfrp}==NULL){${"GLOBALS"}["lwrmhx"]="table_u";${${"GLOBALS"}["srdymdyn"]}=${${"GLOBALS"}["lwrmhx"]};}else{$ogduochj="m_table";${$ogduochj}=$t_v->T_U_Name;}$lmznxxu="tablemainper";if(${${"GLOBALS"}["hgkkpjwpy"]}=="CAPS_Roles_V_V"||${$ytumska}=="CAPS_TABLES"){$ebsuxgq="user";$brucbekx="table_u";$wftwca="submo";$mpmurjs="table_per";$bjijotrtt="caps_model";$qduuzj="models";${"GLOBALS"}["tectmolzl"]="results";return view("Permissions",["user"=>${$ebsuxgq},"count"=>${${"GLOBALS"}["wmoplwivxyd"]},"T_D_Name"=>$tablemainper->T_D_Name,"tables"=>${${"GLOBALS"}["cokaiyp"]},"models"=>${$qduuzj},"columnTypes"=>${${"GLOBALS"}["sdiclbw"]},"columnNulls"=>${${"GLOBALS"}["jvwggnkid"]},"table_per"=>${$mpmurjs},"tablemainper"=>${${"GLOBALS"}["krfpqelagf"]},"table"=>${$brucbekx},"rows"=>${${"GLOBALS"}["sldtmyquoun"]},"results"=>${${"GLOBALS"}["tectmolzl"]},"pri"=>${${"GLOBALS"}["mmlngeep"]},"cmodel"=>${$bjijotrtt},"submo"=>${$wftwca}]);}return view(${$gthldoojuik},["user"=>${${"GLOBALS"}["xxethshbuz"]},"m_table"=>${${"GLOBALS"}["srdymdyn"]},"count"=>${$dekssrnls},"T_D_Name"=>$tablemainper->T_D_Name,"tables"=>${${"GLOBALS"}["cokaiyp"]},"models"=>${$yxbiatzj},"columnTypes"=>${${"GLOBALS"}["sdiclbw"]},"columnNulls"=>${${"GLOBALS"}["jvwggnkid"]},"table_per"=>${${"GLOBALS"}["cuockpgc"]},"tablemainper"=>${$lmznxxu},"table"=>${${"GLOBALS"}["msirdmijq"]},"rows"=>${${"GLOBALS"}["wldfuckl"]},"results"=>${$yfwdssjv},"pri"=>${${"GLOBALS"}["mmlngeep"]},"cmodel"=>${${"GLOBALS"}["slxjlvfegf"]},"submo"=>${${"GLOBALS"}["ysjsmnyki"]}]);}else return Redirect("/")->with("warning",__("massages.noperenter").${${"GLOBALS"}["msirdmijq"]});}else return redirect("/signin")->with("warning",__("massages.relogin"));}catch(\Exception$e){${${"GLOBALS"}["wzroqgrmrepp"]}=$e->getCode();$vtxnioj="errorMessage";$itaqrebbigt="errorCode";${${"GLOBALS"}["phyhfefqkab"]}=$e->getMessage();return redirect()->back()->with("errors","Error code: [".${$itaqrebbigt}."] : ".${$vtxnioj});}}} ?>