{{ __('app.hr.salary_structures.title') }}

{{ __('app.hr.salary_structures.desc') }}

@if ($notice) {{ $notice }} @endif @if ($errors->any())
    @foreach ($errors->all() as $message)
  • {{ $message }}
  • @endforeach
@endif @if ($showForm && $editingProfile)
{{ $editingProfile->user?->name }} · {{ $editingProfile->employee_no }}

{{ __('app.hr.salary_structures.component_items') }}

{{ __('app.hr.salary_structures.add_item') }}
@foreach ($items as $index => $item)
@foreach ($components as $component) @endforeach
{{ __('app.actions.remove') }}
@endforeach
{{ __('app.actions.cancel') }} {{ __('app.actions.save') }}
@endif
@forelse ($profiles as $profile) @php($structure = $profile->salaryStructure) @if ($structure) @else @endif @empty @endforelse
{{ __('app.hr.fields.employee') }} {{ __('app.hr.fields.basic_salary') }} {{ __('app.hr.salary_structures.allowances') }} {{ __('app.hr.payroll.deductions') }} {{ __('app.hr.salary_structures.gross') }} {{ __('app.hr.fields.effective_from') }} {{ __('app.actions.view') }}
{{ $profile->user?->name ?? '—' }} {{ $profile->employee_no }} {{ number_format((float) $structure->basic_salary, 2) }} {{ number_format($structure->allowanceTotal(), 2) }} {{ number_format($structure->deductionTotal(), 2) }} {{ number_format($structure->grossSalary(), 2) }} {{ $structure->effective_from?->translatedFormat('d M Y') }} @unless ($structure->is_active) {{ __('app.fees.status.inactive') }} @endunless — — — {{ __('app.hr.salary_structures.no_structure') }} —
@can('salary_structures.edit') {{ $structure ? __('app.actions.edit') : __('app.actions.create') }} @endcan @can('salary_structures.delete') @if ($structure && $structure->is_active) {{ __('app.hr.salary_structures.deactivate') }} @endif @endcan
@if ($profiles->hasPages())
{{ $profiles->links() }}
@endif