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

Employee Salary Slip

← Back
@if(isset($employee))
{{-- Header --}}
{{-- 🌟 Month Picker --}}
{{-- 🌟 Dynamic Payslip Header --}}
PAYSLIP FOR THE MONTH OF {{ $selectedMonth->format('F Y') }}

Turrant AMS

16 - Cerebrum IT Park B3, Pune | +91 923 1111 222
{{-- Employee Info --}}
Name: {{ $employee->name }}
Emp No: {{ $employee->employee_id }}
Payment Mode: Bank Transfer
Date of Joining: {{ \Carbon\Carbon::parse($employee->doj)->format('d-M-Y') }}
Bank Name: {{ $employee->bank_name }}
Designation: {{ $employee->designation->name }}
PAN No: {{ $employee->pan }}
PF No: {{ $employee->pf_no }}
Days Paid: {{ $daysPaid }}
LWP: {{ $employee->lwp }}
{{-- Monthly CTC Breakdown --}} @php $ctc_basic = $salary?->ctc ? round($salary->ctc / 12, 2) : 0; $ctc_hra = $salary?->hra ? round($salary->hra / 12, 2) : 0; $ctc_special = $salary?->special_allowance ? round($salary->special_allowance / 12, 2) : 0; $ctc_medical = $salary?->medical_allowance ? round($salary->medical_allowance / 12, 2) : 0; $ctc_total = $ctc_basic + $ctc_hra + $ctc_special + $ctc_medical; @endphp
Monthly Salary Details
Salary Rates (Rs) Earnings Current Month (Rs) Deductions (Rs)
CTC Basic {{ number_format($ctc_basic, 2) }} Basic Salary {{ number_format($employee->salary_basic, 2) }} PF Contribution {{ number_format($employee->ded_pf, 2) }}
CTC HRA {{ number_format($ctc_hra, 2) }} HRA {{ number_format($employee->salary_hra, 2) }} TDS {{ number_format($employee->ded_tds, 2) }}
CTC Special Allowance {{ number_format($ctc_special, 2) }} Special Allowance {{ number_format($employee->salary_special, 2) }}
CTC Medical {{ number_format($ctc_medical, 2) }} Medical Allowance {{ number_format($employee->salary_medical, 2) }}
Total {{ number_format($ctc_total, 2) }} Total {{ number_format($employee->salary_total, 2) }} Total {{ number_format($employee->ded_total, 2) }}
{{-- Annual Salary Details (always shown, defaults to 0 when no data) --}} {{--
Annual Salary Details
Annual Earnings / Deductions Investments Sec.10 Exempt / Perks Reimbursements till date
Projected Basic {{ number_format($employee->annualSalary->projected_basic ?? 0, 2) }} Ded u/s 80D {{ number_format($employee->annualSalary->ded_80d ?? 0, 2) }} HRA Received {{ number_format($employee->annualSalary->hra_received ?? 0, 2) }} Conveyance Expense {{ number_format($employee->annualSalary->conveyance_expense ?? 0, 2) }}
Projected HRA {{ number_format($employee->annualSalary->projected_hra ?? 0, 2) }} Ded 80DD {{ number_format($employee->annualSalary->ded_80dd ?? 0, 2) }} 50%/40% Basic {{ number_format($employee->annualSalary->basic_percent_50_40 ?? 0, 2) }} Cyber Expense {{ number_format($employee->annualSalary->cyber_expense ?? 0, 2) }}
Projected Special Allow {{ number_format($employee->annualSalary->projected_special_allow ?? 0, 2) }} Ded u/s 80U {{ number_format($employee->annualSalary->ded_80u ?? 0, 2) }} Rent Paid for Year {{ number_format($employee->annualSalary->rent_paid ?? 0, 2) }} Telephone Expense {{ number_format($employee->annualSalary->telephone_expense ?? 0, 2) }}
Projected Conv. {{ number_format($employee->annualSalary->projected_conveyance ?? 0, 2) }} Ded 80E {{ number_format($employee->annualSalary->ded_80e ?? 0, 2) }} 10% Basic {{ number_format($employee->annualSalary->basic_10_percent ?? 0, 2) }} Weekly Off {{ number_format($employee->annualSalary->weekly_off ?? 0, 2) }}
--}} {{-- Download Button --}}
@endif
@endsection