<div class="tab-pane fade show active" id="AllTransaction" role="tabpanel"
aria-labelledby="transaction-tab">
<div class="table-responsive fs-14">
    <table class="table card-table display mb-4 dataTablesCard text-black text-center" id="example">
        <thead>
            <tr>
                <th>رقم </th>
                <th>البرنامج </th>
                <th>عدد الطلاب</th>
               <th>التقرير</th>

            </tr>
        </thead>
        <tbody>
            @isset($rooms)
                @foreach ($rooms as $room)
                    <tr class="odd" role="row">
                        <td>
                            @isset($room)
                                {{ $loop->iteration }}
                            @endisset
                        </td>
                        <td>
                            <a href="{{route('report_evaluation',$room->id)}}">
                            @isset($room->name)
                                {{ $room->name }}
                                {{ $room->course->title }}
                            @endisset
                            </a>
                        </td>

                        <td>
                            @isset($room->studentsCount)
                                {{ $room->studentsCount }}
                            @endisset
                        </td>

                       <td>
                          <a href="{{route('report_evaluation',$room->id)}}">عرض</a>
                       </td>

                    </tr>
                @endforeach
            @endisset
        </tbody>
    </table>
</div>
</div>