@if(count((array)$o_array)>0)
@php $o_array=(array) $o_array; $sel_caseno= $o_array[0]->case_no; @endphp
@foreach ($o_array as $key => $list) @if ($previous_brd_slno == $list->brd_slno ) @else @endif
@if ($t_cntr != 0)
{{ $list->brd_slno . '.' . $t_cntr}}
@else
{{ $list->brd_slno }}
@endif
@if ($t_cntr != 0) {{ $list->case_no }} @else {{ $list->case_no }} @endif
@if(count($list->get_connected_case)>0)
@endif @if(count($list->get_alloted_ag)>0) @php $alloted_adv=''; @endphp @foreach($list->get_alloted_ag as $ag_allot) @if($alloted_adv=='') @php $alloted_adv=$ag_allot->name.' ('.$ag_allot->enroll_no.'/'.$ag_allot->enroll_year.')'; @endphp @else @php $alloted_adv=$alloted_adv.', '.$ag_allot->name.' ('.$ag_allot->enroll_no.'/'.$ag_allot->enroll_year.')'; @endphp @endif @endforeach @endif @if(count($list->get_connected_case)>0)
@php $point_sno=1; @endphp @foreach($list->c_oarray as $con_case)
{{ $list->brd_slno . '.' . $point_sno}}
@if(count($con_case->get_alloted_ag_con)>0) @php $alloted_adv_c=''; @endphp @foreach($con_case->get_alloted_ag_con as $ag_allot) @if($alloted_adv_c=='') @php $alloted_adv_c=$ag_allot->name.' ('.$ag_allot->enroll_no.'/'.$ag_allot->enroll_year.')'; @endphp @else @php $alloted_adv_c=$alloted_adv_c.', '.$ag_allot->name.' ('.$ag_allot->enroll_no.'/'.$ag_allot->enroll_year.')'; @endphp @endif @endforeach @endif
{{ $con_case->conn_case_no }}

@php $point_sno++; @endphp @endforeach
@endif
@php $count++; $s_sno++; @endphp @if($count==4)

@php $count=0; @endphp @endif @endforeach
@else
No Record Found
@endif