@php use App\Models\UserManagement\User;use Carbon\Carbon; @endphp @extends('layouts.frontend.master') @section('title', 'Committees - BAU 2001–2002 Alumni Association') @push('css') @endpush @section('content')

    Alumni Committees

    Join one of our specialized committees organized by focus areas. Each focus area contains dedicated committees that work together to achieve specific goals and initiatives.

    {{ $focusAreaInfos->count() }} Focus Areas
    @foreach($focusAreaInfos as $focusArea) @endforeach

    All Committees

    Explore all our committees organized by focus areas.

    @foreach($focusAreaInfos ?? [] as $focusArea)

    {{ $focusArea->name }}

    {{ $focusArea->description }}

    @foreach($focusArea->grouped_committee_members ?? [] as $group)

    {{ $group['committee_type']->name ?? 'No Name' }}

    Est. {{ $group['committee_type']->established_year ?? '-' }}

    {{ $group['committee_type']->description ?? '-' }}

    {{ count($group['members']) }} members
    @if(isset($group['committee_type']->schedule_type)) {{ config("services.schedule_type.{$group['committee_type']->schedule_type}") ?? '-' }} @endif

    Committee Chair:

    @if(isset($focusArea['committeeMembers']) && count($focusArea['committeeMembers'])) @foreach($focusArea['committeeMembers'] as $committeeMember) @php $displayName = ''; $memberType = $committeeMember['member_type'] ?? ''; if ( $memberType == \App\Models\CommitteeMember::POSITION_PRESIDENT && !empty($committeeMember['user_id']) && $committeeMember['committee_type_id'] == ($group['committee_type']->id ?? null) ) { $user = User::find($committeeMember['user_id']); $displayName = $user->name ?? ''; } @endphp @if($displayName)

    {{ $displayName }}

    @endif @endforeach @else

    No members found

    @endif

    Field of work:

    @foreach(json_decode($group['committee_type']->field_of_work ?? '[]') as $field)
    {{ $field }}
    @endforeach
    @endforeach
    @endforeach
    @foreach($focusAreaInfos ?? [] as $focusArea) @endforeach

    Ready to Get Involved?

    Join a committee today and make a lasting impact on your alma mater

    Contact any committee directly or reach out to our alumni relations team for guidance on finding the right fit.

    alumni-relations@university.edu
    @endsection @push('js') @endpush