@php $i=1; foreach($get_pet_res 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" || $pet->sr_no_lrs == null){ @endphp @php }else{ @endphp @php } @endphp @php $i++; } @endphp
S.No. Name Select All
{{ $pet->sr_no }} {{ ucwords(strtolower($pet->partyname)) }}{{ $pet->sr_no_lrs }} {{ ucwords(strtolower($pet->partyname)) }}