{{ _trans('common.Month') }} : {{ @date('F', strtotime($data['salary']->date)).' '.@date('Y', strtotime($data['salary']->date)) }}

{{ _trans('common.Employee Details') }}

{{ _trans('common.Attendance Details') }}

{{ _trans('common.Deductions') }}

{{ _trans('common.Employee Name') }} {{ @$data['employee_info']->name }}
{{ _trans('common.Employee ID') }} {{ @$data['employee_info']->employee_id }}
{{ _trans('common.Department') }} {{ @$data['employee_info']->department->title }}
{{ _trans('common.Designation') }} {{ @$data['employee_info']->designation->title }}
{{ _trans('common.Joining Date') }} {{ ShowDate(@$data['employee_info']->joining_date) }}
{{ _trans('common.Total Present') }} {{ @$data['salary']->present ?? 0 }} {{ _trans('common.Days') }}
{{ _trans('common.Total Late') }} {{ @$data['salary']->late ?? 0 }} {{ _trans('common.Days') }}
{{ _trans('common.Total Early Leave') }} {{ @$data['salary']->left_early ?? 0 }} {{ _trans('common.Days') }}
{{-- Descuentos de Ley (ISSS, AFP, Renta) --}} @if (@$data['salary']->isss_amount > 0) @endif @if (@$data['salary']->afp_amount > 0) @endif @if (@$data['salary']->income_tax_amount > 0) @endif {{-- Otras deducciones --}} @if (@$data['salary']->deduction_details) @foreach (@$data['salary']->deduction_details as $key => $value) @endforeach @endif
ISSS (3%) {{ currency_format($data['salary']->isss_amount) }}
AFP (7.25%) {{ currency_format($data['salary']->afp_amount) }}
{{ _trans('payroll.Renta') }} ({{ _trans('payroll.Tramo') }} {{ $data['salary']->income_tax_bracket }}) {{ currency_format($data['salary']->income_tax_amount) }}
{{ @$value['name'] }} {{ currency_format($value['amount']) }}
{{ _trans('payroll.Absent') }} {{ currency_format(number_format(@$data['salary']->absent_amount, 2)) }}
{{ _trans('payroll.Advance') }} {{ currency_format($data['salary']->advance_amount) }}

{{ _trans('common.Total') }}

{{ currency_format(@$data['salary']->absent_amount + $data['salary']->deduction_amount + $data['salary']->isss_amount + $data['salary']->afp_amount + $data['salary']->income_tax_amount) }}

{{-- @dd('here') --}}

{{ _trans('payroll.Addition') }}

{{ _trans('common.Payment') }}

@if ($data['salary']->allowance_details != null) @forelse (@$data['salary']->allowance_details as $key => $value) @empty {{--

--- No Allowance ---

--}} @endforelse @endif
{{ _trans('payroll.Adjust Salary') }} {{ currency_format(number_format(@$data['salary']->adjust, 2)) }}
{{ @$value['name'] }} {{ currency_format($value['amount']) }}

{{ _trans('common.Total') }}

{{ currency_format(@$data['salary']->allowance_amount+$data['salary']->adjust) }}
@if(@$data['salary']->isss_amount > 0 || @$data['salary']->afp_amount > 0 || @$data['salary']->income_tax_amount > 0) @endif
{{ _trans('common.Gross Salary') }} {{ currency_format(@$data['salary']->employee->basic_salary) }}
{{ _trans('payroll.Descuentos de Ley') }} {{ currency_format(@$data['salary']->isss_amount + $data['salary']->afp_amount + $data['salary']->income_tax_amount) }}
{{ _trans('common.Total Deduction') }} {{ currency_format(@$data['salary']->absent_amount+$data['salary']->deduction_amount) }}
{{ _trans('common.Total Addition') }} {{ currency_format(@$data['salary']->allowance_amount+$data['salary']->adjust) }}
{{ _trans('common.Total Payable') }} {{ currency_format(number_format(@$data['salary']->net_salary, 2)) }}
{{ _trans('common.Total Paid') }} {{ currency_format(number_format(@$data['salary']->net_salary - $data['salary']->due_amount, 2)) }}
{{ _trans('common.Total Due') }} {{ currency_format(number_format($data['salary']->due_amount, 2)) }}