@yield('page_css') @foreach($payslip as $payslip)

Salary Slip for the Month of {{$payslip->month_year}}

Salary Slip

  • Salary Month: {{$payslip->month_year}}
  • Employee ID : {{$payslip->employee->employee_no}}
  • Employee Name : {{$payslip->employee->name}}   {{$payslip->employee->lname}}
  • Designation : {{$payslip->employee->designations->name}}
EMOLUMENTSQAR
Basic Pay{{$payslip->employee->employeePayrollInformation[0]->basic_salary}}
Transport Allowance{{$payslip->employee->employeePayrollInformation[0]->transport_allowance}}
Accomodation Allowance{{$payslip->employee->employeePayrollInformation[0]->accomodation_allowance}}
Continuous Allowance{{$payslip->employee->employeePayrollInformation[0]->continuous_allowance}}
Temporary Allowance{{$payslip->employee->employeePayrollInformation[0]->temp_allowance}}
Other Allowance {{$payslip->employee->employeePayrollInformation[0]->other_allowance}}
GROSS PAY{{number_format($payslip->employee->employeePayrollInformation[0]->gross_total, 2)}}
ADDITIONS &DEDUCTIONSQAR
@if($payslip->earning) @php $reasons = json_decode($payslip->earning->additional_reason); $amounts = json_decode($payslip->earning->additional_amount); @endphp @if (count($reasons) > 0 && count($amounts) > 0 && count($reasons) == count($amounts)) @for ($i = 0; $i < count($reasons); $i++) @endfor @endif @endif @if($payslip->deduction) @php $reasons = json_decode($payslip->deduction->deduction_reason); $amounts = json_decode($payslip->deduction->deduction_amount); @endphp @if (count($reasons) > 0 && count($amounts) > 0 && count($reasons) == count($amounts)) @for ($i = 0; $i < count($reasons); $i++) @endfor @endif @endif
Other Additions- {{ $reasons[$i] }} {{ $amounts[$i] }}
Total Additions Amount{{number_format($payslip->total_addtional_amount, 2)}}
Other Deduction- {{ $reasons[$i] }} {{ $amounts[$i] }}
Total Deductions Amount{{$payslip->total_deduction_amount}}
Leave Deductions Amount{{number_format($payslip->total_leave_deduction_amount, 2)}}
NET PAY{{number_format($payslip->net_salary, 2)}}
@endforeach