@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $navGroups = \App\Support\Navigation\StudentNav::groups('course-registration'); $registeredOfferingIds = $registrations->pluck('course_offering_id'); @endphp

My Registrations

@forelse($registrations as $registration)
{{ $registration->courseOffering->subject->name }}
@empty

You haven't registered for any elective courses yet.

@endforelse

Available Electives

@forelse($electiveOfferings as $offering)

{{ $offering->subject->name }}

{{ $offering->section->label() }} ยท {{ $offering->teacher?->name ?? 'Unassigned' }}

@if($registeredOfferingIds->contains($offering->id)) Registered @else
@csrf
@endif
@empty

No elective courses available this session.

@endforelse