@extends('admin.master') @section('content') @section('title','Employee Payslip')
Employee Payslip

Salary sheet/ Final Balance

@if(nCount($salaryDetailsToAllowance) > 0) @foreach($salaryDetailsToAllowance as $allowance) @endforeach @endif @php $companyTaxDeduction = 0; $companyTaxDeduction = ($salaryDetails->tax * 70) / 100; $employeeTaxDeduction = 0; $employeeTaxDeduction = ($salaryDetails->tax * 30) / 100; @endphp @if(nCount($salaryDetailsToDeduction) > 0) @foreach($salaryDetailsToDeduction as $deduction) @endforeach @endif @if($salaryDetails->total_late_amount !=0) @endif @if($salaryDetails->total_absence_amount !=0) @endif @if($salaryDetails->total_overtime_amount != 0) @endif
Name : {{$salaryDetails->first_name}} {{$salaryDetails->last_name}}
Department : {{$salaryDetails->department_name}}
Designation : {{$salaryDetails->designation_name}}
Joining Date : {{date(" d-M-Y", strtotime($salaryDetails->date_of_joining))}}
Basic salary of the month : {{number_format($salaryDetails->basic_salary)}}
{{$allowance->allowance_name}}: {{number_format($allowance->amount_of_allowance)}}
Net salary : {{number_format($salaryDetails->net_salary)}}
Taxable salary : {{number_format($salaryDetails->taxable_salary)}}
Income tax to pay for the month : {{number_format($salaryDetails->tax)}}
Company tax deduction : {{number_format(round($companyTaxDeduction))}}
Employee tax payable: {{number_format(round($employeeTaxDeduction))}}
{{$deduction->deduction_name}} : {{number_format($deduction->amount_of_deduction)}}
Late Amount : {{number_format($salaryDetails->total_late_amount)}}
Absence Amount : {{number_format($salaryDetails->total_absence_amount)}}
Over Time : {{number_format($salaryDetails->total_overtime_amount)}}
Net salary to be paid : {{number_format($salaryDetails->gross_salary)}}
Total income tax deducted for the financial year : {{number_format($financialYearTax->totalTax)}}
@if($salaryDetails->total_late !=0) @endif @if($salaryDetails->total_overtime_amount !=0) @endif @if(nCount($salaryDetailsToLeave) > 0) @foreach($salaryDetailsToLeave as $leaveRecord) @endforeach @endif
No. : 1
Month : {{convartMonthAndYearToWord($salaryDetails->month_of_salary)}}
Date : {{date(" d-M-Y", strtotime(date('Y-m-d')))}}
Number of working days : {{$salaryDetails->total_working_days}}
Number of day worked in the month : {{$salaryDetails->total_present}}
Unjustified absence : {{$salaryDetails->total_absence}}
Per day salary : {{number_format($salaryDetails->per_day_salary)}}
Salary deduction for late attendance : {{$salaryDetails->total_late}}
Over Time : {{$salaryDetails->total_over_time_hour}}
Over Rate : {{$salaryDetails->overtime_rate}}
{{$leaveRecord->leave_type_name}} : {{$leaveRecord->num_of_day}}

Administrator signature ....

Date ....

Employee signature ....

@endsection