@extends('layouts.app') @section('title', 'Salary Components') @section('breadcrumbs') @endsection @section('content')
{{-- Header --}}

Salary Components

Global salary structure templates for all companies

Add Component
{{-- Tabs --}}
{{-- Earnings Table --}}

Earning Components

@if($earnings->isEmpty())

No earning components

Create your first earning component to get started.

@else
@foreach($earnings as $comp) @endforeach
Name Code Calculation Part of Gross Taxable Status Actions
{{ $comp->name }} {{ $comp->code }} {{ ucfirst($comp->calculation_type) }} @if($comp->calculation_type === 'percentage') of {{ $comp->percentage_of }} @endif {!! $comp->is_part_of_gross ? 'Yes' : 'No' !!} {!! $comp->is_taxable ? 'Yes' : 'No' !!} {{ $comp->is_active ? 'Active' : 'Inactive' }}
@endif
{{-- Deductions Table --}}

Deduction Components

@if($deductions->isEmpty())

No deduction components

Create your first deduction component.

@else
@foreach($deductions as $comp) @endforeach
Name Code Calculation Taxable Status Actions
{{ $comp->name }} {{ $comp->code }} {{ ucfirst($comp->calculation_type) }} @if($comp->calculation_type === 'percentage') of {{ $comp->percentage_of }} @endif {!! $comp->is_taxable ? 'Yes' : 'No' !!} {{ $comp->is_active ? 'Active' : 'Inactive' }}
@endif
@endsection