<table>
    <thead>
    <tr>
        <th>Firstname</th>
        <th>Lastname</th>
        <th>Record_date</th>
        <th>Examination</th>
        <th>Type</th>
        <th>Doctor</th>
        <th>Attachments</th>
        <th>Remarks</th>
        <th>Created at</th>
        <th>Updated at</th>
    </tr>
    </thead>
    <tbody>
        @foreach($healthRecords as $healthRecord)
            <tr>
                <td>{{ $healthRecord->athlete->firstname }}</td>
                <td>{{ $healthRecord->athlete->lastname }}</td>
                <td>{{ $healthRecord->record_date }}</td>
                <td>{{ $healthRecord->examination }}</td>
                <td>{{ $healthRecord->type }}</td>
                <td>{{ $healthRecord->doctor }}</td>
                <td>{{ $healthRecord->attachments }}</td>
                <td>{{ $healthRecord->remarks }}</td>
                <td>{{ $healthRecord->created_at }}</td>
                <td>{{ $healthRecord->updated_at }}</td>
            </tr>
        @endforeach
    </tbody>
</table>
