{{-- Partial: Tablas de ingresos y descuentos para un empleado --}} @php $employeeId = $employeeId ?? request('employee_id'); @endphp
{{-- ══════════ SECCIÓN INGRESOS ══════════ --}}
{{ _trans('payroll.Incomes') }}
@if (hasPermission('set_commission')) @endif
@forelse ($incomes ?? [] as $income) @empty @endforelse
{{ _trans('common.Type') }} {{ _trans('common.Amount') }} {{ _trans('payroll.Date From') }} {{ _trans('payroll.Date To') }} {{ _trans('payroll.Apply In') }} {{ _trans('payroll.Reference Number') }} {{ _trans('common.Status') }} {{ _trans('common.Action') }}
{{ @$income->commission->name }} @if ($income->amount_type == 2) {{ $income->amount }}% @else ${{ number_format($income->amount, 2) }} @endif {{ $income->date_from ? $income->date_from->format('d/m/Y') : '—' }} {{ $income->date_to ? $income->date_to->format('d/m/Y') : '—' }} {{ $income->fortnight_label }} {{ $income->reference_number ?: '—' }} {{ $income->status_id == 1 ? _trans('payroll.Active') : _trans('payroll.Inactive') }}
@if (hasPermission('set_commission')) @endif
{{ _trans('payroll.No adjustments found') }}
{{-- ══════════ SECCIÓN DESCUENTOS ══════════ --}}
{{ _trans('payroll.Deductions') }}
@if (hasPermission('set_commission')) @endif
@forelse ($deductions ?? [] as $deduction) @empty @endforelse
{{ _trans('common.Type') }} {{ _trans('common.Amount') }} {{ _trans('payroll.Date From') }} {{ _trans('payroll.Date To') }} {{ _trans('payroll.Apply In') }} {{ _trans('payroll.Reference Number') }} {{ _trans('common.Status') }} {{ _trans('common.Action') }}
{{ @$deduction->commission->name }} @if ($deduction->amount_type == 2) {{ $deduction->amount }}% @else ${{ number_format($deduction->amount, 2) }} @endif {{ $deduction->date_from ? $deduction->date_from->format('d/m/Y') : '—' }} {{ $deduction->date_to ? $deduction->date_to->format('d/m/Y') : '—' }} {{ $deduction->fortnight_label }} {{ $deduction->reference_number ?: '—' }} {{ $deduction->status_id == 1 ? _trans('payroll.Active') : _trans('payroll.Inactive') }}
@if (hasPermission('set_commission')) @endif
{{ _trans('payroll.No adjustments found') }}