{{-- Pksf Rows --}}
@php
$pksfLoopCounter = 0;
@endphp
@foreach ($d->pksf as $item)
@php
$pksfLoopCounter = ++$loop->index;
@endphp
| {{ $pksfLoopCounter }} |
{{ $item->emp_name_english }} |
@php
$position = $d->position->find($item->position_id_fk);
if($position) {
echo $position->name;
}
@endphp
|
{{ $item->emp_id }} |
@php
$branch = $d->branch->find($item->branch_id_fk);
if($branch) {
echo $branch->name;
}
@endphp
|
{{ date('d-m-Y',strtotime($item->terminate_resignation_date)) }} |
@php
$projectType = $d->projectType->find($item->project_type_id_fk);
if($projectType) {
echo $projectType->name;
}
@endphp
|
1 |
@endforeach
|
Sub Total [ PKSF ] |
{{$pksfLoopCounter}} |
| "" |
{{--Non Pksf Rows --}}
@php
$nonPksfLoopCounter = 0;
@endphp
@foreach ($d->nonPksf as $item)
@php
$nonPksfLoopCounter = ++$loop->index;
@endphp
| {{ $nonPksfLoopCounter }} |
{{ $item->emp_name_english }} |
@php
$position = $d->position->find($item->position_id_fk);
if($position) {
echo $position->name;
}
@endphp
|
{{ $item->emp_id }} |
@php
$branch = $d->branch->find($item->branch_id_fk);
if($branch) {
echo $branch->name;
}
@endphp
|
{{ date('d-m-Y',strtotime($item->terminate_resignation_date)) }} |
@php
$projectType = $d->projectType->find($item->project_type_id_fk);
if($projectType) {
echo $projectType->name;
}
@endphp
|
1 |
@endforeach
|
Sub Total [ Non PKSF ] |
{{$nonPksfLoopCounter}} |
|
Total MFP |
{{ $pksfLoopCounter + $nonPksfLoopCounter }} |
| "" |
{{-- Other Rows --}}
@php
$otherLoopCounter = 0;
@endphp
@foreach ($d->other as $item)
@php
if($item == null) {
continue;
}
$otherLoopCounter = ++$loop->index;
@endphp
| {{ $otherLoopCounter }} |
{{ $item->emp_name_english }} |
@php
$position = $d->position->find($item->position_id_fk);
if($position) {
echo $position->name;
}
@endphp
|
{{ $item->emp_id }} |
@php
$branch = $d->branch->find($item->branch_id_fk);
if($branch) {
echo $branch->name;
}
@endphp
|
{{ date('d-m-Y',strtotime($item->terminate_resignation_date)) }} |
@php
$projectType = $d->projectType->find($item->project_type_id_fk);
if($projectType) {
echo $projectType->name;
}
@endphp
|
1 |
@endforeach
|
Sub Total [ Other ] |
{{$otherLoopCounter}} |
|
Grand Total |
{{ $otherLoopCounter + $pksfLoopCounter + $nonPksfLoopCounter }} |