@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
Reset
@if(count($repeatedProfiles) > 0)
@php $i = 1; @endphp @foreach($repeatedProfiles as $person) @endforeach
SI No. Beneficiary Name Project Code / Incharge Role
{{ $i++ }} {{ $person['name'] }}
{{ $profilesPaginator->links() }}
@else
No repeated profiles found.
@endif @endsection