@extends('layouts.page')
@section('title')
@section('content')
Beneficiary Repeated in Different Projects
@php
// Define common roles for all project types
$commonRoles = [
'change_ft' => 'Facilitator',
'change_ci' => 'Center Incharge',
'change_si' => 'SS Center Incharge',
];
// Define incharge roles per project type, merging common roles
$inchargeTypes = [
'ict' => array_merge([
'project_incharge' => 'Facilitator',
'center_incharge' => 'Student',
'ss_center_incharge' => 'SS Student',
'tutor' => 'Tutor',
], $commonRoles),
'al' => array_merge([
'project_incharge' => 'Facilitator',
'center_incharge' => 'Assistant',
'ss_center_incharge' => 'SS Assistant',
], $commonRoles),
'asc' => array_merge([
'project_incharge' => 'Facilitator',
'center_incharge' => 'Club Leader',
'ss_center_incharge' => 'SS Club Leader',
], $commonRoles),
'cdp_ttp' => array_merge([
'project_incharge' => 'Facilitator',
], $commonRoles),
'leap' => array_merge([
'project_incharge' => 'Facilitator',
'center_incharge' => 'Lay Leader',
], $commonRoles),
'wep' => array_merge([
'project_incharge' => 'Facilitator',
'center_incharge' => 'WE LEAP Leader',
], $commonRoles),
];
@endphp
@if(count($repeatedProfiles) > 0)
| SI No. |
Beneficiary Name |
Project Code / Incharge Role |
@php $i = 1; @endphp
@foreach($repeatedProfiles as $person)
| {{ $i++ }} |
{{ $person['name'] }} |
|
@endforeach
{{ $profilesPaginator->links() }}
@else
No repeated profiles found.
@endif
@endsection