@php use App\Enumerations\EfzStatus; @endphp
    <!DOCTYPE html>
<html>
<body>
<h1>Teilnahmebericht</h1>
<p>Für die Veranstaltung "{{$eventTitle}}" sind von eurem Stamm aktuell folgende Personen angemeldet:</p>


@foreach($participantGroups as $groupName => $participants)
    <h2>{{$groupName}}</h2>
    <table>
        <tr>
            <th style="padding: 8px 12px; width: 180px; font-weight: 600; color: #4b5563; border-bottom: 1px solid #e5e7eb;">
                Name
            </th>
            <th style="padding: 8px 12px; width: 180px; font-weight: 600; color: #4b5563; border-bottom: 1px solid #e5e7eb;">
                Zahlung noch offen
            </th>
            <th style="padding: 8px 12px; width: 180px; font-weight: 600; color: #4b5563; border-bottom: 1px solid #e5e7eb;">
                eFZ-Bestätigung ausstehend
            </th>
        </tr>

        @foreach($participants as $participant)
            <tr>
                <td style="padding: 8px 12px; border-bottom: 1px solid #e5e7eb;">{!! $participant['fullname'] !!}<br />Alter: {{$participant['age']}} Jahre</td>
                <td style="padding: 8px 12px; border-bottom: 1px solid #e5e7eb;">{{$participant['needs_payment'] ? 'Ja' : 'Nein'}}</td>
                <td style="padding: 8px 12px; border-bottom: 1px solid #e5e7eb;">{{in_array($participant['efz_status'], [
                            EfzStatus::EFZ_STATUS_CHECKED_VALID,
                            EfzStatus::EFZ_STATUS_NOT_REQUIRED
                            ]) ? 'Nein' : 'Ja'}}</td>
            </tr>
        @endforeach
    </table>
@endforeach
<br/><br/>
<p>
<hr/>
@include('emails.subparts.disclaimer_localgroups')
</p>
</body>
</html>
