@php $i=1; $data_array = explode(',',$data_array); foreach($get_person as $pet){ if($data_array != ""){ if (in_array($pet->sr_no, $data_array)){ $flag = "checked"; }else{ if (in_array($pet->sr_no_lrs, $data_array)){ $flag = "checked"; }else{ $flag = ""; } } }else{ $flag = ""; } @endphp @php if($pet->sr_no_lrs == "0"){ @endphp @php }else{ @endphp @php } @endphp @php $i++; } @endphp
S.No. Name
{{ $pet->sr_no }} {{ ucwords(strtolower($pet->partyname)) }} {{ $pet->sr_no_lrs }} {{ ucwords(strtolower($pet->partyname)) }}