@extends('layouts.app') @section('title','Salary Components — '.$employee->full_name) @section('page-title','Payroll') @section('content')
{{ strtoupper(substr($employee->first_name,0,1).substr($employee->last_name,0,1)) }}
{{ $employee->full_name }}
{{ $employee->position }} · {{ $employee->department?->name ?? '—' }} · {{ $employee->employee_number }}
Base Salary
${{ number_format($employee->salary_usd ?? 0, 2) }}
@csrf
Component Values Leave blank or set to 0 to use the global default value for that component.
@foreach($components as $comp) @php $override = $overrides[$comp->id] ?? null; @endphp @endforeach
Component Type Taxable Global Default Employee Value Effective From Effective To
{{ $comp->name }}
{{ $comp->code }}
{{ ucfirst($comp->type) }} @if($comp->is_taxable) @else@endif {{ $comp->calculation_type==='percentage' ? $comp->default_value.'%' : '$'.number_format($comp->default_value,2) }} @if($comp->is_mandatory)Mandatory@endif
@endsection