@php $applicantRepository = new \App\Repositories\RSP\ApplicantsRepository(new \App\Models\RSPModels\Applicant()); $qualifications = $data["qualifications"]; $position = $data["position"]["name"]; $education = $qualifications["education"]["description"]; $eligibility = $qualifications["eligibility"]["description"]; $experience = $qualifications["experience"]["description"]; $training = $qualifications["training"]["description"]; $screenings = $data["screenings"]; $ratings = $data["ratings"]; $applicants = $data["applicants_full"]; $app_eligs = $data["applicant_eligibility"]; $col_sub_headers = [ 'Degree', 'Pts', 'No. of
Years', 'Pts', 'Score', 'Pts', 'Sup. (5%)', 'NAPB (5%)', 'Score', 'Pts', 'Pts', 'Score', 'Pts', 'Score', 'Pts', '' ]; $col_potential_headers = [ 'Score', 'Pts', 'Score', 'Pts' ]; $col_sizes = [ 2, 2, 2, 4, 2, 1, 2, 2, 1 ]; $col_sizes_potential = [ 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1 ]; $row_sizes_potential = [ 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ]; $officename = null; $office_address = null; $email = null; $telephone = null; $voip = null; $included_logo = null; $logoPath = null; $parentLogo = null; if ($data['header']) { $officename = $data['header']['officename']; $office_address = $data['header']['office_address']; $email = $data['header']['email']; $telephone = $data['header']['telephone']; $voip = $data['header']['voip']; $included_logo = $data['header']['included_logo']; $logoPath = $data['header']['logo_path']; $parentLogo = $data['header']['parent_logo_path']; } $localVoip = ($voip) ? 'Local ' . $voip : ''; $logoPath = $data["logoPath"]; $parentLogoPath = $data["parentLogoPath"]; @endphp {{ $data["job_code"] }} - Assessment Summary
@if ($included_logo == 'higher' && $parentLogoPath) LOGO @endif @if ($included_logo && $logoPath) LOGO @endif
{{ strtoupper('Personnel Records And Performance Evaluation Office') }}
Visca, Baybay City, Leyte, 6521-A PHILIPPINES
Phone/Fax: +63 053 563 7323
Email: prpeo@vsu.edu.ph
Website: www.vsu.edu.ph

COMPARATIVE ASSESSMENT OF APPLICANTS

Position: {{ $position }}
Educ. Requirement: {{ $education }}
Elig. Requirement: {{ $eligibility }}
Exp./Training Requirement: {{ $experience . " / " . $training }}
@foreach ($screenings as $sckey => $screening) @endforeach @foreach ($col_sub_headers as $shkey => $sheader) @endforeach @foreach ($col_potential_headers as $pheader) @endforeach @php $ctr = 0; @endphp @for ($i = 0; $i < sizeof($applicants); $i++) @php ++$ctr; $sum = number_format(0, 2); @endphp @for ($jj = 0; $jj < sizeOf($ratings[$i]); $jj++) @endfor @endfor
NAME AGE ELIGIBILITY{{ strtoupper(trim($screening["screening"]["name"])) }}
({{ $screening["screening"]["max_score"] * 100 }}%)
TOTAL
{!! $sheader !!}
{!! $pheader !!}
{{ $ctr . ') ' . ucwords(mb_convert_case($applicants[$i]["fullname"], MB_CASE_LOWER, "UTF-8")) }} {{ $applicants[$i]["age"] }} {{ $app_eligs[$i] }} {{ $applicantRepository->manageReportDegreeName($applicants[$i]) }}{{ $ratings[$i][$jj]["rate"] }}
@php $memcommittee_size = sizeOf($data["recruit_personnel"]["members"]); $repcommittee_size = sizeOf($data["recruit_personnel"]["representative"]); $perRow = 5; $tempmemCommiteeSize = $memcommittee_size; $tempmemCommiteeSize += 1; $temprepCommiteeSize = $repcommittee_size; $temprepCommiteeSize += 1; $tempmemcount = $memcommittee_size - 1; $temprepscount = $repcommittee_size - 1; $tempmemrepsize = $tempmemCommiteeSize + $temprepCommiteeSize; $rowCount = ceil($tempmemrepsize / $perRow); $rolectr = 0; $namectr = 0; $dataArr = $data["recruit_personnel"]["members"]; $reps = $data['recruit_personnel']['representative']; @endphp @for($pc = 0; $pc < $rowCount; $pc++) @php if ($pc == 0) { $start = 0; $lengthh = 5; } else if ($pc > 0) { $start = ($pc * $perRow); $lengthh = 5; } $allarr = array_merge($dataArr, $reps); $arrr = array_slice($allarr, $start, $lengthh); $temp = $rowCount; $last = $temp - 1; @endphp @if(sizeof($arrr)) @php $tempSize = sizeof($arrr); @endphp @foreach($arrr as $keym => $ddc) @php $colss = 1; if ($keym == 0 && $pc == $last) { $colss = 3; } @endphp @if ($rolectr <= $tempmemcount) @else @endif @php $rolectr++; @endphp @endforeach @endif @if ($pc == $last) @php $colC = 1; if ($repcommittee_size < 1) { $colC = 3; } @endphp @endif @if(sizeof($arrr)) @php $tempSize = sizeof($arrr); @endphp @foreach($arrr as $keyme => $ddc) @php $cols = 1; if ($keyme == 0 && $pc == $last) { $cols = 3; } @endphp @if ($namectr <= $tempmemcount) @else @endif @php $namectr++; @endphp @endforeach @endif @if ($pc == $last) @php $colC = 1; if ($repcommittee_size < 1) { $colC = 3; } @endphp @endif @endfor