{{ ($currency->currency ? $currency->currency->currency_symbol : company()->currency->currency_symbol ) }}
@lang('payroll::modules.payroll.salaryComponent')
@lang('payroll::modules.payroll.calculationType')
@lang('payroll::modules.payroll.monthlyAmount')
@lang('payroll::modules.payroll.annualAmount')

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

@if($employeeMonthlySalary->basic_value_type == 'fixed')
{{ ($currency->currency ? $currency->currency->currency_symbol : company()->currency->currency_symbol ) }}
{{ ($currency->currency ? $currency->currency->currency_symbol : company()->currency->currency_symbol ) }}
@else @php $basicSalary = ($employeeMonthlySalary->annual_salary / 12) / 100 * $employeeMonthlySalary->basic_salary; @endphp
{{ ($currency->currency ? $currency->currency->currency_symbol : company()->currency->currency_symbol ) }}
{{ ($currency->currency ? $currency->currency->currency_symbol : company()->currency->currency_symbol ) }}
@endif
@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($employeeMonthlySalary->annual_salary / 12, ($currency->currency ? $currency->currency->id : company()->currency->id )) }}

{{ currency_format($employeeMonthlySalary->annual_salary, ($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){ $componentValueDeduction = $compValue->variable_value; } else{ $componentValueDeduction = $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')

@lang('app.save') @lang('app.cancel')