@extends('layouts.header') @section('content') @php $results_obj = json_decode($data_arrayAdHocReports); $results_objReports = json_decode($data_arrayReports); $ViewAllReport=$GetUserAccess['ViewAllReport']; $CreateReportAccess=$GetUserAccess['CreateReport']; $EditReport=$GetUserAccess['EditReport']; $LoggedUsser=$LoggedUsser; $DeleteAccess=0; if($LoggedUsser==1) { $DeleteAccess=1; } echo "
";
//print_r($results_obj);
// print_r($GetAllReportAccess);
echo "
"; $j=0; @endphp

AdHocReports

@if($ViewAllReport!=1) You Dont have Access for View the List of Report's ! @else
@php //if(empty($data_arrayAdHocReports)) if(array_filter($results_obj) == []) { // on 16th Nov '21 @endphp
@php } else { @endphp @php $i=1; $svg=''; foreach($results_obj as $key) { $ConfiguredRolearray=array(); $ReportId=$key->AdHocReportId; if(array_key_exists($ReportId,$GetAllReportAccess)) { $ConfiguredRolearray=$GetAllReportAccess[$ReportId]; } $pass_array=array("RowId"=>"$key->AdHocReportId"); $UpdatedBy=$AssignedToList[$key->UpdatedBy]['name']; if($key->AdHocReportType==1) $svg=''; if($key->AdHocReportType==2) $svg=''; if($key->AdHocReportType==3) $svg=''; if($key->AdHocReportType==4) $svg=''; if($key->AdHocReportType==6) $svg=''; if($key->AdHocReportType==5) $svg=''; if($key->AdHocReportType==7) $svg=''; if($key->AdHocReportType==8) $svg=''; if($key->AdHocReportType==9) $svg=''; if($key->AdHocReportType==10) $svg=''; if($key->AdHocReportType==14) $svg=''; @endphp @if(in_array($GetUserPrimaryRole,$ConfiguredRolearray)) @php $i++; @endphp @endif @php } @endphp
No Name Created On Created By Assigned To Report Type Action
{{$i}} @php echo $svg; @endphp {{$key->AdHocReportName}} {{$key->CreatedDate}} @php echo $display_value=$AssignedToList[$key->CreatedBy]['name']; @endphp @php echo $display_value=$AssignedToList[$key->AssignedTo]['name']; @endphp {{$key->AdHocReportType}} @if($EditReport==1) @endif @if($DeleteAccess==1) @endif
@php } @endphp
@endif

Reports

@if($ViewAllReport!=1) You Dont have Access for View the List of Report's ! @else
@php //if(empty($data_array)) if(array_filter($results_objReports) == []) { // on 16th Nov '21 @endphp
@php } else { @endphp @php $i=1; $svg=''; foreach($results_objReports as $key) { $ConfiguredRolearray=array(); $ReportId=$key->ReportId; if(array_key_exists($ReportId,$GetAllReportAccess)) { $ConfiguredRolearray=$GetAllReportAccess[$ReportId]; } $pass_array=array("RowId"=>"$key->ReportId"); $UpdatedBy=$AssignedToList[$key->UpdatedBy]['name']; if($key->ReportType==1) $svg=''; if($key->ReportType==2) $svg=''; if($key->ReportType==3) $svg=''; if($key->ReportType==4) $svg=''; if($key->ReportType==6) $svg=''; if($key->ReportType==5) $svg=''; if($key->ReportType==7) $svg=''; if($key->ReportType==8) $svg=''; if($key->ReportType==10) $svg=''; if($key->ReportType==14) $svg=''; @endphp @if(in_array($GetUserPrimaryRole,$ConfiguredRolearray)) @php $i++; @endphp @endif @php } @endphp
No Name Created On Created By Assigned To Report Type Action
{{$i}} @php echo $svg; @endphp {{$key->ReportName}} {{$key->CreatedDate}} @php echo $display_value=$AssignedToList[$key->CreatedBy]['name']; @endphp @php echo $display_value=$AssignedToList[$key->AssignedTo]['name']; @endphp {{$key->ReportType}} @if($EditReport==1) @endif @if($DeleteAccess==1) @endif
@php } @endphp
@endif

Customized Report

@if($ViewAllReport!=1) You Dont have Access for View the List of Report's ! @else @foreach($GetCustomizedReports as $EachCustomReport) @php $ConfiguredRolearray=array(); $ReportId=$EachCustomReport->CustomizedReportConfigID; if(array_key_exists($ReportId,$GetAllReportAccess)) { $ConfiguredRolearray=$GetAllReportAccess[$ReportId]; } $href=url($EachCustomReport->ReportUrl); $j++; @endphp @if(in_array($GetUserPrimaryRole,$ConfiguredRolearray)) @endif @endforeach
No Name
{{$j}} {{$EachCustomReport->DisplayName}}
@endif
@endsection