@php
$uniqueId = uniqid('report_');
$tableId = "DownloadXAxisReport_" . $uniqueId;
$buttonId = "ExportButton_" . $uniqueId;
@endphp
@foreach($XAxisArray as $EachXAxis=>$XAxisValue)
| {{$LabelNames[$EachXAxis]}} |
Count |
@php
$XAxisData=$GetResult[$EachXAxis];
$FieldDetail=$FieldsDisplayType[$EachXAxis];
$DisplayType=$FieldDetail['DisplayType'];
$DisplayValue='';
$total=0;
@endphp
@foreach($XAxisData as $Values=>$ColumnCnt)
@if($DisplayType==2 || $DisplayType==5)
@php
$DropDownNameId=$FieldDetail['DropDownNameId'];
if($GetDropdownLists[$DropDownNameId])
{
$ChildDropDown=$GetDropdownLists[$DropDownNameId];
if(array_key_exists($Values,$ChildDropDown))
{
$DisplayValue=$ChildDropDown[$Values];
}
}
@endphp
@elseif($DisplayType==15)
@php
$DisplayFinalValue="";
$AssignedUserNameTEmp="";
if(array_key_exists($Values,$AssignedToList))
{
$AssignedUserNameTEmp=$AssignedToList[$Values];
$DisplayValue=$AssignedUserNameTEmp['name'];
}
@endphp
@elseif($DisplayType==1 || $DisplayType==11 || $DisplayType==17 || $DisplayType==13)
@php
$DisplayValue=$Values;
@endphp
@else
@php
$DisplayValue=$Values;
@endphp
@endif
|
@if($DisplayValue=='')
(EMPTY)
@else
{{$DisplayValue}}
@endif
|
@php
$total=$total+$ColumnCnt;
@endphp
{{$ColumnCnt}}
|
@endforeach
| Total |
{{$total}}
|
@endforeach