@php $rand = 0; @endphp @if(isset($employee->employee_gpf_advance) && count($employee->employee_gpf_advance) > 0) @foreach($employee->employee_gpf_advance as $ega) @php $rand++; @endphp