@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
Current Monthly Salary{{$gratuity->current_month_salary}}
Notice Pay{{$gratuity->notice_pay}}
GROSS PAY{{number_format($payslip->total_gross_salary, 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] }}
Other Additions- Gratuity {{ number_format($payslip->total_gratuity_amount, 2) }}
Other Additions- Leave Accrual {{ number_format($payslip->total_leave_accural_amount, 2) }}
Total Additions Amount{{number_format($payslip->total_addtional_amount+$payslip->total_gratuity_amount+$payslip->total_leave_accural_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