@extends('layouts.master') @section('title', 'Salary components') @section('content')
Payroll

Salary components

Allowances and recurring deductions. Assign them per employee on the profile's Salary structure tab.
@can('Salary Components add')@endcan
@foreach ($components as $c) @endforeach
ComponentTypeDefaultEmployeesStatus
{{ $c->name }} {!! status_badge($c->type === 'allowance' ? 'active' : 'rejected') !!} {{ ucfirst($c->type) }} {{ $c->valueLabel() }} {{ $c->employees_count }} {!! status_badge($c->status) !!} @include('partials.row-actions', ['edit' => 'Salary Components edit', 'delete' => 'Salary Components delete', 'update' => route('salary-components.update', $c), 'destroy' => route('salary-components.destroy', $c), 'title' => 'Edit component', 'confirm' => 'Delete this component? It will be removed from every employee.', 'record' => rec($c, ['name', 'type', 'calculation', 'default_value', 'sort_order', 'status'])])
@include('partials.modal-open', ['title' => 'Add component'])
@include('partials.modal-close') @endsection