@extends('layouts.app') @section('title', 'Salary Breakdown Details') @section('subtitle', 'View salary components and deductions for an employee') @section('content')
Back to Salary Breakdown
Edit Breakdown

Salary Breakdown Details

{{ $salaryBreakdown->is_active ? 'Active' : 'Inactive' }}

Employee Information

{{ $salaryBreakdown->user->initials }}

{{ $salaryBreakdown->user->full_name }}

Employee ID: {{ $salaryBreakdown->user->employee_id }}

Position: {{ $salaryBreakdown->user->position }}

Department: {{ $salaryBreakdown->user->department->name ?? 'N/A' }}

Basic Information

Basic Salary: TZS {{ number_format($salaryBreakdown->basic_salary, 0) }}
Hourly Rate: TZS {{ number_format($salaryBreakdown->calculateHourlyRate(), 2) }}
Working Days/Month: {{ $salaryBreakdown->working_days_per_month }}
Working Hours/Day: {{ $salaryBreakdown->working_hours_per_day }}
Overtime Multiplier: {{ $salaryBreakdown->overtime_rate_multiplier }}x
Effective Date: {{ $salaryBreakdown->effective_date->format('M d, Y') }}

Salary Breakdown

EARNINGS
Basic Salary: TZS {{ number_format($salaryBreakdown->basic_salary, 0) }}
@if($salaryBreakdown->bonus_amount > 0)
Bonus: TZS {{ number_format($salaryBreakdown->bonus_amount, 0) }}
@endif @if($salaryBreakdown->transport_allowance > 0)
Transport Allowance: TZS {{ number_format($salaryBreakdown->transport_allowance, 0) }}
@endif @if($salaryBreakdown->housing_allowance > 0)
Housing Allowance: TZS {{ number_format($salaryBreakdown->housing_allowance, 0) }}
@endif @if($salaryBreakdown->meal_allowance > 0)
Meal Allowance: TZS {{ number_format($salaryBreakdown->meal_allowance, 0) }}
@endif @if($salaryBreakdown->medical_allowance > 0)
Medical Allowance: TZS {{ number_format($salaryBreakdown->medical_allowance, 0) }}
@endif @if($salaryBreakdown->other_allowances > 0)
Other Allowances: TZS {{ number_format($salaryBreakdown->other_allowances, 0) }}
@endif
Total Allowances: TZS {{ number_format($salaryBreakdown->total_allowances, 0) }}
Gross Salary: TZS {{ number_format($salaryBreakdown->gross_salary, 0) }}
DEDUCTIONS
@if($salaryBreakdown->tax_rate > 0)
Tax ({{ $salaryBreakdown->tax_rate }}%): TZS {{ number_format($salaryBreakdown->basic_salary * ($salaryBreakdown->tax_rate / 100), 0) }}
@endif @if($salaryBreakdown->social_security_rate > 0)
Social Security ({{ $salaryBreakdown->social_security_rate }}%): TZS {{ number_format($salaryBreakdown->basic_salary * ($salaryBreakdown->social_security_rate / 100), 0) }}
@endif @if($salaryBreakdown->pension_rate > 0)
Pension ({{ $salaryBreakdown->pension_rate }}%): TZS {{ number_format($salaryBreakdown->basic_salary * ($salaryBreakdown->pension_rate / 100), 0) }}
@endif @if($salaryBreakdown->loan_deduction > 0)
Loan Deduction: TZS {{ number_format($salaryBreakdown->loan_deduction, 0) }}
@endif @if($salaryBreakdown->advance_deduction > 0)
Advance Deduction: TZS {{ number_format($salaryBreakdown->advance_deduction, 0) }}
@endif @if($salaryBreakdown->other_deductions > 0)
Other Deductions: TZS {{ number_format($salaryBreakdown->other_deductions, 0) }}
@endif
Total Deductions: TZS {{ number_format($salaryBreakdown->total_deductions, 0) }}
Net Salary: TZS {{ number_format($salaryBreakdown->net_salary, 0) }}

Overtime Calculation

Example: If employee works 5 hours overtime

Overtime Pay: TZS {{ number_format($salaryBreakdown->calculateOvertimePay(5), 0) }}

Calculation: 5 hours × TZS {{ number_format($salaryBreakdown->calculateHourlyRate(), 2) }} × {{ $salaryBreakdown->overtime_rate_multiplier }}x

@if($salaryBreakdown->notes)

Notes

{{ $salaryBreakdown->notes }}

@endif
@endsection