@vite(['resources/css/app.css', 'resources/js/app.js']) {{-- Print & Close Buttons --}}
{{-- Pay Slip Card --}}
{{-- Header --}}

{{ $company ? $company->company_name : 'Company' }}

@if($company && $company->address)

{{ $company->address }}

@endif
PAY SLIP

For Month

{{ \Carbon\Carbon::parse($payslip->for_month)->format('F Y') }}

{{-- Employee Info --}}

Employee Name

{{ $payslip->employee->name }}

Employee Code

{{ $payslip->employee->employee_code ?? '—' }}

Department

{{ $payslip->employee->department->name ?? '—' }}

Designation

{{ $payslip->employee->designation->name ?? '—' }}

Branch

{{ $payslip->employee->branch->name ?? '—' }}

Bank Account

{{ $payslip->employee->bank_ac_number ?? '—' }}

PF No.

{{ $payslip->employee->salarySetup->pf_no ?? '—' }}

ESI No.

{{ $payslip->employee->salarySetup->esi_no ?? '—' }}

{{-- Attendance Summary --}}

Attendance Summary

Total Days

{{ $payslip->total_days }}

Present

{{ $payslip->present_days }}

Late

{{ $payslip->late_days }}

Payable Days

{{ $payslip->payable_days }}

{{-- Earnings & Deductions Table --}}
{{-- EARNINGS --}}

Earnings

@if($payslip->total_bonus > 0) @endif @if($payslip->ot_amount > 0) @endif
Component Amount (₹)
Basic Salary (Prorated) {{ number_format($payslip->basic_salary, 2) }}
Bonus @foreach($bonuses as $b) ({{ $b->bonus_name }}) @endforeach {{ number_format($payslip->total_bonus, 2) }}
OT ({{ $payslip->ot_hours }} hrs) {{ number_format($payslip->ot_amount, 2) }}
Gross Earnings {{ number_format($payslip->total_additions, 2) }}
{{-- DEDUCTIONS --}}

Deductions

@if($payslip->pf_amount > 0) @endif @if($payslip->esi_amount > 0) @endif @if($payslip->pt_amount > 0) @endif @if($payslip->tds_amount > 0) @endif @if($payslip->other_deductions > 0) @endif @if($payslip->total_deductions == 0) @endif
Component Amount (₹)
PF (Employee) {{ number_format($payslip->pf_amount, 2) }}
ESI (Employee) {{ number_format($payslip->esi_amount, 2) }}
Professional Tax {{ number_format($payslip->pt_amount, 2) }}
TDS {{ number_format($payslip->tds_amount, 2) }}
Other Deductions {{ number_format($payslip->other_deductions, 2) }}
No deductions
Total Deductions {{ number_format($payslip->total_deductions, 2) }}
{{-- Net Salary Banner --}}

Net Salary Payable

₹ {{ number_format($payslip->net_salary, 2) }}

{{ $payslip->status }}

Processed on {{ $payslip->updated_at->format('d M Y') }}

{{-- Footer --}}
This is a computer generated pay slip. No signature required. {{ $company ? $company->company_name : '' }} © {{ date('Y') }}