@extends('layouts.cork') @section('title', $title) @section('page-css') @endsection @section('content')
@csrf

Students

@foreach ($enrollments as $e) @endforeach
Name School Email Sent?
{{ $e->student->first_name }} {{ $e->student->last_name }} {{ $e->student->school->name }} {{ $e->student->email }} @if ($e->sent_welcome_letter) Yes @else No @endif
⚠️ Warning: Facilitator bulk send functionality is currently in testing. Please use with caution.

Facilitators

@php $groupedFacilitators = $facilitators->groupBy('school_name'); @endphp @foreach ($groupedFacilitators as $schoolName => $schoolFacilitators) @endforeach
School Facilitators Sent?
{{-- Change checkbox to include all facilitator IDs for this school --}} @foreach ($schoolFacilitators as $f) @endforeach {{-- This is the visible checkbox that controls the hidden ones --}} {{ $schoolName }}
    @foreach ($schoolFacilitators as $f)
  • {{ $f->first_name }} {{ $f->last_name }} {{ $f->email }}
  • @endforeach
@if ($schoolFacilitators->first()->sent_copy) Yes @else No @endif
@endsection @section('page-js') @endsection