Conditions
Create one or more scope rows. Leave this section empty to apply the rule to all employees in the selected module scope.
@foreach ($conditionRows as $index => $condition)
@php
$selectedValues = collect($condition['value'] ?? [])
->filter(function ($value) {
return $value !== null && $value !== '';
})
->map(function ($value) {
return (string) $value;
})
->values()
->all();
$selectedEmployeeType = (string) ($condition['employee_type'] ?? \App\Helpers\ConstantHelper::ALL);
$currentOptions = $fieldValueOptions[$condition['field'] ?? ''] ?? [];
@endphp
@endforeach