@php ini_set("pcre.backtrack_limit", "5000000"); $list = $data['list']; $counter = 0; $aca = 0.00; $pera = 0.00; $index = 0; $monthlyNetpay = 0.00; $element = []; @endphp
Visayas State University
{{ $campus_address }}


MONTHLY PAYMENT SLIP

For the month of {{$data['date']}}
@foreach($list as $key =>$employee) @foreach ($employee as $num => $element)
NAME OF EMPLOYEE {{ $element['person']['person_info']['fullname'] }}
POSITION {{ $element['person']['service_record']['position']['name'] }}
DEPARTMENT {{ $element['person']['person_info']['department']['fullname'] }}

*** EARNINGS *** @foreach($element['benefits'] as $benefits) @if($benefits->ref_benefit->id == 1 || $benefits->ref_benefit->id == 2) @endif @endforeach
Basic Salary {{-- {{ number_format((float)$element['person']['salary'], 2, '.', ',') }}--}} {{ number_format((float)$element['salary'], 2, '.', ',') }}
Salary Differential 0.00
{{ $benefits->ref_benefit->desc }} {{ number_format((float)$benefits->amount, 2, '.', ',') }}
TOTAL EARNINGS {{ number_format((float)($element['salary'] + $element['ben_total']), 2, '.', ',') }}

*** DEDUCTION *** @foreach($element['deduction'] as $listDeduction) @php $list_deduction = json_decode($listDeduction); if ($list_deduction->deduction_details->emp_deduction->active) { $desc = $list_deduction->deduction_details->emp_deduction->ref_deduction->desc @endphp {{----}} @php } @endphp @endforeach
{{ $list_deduction->deduction_details->emp_deduction->ref_deduction->desc }} {{ number_format((float)$list_deduction->amount, 2, '.', ',') }} {{ number_format((float)$list_deduction->amount, 2, '.', ',') }}
TOTAL DEDUCTION {{ number_format((float)$element['total'], 2, '.', ',') }}

NET PAY @php $newnetpay = (($element['salary'] + $element['ben_total'])-$element['total']); if ($data['payroll_scope'] === "full_month") { $monthlyNetpay =$newnetpay; } @endphp {{ number_format((float)$monthlyNetpay, 2, '.', ',') }}
{{ strtoupper($data['signatory'][1]['fullname']) }}
{{ $data['signatory'][1]['label'] }}
*** This is a computer generated document, signature is not required ***
@php $counter = $counter + 1; @endphp @if($data['total_number'] != $counter) @endif @endforeach @endforeach