@extends('layouts.backend') @section('content')

{{ __('Payslip Detail') }}

{{ __('Back') }}
@include('partials.flash')
{{ __('Employee:') }} {{ trim($item->employee?->first_name.' '.$item->employee?->last_name) }} ({{ $item->employee?->employee_code }})
{{ __('Department:') }} {{ $item->employee?->department?->name ?: '-' }}
{{ __('Period:') }} {{ $item->payrollRun?->period_label ?: '-' }}
{{ __('Basic Salary') }}{{ number_format((float)$item->basic_salary, 2) }}
{{ __('Allowance Total') }}{{ number_format((float)$item->allowance_total, 2) }}
{{ __('Bonus Total') }}{{ number_format((float)$item->bonus_total, 2) }}
{{ __('Loan Deduction') }}{{ number_format((float)$item->loan_deduction, 2) }}
{{ __('Other Deduction') }}{{ number_format((float)$item->other_deduction, 2) }}
{{ __('Employee PF Deduction') }}{{ number_format((float)$item->provident_fund_deduction, 2) }}
{{ __('Employer PF Contribution') }}{{ number_format((float)$item->employer_pf_contribution, 2) }}
{{ __('Tax Deduction') }}{{ number_format((float)$item->tax_deduction, 2) }}
{{ __('Total Deduction') }}{{ number_format((float)$item->total_deduction, 2) }}
{{ __('Net Payable') }}{{ number_format((float)$item->net_payable, 2) }}
{{ __('Deduction Breakdown') }}
@forelse($item->deductions as $deduction) @empty @endforelse
{{ __('Type') }}{{ __('Amount') }}{{ __('Reason') }}{{ __('Comments') }}
{{ $deduction->deduction_type }}{{ number_format((float)$deduction->amount, 2) }}{{ $deduction->reason ?: '-' }}{{ $deduction->comments ?: '-' }}
{{ __('No deduction breakdown found.') }}
@if($item->payrollRun?->status === 'draft')
{{ __('This payslip is part of a draft payroll run. Payment can be marked only after final submission.') }}
@elseif($item->payment_status !== 'paid')
@csrf @method('PATCH')
@endif
@endsection