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

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

@can('salary_components.create') {{ __('app.hr.salary_components.create') }} @endcan
@if ($notice) {{ $notice }} @endif @if ($errors->any())
    @foreach ($errors->all() as $message)
  • {{ $message }}
  • @endforeach
@endif @if ($showForm)
@foreach ($types as $option) @endforeach
{{ __('app.actions.cancel') }} {{ __('app.actions.save') }}
@endif
@forelse ($components as $salaryComponent) @empty @endforelse
{{ __('app.hr.fields.code') }} {{ __('app.hr.fields.name_en') }} {{ __('app.hr.fields.component_type') }} {{ __('app.hr.salary_components.used') }} {{ __('app.hr.fields.status') }} {{ __('app.actions.view') }}
{{ $salaryComponent->code }} {{ $salaryComponent->localizedName() }} {{ $salaryComponent->description }} @if ($salaryComponent->type === \App\Enums\SalaryComponentType::Earning) {{ $salaryComponent->type->label() }} @else {{ $salaryComponent->type->label() }} @endif {{ $salaryComponent->structure_items_count }} @if ($salaryComponent->isArchived()) {{ __('app.fees.status.archived') }} @else {{ __('app.fees.status.active') }} @endif
@can('salary_components.edit') @if ($salaryComponent->isArchived()) {{ __('app.actions.restore') }} @else {{ __('app.actions.edit') }} @can('salary_components.delete') {{ __('app.actions.archive') }} @endcan @endif @endcan
@if ($components->hasPages())
{{ $components->links() }}
@endif