FEDERAL GOVERNMENT OF NIGERIA

EMPLOYEE PAYSLIP

{{strtoupper(substr(date('F', mktime(0, 0, 0, $payslip->month, 10)),0,3))}}-{{ $payslip->year }}

@php if (strlen($payslip->grade) > 4 && $payslip->grade[4] != '_') { // Insert underscore after the fourth character $modified_text = substr($payslip->grade, 0, 4) . '_' . substr($payslip->grade, 4); } else { // No modification needed $modified_text = $payslip->grade; } @endphp
IPPIS - Oracale E-Business Suite
@php $gross_earning = explode("\n",$payslip->gross_earning); $gross_deductions = explode("\n",$payslip->gross_deduction); $gEarn = 0; $netEarning = 0; @endphp @for( $k=0 ; $k < max(count($gross_deductions),count($gross_earning)); $k++) @php $e__ = isset($gross_earning[$k])?explode("\t",$gross_earning[$k]):''; $d__ = isset($gross_deductions[$k])?explode("\t",$gross_deductions[$k]):''; // echo json_encode($d__); try{ $gEarn .= $e__!=""?str_replace(' ',"_",str_replace(",","",$e__[1])):0;//).","; // $gDuct += $d__!=""?str_replace(' ',"",str_replace(",","",$d__[1])):0;//).","; }catch(\Exception $e){ continue; } // $gEarning = isset($gross_earning[$k])?$e__[1]:$gEarning; @endphp {{-- --}} @if($d__!='' && isset($d__[0])) @php $dect = trim($d__[0]); @endphp @if(str_contains($dect, 'Total') && strlen($dect)>5) @else @php if(!isset($d__[1])){ if (preg_match('/^(.*?)(\d{1,3}(,\d{3})*(\.\d+)?$)/', $d__[0], $matches)){ $description = trim($matches[1]); $amount = str_replace(',', '', $matches[2]); // Remove commas from the amount }else{ continue; } }else{ $description = $d__!='' && isset($d__[0])?$d__[0]:''; $amount = $d__!='' && isset($d__[1])?" ".$d__[1]:'' ; } @endphp {{-- --}} @if($description) @endif @endif @else @endif @endfor @php $gep = explode("\n",$payslip->gross_earning); @endphp
Employee Name: {{$payslip->employee}} Grade: {{$modified_text}}
IPPIS Number: {{$payslip->ippis_no}} Step: {{$payslip->step}}
Gender: {{$payslip->gender}}
Ministry: {{$payslip->mda}} Tax State: {{$payslip->tax_state}}
Division: {{$payslip->department}}
Designation: {{$payslip->rank}}
Location: {{$payslip->location}}
Date of First Appt: {{$payslip->dofa}}
Date of Birth: {{$payslip->dob}}
Trade Union: {{$payslip->tin}}

Bank Information Details

Contributory Pension Information

Bank Name: {{$payslip->bank}} PFA Name: {{$payslip->pfa}}
Account Number: {{($payslip->nuban)}} Pension PIN: {{$payslip->pen_no}}

Gross Earnings Information Gross Deductions Information
Earnings Amount Deductions Amount
{{$gDuct}}

{{ $e__!='' && isset($e__[0])?$e__[0]:'' }}

{{$e__!='' && isset($e__[1])?" ".$e__[1]:''}}

Total

{{ str_replace('Total','',$dect)}}{{ $d__!='' && isset($d__[1])?$d__[1]:'' }}

{{ $d__!='' && isset($d__[0])?$d__[0]:'' }}

{{ $d__!='' && isset($d__[1])?" ".$d__[1]:'' }}

{{ $description}}

{{ $amount}}

Summary of Payments

Total Gross Earnings:

{{ $gEarning }}

Total Gross Deductions:

{{ number_format(trim($payslip->deductions),2) }}

Total Net Earnings:

{{ $payslip->net_earning!=""?number_format(trim($payslip->net_earning),2):"" }}

Balances

Cummulative Tax Deduct
Cummulative Income
Cummulative Pension
Cummulative NHF
{{$payslip->cummulative_tax_deduction}}
{{$payslip->cummulative_income}}
{{$payslip->cummulative_pension}}
{{$payslip->cummulative_nhf}}