|
Department
|
Tot. Emp
|
Days
|
@php $count = 1; @endphp
@foreach ($earningDerivedComponents as $component)
|
{{ $component->name }}
|
@php
if ($count % 5 === 0) {
echo ' ';
}
$count++;
@endphp
@endforeach
|
|
@php $count = 1; @endphp
@foreach ($deductionDerivedComponents as $component)
|
{{ $component->name }}
|
@php
if ($count % 5 === 0) {
echo ' ';
}
$count++;
@endphp
@endforeach
|
|
|
@php $count = 1; @endphp
@foreach ($additionalDerivedComponents as $component)
|
{{ $component->name }}
|
@php
if ($count % 1 === 0) {
echo ' ';
}
$count++;
@endphp
@endforeach
|
Net pay
|
{{-- Header End --}}
@php
$i = 0;
$count = 0;
$earnVal = 0;
$deductVal = 0;
@endphp
{{-- Footer Start --}}
@foreach ($departmentWiseSalaryData as $data)
@php
$pageBreak = '';
if ($i % 7 === 0) {
$pageBreak = 'page-break';
}
$i++;
@endphp
|
{{ $data['department_name'] }}
|
{{ $data['total_employee'] }}
|
{{ $data['total_pay_days'] }}
|
@php $count = 1; @endphp
@foreach ($earningDerivedComponents as $earningComponent)
@php
$val = $data['earning_type'][$earningComponent->id] ?? 0;
@endphp
|
{{ $val }}
|
@php
$earnVal += $val;
if ($count % 5 === 0) {
echo ' ';
}
$count++;
@endphp
@endforeach
|
{{ $earnVal }}
|
@php $count = 1; @endphp
@foreach ($deductionDerivedComponents as $deductionComponent)
@php
$val = $data['deduction_type'][$deductionComponent->id] ?? 0;
@endphp
|
{{ $val }}
|
@php
$deductVal += $val;
if ($count % 5 === 0) {
echo ' ';
}
$count++;
@endphp
@endforeach
|
{{ round($deductVal) }} |
{{ round($earnVal - $deductVal) }} |
@php $count = 1; @endphp
@foreach ($additionalDerivedComponents as $additionalComponent)
@php
$val = $data['additional_type'][$additionalComponent->id] ?? 0;
@endphp
|
{{ $val }}
|
@php
$deductVal += $val;
if ($count % 1 === 0) {
echo ' ';
}
$count++;
@endphp
@endforeach
|
{{ round($earnVal - $deductVal) }}
|
@endforeach
{{-- Footer End --}}