@extends('layouts.app') @section('title', 'Payroll Details') @section('subtitle', 'View payroll information and download receipt') @section('content')
Back to Payroll
Edit Payroll Download Receipt @if($payroll->status !== 'paid') @endif

Payroll Details

{{ ucfirst($payroll->status) }}

Employee Information

{{ $payroll->user->initials }}

{{ $payroll->user->full_name }}

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

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

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

Payroll Information

Period: {{ $payroll->formatted_period }}
Payroll Date: {{ $payroll->payroll_date->format('M d, Y') }}
Working Days: {{ $payroll->working_days }}
Days Worked: {{ $payroll->days_worked }}
@if($payroll->hourly_rate)
Hourly Rate: TZS {{ number_format($payroll->hourly_rate, 2) }}
@endif @if($payroll->overtime_hours)
Overtime Hours: {{ $payroll->overtime_hours }}
@endif

Salary Breakdown

Earnings
Basic Salary: TZS {{ number_format($payroll->basic_salary, 0) }}
@if($payroll->overtime_pay > 0)
Overtime Pay: TZS {{ number_format($payroll->overtime_pay, 0) }}
@endif @if($payroll->bonus > 0)
Bonus: TZS {{ number_format($payroll->bonus, 0) }}
@endif @if($payroll->allowances > 0)
Allowances: TZS {{ number_format($payroll->allowances, 0) }}
@endif @if($payroll->advance_salary > 0)
Advance Salary: TZS {{ number_format($payroll->advance_salary, 0) }}
@endif
Gross Salary: TZS {{ number_format($payroll->gross_salary, 0) }}
Deductions
@if($payroll->tax_deduction > 0)
Tax Deduction: TZS {{ number_format($payroll->tax_deduction, 0) }}
@endif @if($payroll->social_security > 0)
Social Security: TZS {{ number_format($payroll->social_security, 0) }}
@endif @if($payroll->pension_contribution > 0)
Pension Contribution: TZS {{ number_format($payroll->pension_contribution, 0) }}
@endif @if($payroll->other_deductions > 0)
Other Deductions: TZS {{ number_format($payroll->other_deductions, 0) }}
@endif
Total Deductions: TZS {{ number_format($payroll->total_deductions, 0) }}
Net Salary: TZS {{ number_format($payroll->net_salary, 0) }}
@if($payroll->status === 'paid')

Payment Information

Payment Method: {{ $payroll->payment_method }}
Paid Date: {{ $payroll->paid_at->format('M d, Y H:i') }}
@if($payroll->transaction_reference)
Transaction Reference: {{ $payroll->transaction_reference }}
@endif
@endif @if($payroll->notes)

Notes

{{ $payroll->notes }}

@endif
@endsection