@php $rand = 0; @endphp @if(isset($employee->employee_promotion_higher_scale) && count($employee->employee_promotion_higher_scale) > 0) @foreach($employee->employee_promotion_higher_scale as $data) @if((int)$data->type == 1) @php $rand++; @endphp