@php $LoggedUser = Auth::user()->name; $IsAdmin = Auth::user()->IsAdmin; $LoggedUser = ucwords($LoggedUser); $profile=Auth::user()->ProfilePic; $userId=Auth::user()->RefId; $UserTitle = Auth::user()->UserTitle; if($UserTitle == ''){ $UserTitle = "User"; } $UserTitle = ucwords($UserTitle); $DisplayEmailTab=1; $siteurl=$_SERVER['HTTP_HOST']; $url=explode(".",$siteurl); $InstanceName=$url[0]; //$InstanceName = ucwords($InstanceName); $result=DB::table('InboundEmailConfiguration')->where('DeletedStatus',0)->orderby('CreatedDate','desc')->get("EmailId")->first(); $EmailId=$result->EmailId; $roleId="0c9b7578-91b7-4514-be00-ea381158cdeb";//call executive $userPrimaryRole=DB::table('UserRoleAssociation')->where('UserID',$userId)->where('RoleID',$roleId)->where('PrimaryRole',1)->get(["UserRoleAssociationId"])->first(); try { $userPrimaryRole=$userPrimaryRole->UserRoleAssociationId; } catch(\Exception $e) { $userPrimaryRole=""; } if($userId==1) { } $GetuserPrimaryRole=DB::table('UserRoleAssociation')->where('UserID',$userId)->where('PrimaryRole',1)->get(["RoleID"])->first(); $LoggedUserRole=$GetuserPrimaryRole->RoleID; $UserBreakRole['bbc3b105-8219-4839-a956-1a72ee035ba0']='bbc3b105-8219-4839-a956-1a72ee035ba0'; $UserBreakRole['b61c54fb-0ea6-47e2-b2f3-0f65dba41e98']='b61c54fb-0ea6-47e2-b2f3-0f65dba41e98'; $UserBreakRole['2fe5483f-00de-4741-a419-82763560e80b']='2fe5483f-00de-4741-a419-82763560e80b'; $UserBreakRole['43f52cfb-2bba-47c4-ad79-3048f3703d64']='43f52cfb-2bba-47c4-ad79-3048f3703d64'; $UserBreakRole['30b1b7a2-2a47-4549-a690-4e7e6f4e91b7']='30b1b7a2-2a47-4549-a690-4e7e6f4e91b7'; $UserBreakRole['cda515b1-7642-4bcd-a425-8376873c07b3']='cda515b1-7642-4bcd-a425-8376873c07b3'; $UserBreakRole['bada407f-3a53-4c18-b7d6-d47065fc5297']='bada407f-3a53-4c18-b7d6-d47065fc5297'; $UserBreakRole['34bc6a31-1701-4343-95ba-1e852f33a285']='34bc6a31-1701-4343-95ba-1e852f33a285'; $UserBreakRole['98925850-70f9-4318-940b-a8a6f8b5b2db']='98925850-70f9-4318-940b-a8a6f8b5b2db'; $UserBreakRole['add0bf2d-038b-4350-a1aa-e9cc343e1276']='add0bf2d-038b-4350-a1aa-e9cc343e1276'; $UserBreakRole['7e4ac97f-3baf-4e8d-bd2d-6fa36890c863']='7e4ac97f-3baf-4e8d-bd2d-6fa36890c863'; $UserBreakRole['2fb1f8dd-968b-4fa2-86a4-26308dfb8ea8']='2fb1f8dd-968b-4fa2-86a4-26308dfb8ea8'; $UserBreakRole['1b62b9da-8e26-4ca0-aa59-055ed7b5944c']='1b62b9da-8e26-4ca0-aa59-055ed7b5944c'; if(array_key_exists($LoggedUserRole,$UserBreakRole)) { $DisplayUserBreakPage=1; } else { $DisplayUserBreakPage=0; } $DisplayUserBreakReportPage=0; if($userId=='3890211028' || $userId=='1499005377' || $userId=='3400515195') { $DisplayUserBreakPage=1; $DisplayUserBreakReportPage=1; } $DisplayImport=0; if($IsAdmin == 1) { $DisplayImport=1; } if($userId == 817405196) { $DisplayImport=1; } $DisplayMyfollowupdashboard=1; if($InstanceName=="tbo") { $DisplayMyfollowupdashboard=0; } $DisplayMissedCallReport=0; if($InstanceName=="bigdaddycasino") { $DisplayMissedCallReport=1; } $DisplayConfiguationMenu=0; @endphp