@lang('payroll::modules.payroll.earning')

{{ ($currency->currency ? $currency->currency->currency_symbol : company()->currency->currency_symbol ) }}
{{ ($currency->currency ? $currency->currency->currency_symbol : company()->currency->currency_symbol ) }}
@if (!is_null($salaryGroup)) @foreach ($salaryGroup->salary_group->components as $key => $value) @php $compValue = $employeeVariableSalaries->where('variable_component_id', $value->component->id)->first() ?? null; if($compValue){ $componentValue = $compValue->variable_value; } else{ $componentValue = $value->component->component_value; } @endphp
@if ($value->component->component_type == 'earning')
@if ($value->component->value_type == 'basic_percent') @else @endif
@if ($value->component->value_type == 'fixed') {{ ($currency->currency ? $currency->currency->currency_symbol : company()->currency->currency_symbol ) }} @elseif($value->component->value_type == 'percent') {{ ($currency->currency ? $currency->currency->currency_symbol : company()->currency->currency_symbol ) }} @elseif($value->component->value_type == 'basic_percent') {{ ($currency->currency ? $currency->currency->currency_symbol : company()->currency->currency_symbol ) }} @else
{{ ($currency->currency ? $currency->currency->currency_symbol : company()->currency->currency_symbol ) }}
@endif
@if ($value->component->value_type == 'fixed') {{ ($currency->currency ? $currency->currency->currency_symbol : company()->currency->currency_symbol )}} @elseif($value->component->value_type == 'percent') {{ ($currency->currency ? $currency->currency->currency_symbol : company()->currency->currency_symbol ) }} @elseif($value->component->value_type == 'basic_percent') {{ ($currency->currency ? $currency->currency->currency_symbol : company()->currency->currency_symbol ) }} @else
{{ ($currency->currency ? $currency->currency->currency_symbol : company()->currency->currency_symbol ) }}
@endif
@endif
@endforeach @endif

@lang('payroll::modules.payroll.extraPay')

@if ($fixedAllowance >= 0) @else @endif
@if ($fixedAllowance >= 0) @else @endif

@lang('payroll::modules.payroll.costToCompany')

{{ currency_format($annualSalary / 12, ($currency->currency ? $currency->currency->id : company()->currency->id )) }}

{{ currency_format($annualSalary, ($currency->currency ? $currency->currency->id : company()->currency->id )) }}

@if (!is_null($salaryGroup)) @if (count($salaryGroup->salary_group->components) > 0)

@lang('payroll::modules.payroll.deduction')

@endif @foreach ($salaryGroup->salary_group->components as $key => $value) @php $compValue = $employeeVariableSalaries->where('variable_component_id', $value->component->id)->first() ?? null; if($compValue){ $componentValue = $compValue->variable_value; } else{ $componentValue = $value->component->component_value; } @endphp
@if ($value->component->component_type == 'deduction')
@if ($value->component->value_type == 'basic_percent') @else @endif
@if ($value->component->value_type == 'fixed') {{ ($currency->currency ? $currency->currency->currency_symbol : company()->currency->currency_symbol ) }} @elseif($value->component->value_type == 'percent') {{ ($currency->currency ? $currency->currency->currency_symbol : company()->currency->currency_symbol ) }} @elseif($value->component->value_type == 'basic_percent') {{ ($currency->currency ? $currency->currency->currency_symbol : company()->currency->currency_symbol ) }} @else
{{ ($currency->currency ? $currency->currency->currency_symbol : company()->currency->currency_symbol ) }}
@endif
@if ($value->component->value_type == 'fixed') {{ ($currency->currency ? $currency->currency->currency_symbol : company()->currency->currency_symbol ) }} @elseif($value->component->value_type == 'percent') {{ ($currency->currency ? $currency->currency->currency_symbol : company()->currency->currency_symbol )}} @elseif($value->component->value_type == 'basic_percent') {{ ($currency->currency ? $currency->currency->currency_symbol : company()->currency->currency_symbol ) }} @else
{{ ($currency->currency ? $currency->currency->currency_symbol : company()->currency->currency_symbol ) }}
@endif
@endif
@endforeach @endif

@lang('app.total') @lang('payroll::modules.payroll.deduction')