<!--**********************************Table AllTransaction Start***********************************-->

<div class="tab-pane fade @if (Auth::user()->role == 0||Auth::user()->role == 3) show active @endif " id="wait-attendance" role="tabpanel"
    aria-labelledby="Wait-attendancw-tab">
    <div class="table-responsive fs-14">
        <table class="table card-table display mb-4 dataTablesCard text-black text-center" id="example4">
            <thead>
                <tr>
                    <th>رقم </th>
                    <th>العنوان</th>
                    <th>الوصف</th>
                    <th>الحالة</th>
                    <th>العمليات </th>
                </tr>
            </thead>
            <tbody>
                @isset($waitLessons)
                    @foreach ($waitLessons as $lesson)
                        <tr class="odd" role="row">
                            <td>
                                @isset($lesson)
                                    {{ $loop->iteration }}
                                @endisset
                            </td>
                            <td>
                                @isset($lesson->title)
                                    {{ $lesson->title }}
                                @endisset
                            </td>
                            <td>
                                @isset($lesson->description)
                                    {{ $lesson->description }}
                                @endisset
                            </td>
                            <td>
                                @isset($lesson->is_active)
                                    @if ($lesson->is_active == 1)
                                        <span class="badge badge-success light">نشط</span>
                                    @else
                                        <span class="badge badge-danger light">غير نشط</span>
                                    @endif
                                @endisset
                            </td>
                            <td>

                                <div class="dropdown dropstart">
                                    <a href="javascript:void(0);" class="btn-link" data-bs-toggle="dropdown"
                                        aria-expanded="false">
                                        <svg width="24" height="24" viewBox="0 0 24 24" fill="none"
                                            xmlns="http://www.w3.org/2000/svg">
                                            <path
                                                d="M12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z"
                                                stroke="#575757" stroke-width="2" stroke-linecap="round"
                                                stroke-linejoin="round"></path>
                                            <path
                                                d="M12 6C12.5523 6 13 5.55228 13 5C13 4.44772 12.5523 4 12 4C11.4477 4 11 4.44772 11 5C11 5.55228 11.4477 6 12 6Z"
                                                stroke="#575757" stroke-width="2" stroke-linecap="round"
                                                stroke-linejoin="round"></path>
                                            <path
                                                d="M12 20C12.5523 20 13 19.5523 13 19C13 18.4477 12.5523 18 12 18C11.4477 18 11 18.4477 11 19C11 19.5523 11.4477 20 12 20Z"
                                                stroke="#575757" stroke-width="2" stroke-linecap="round"
                                                stroke-linejoin="round"></path>
                                        </svg>
                                    </a>
                                    @if(Auth::user()->role==3 || Auth::user()->role==0  )
                                    <div class="dropdown-menu">
                                        <a class="dropdown-item"
                                            href="{{ route('attendances_crete', ['classRoomId' => $room->id, 'lessonId' => $lesson->id]) }}"><i
                                                class="fa fa-check-square-o ms-3 text-primary"></i>تحضير الطلاب
                                        </a>
                                    </div>
                                    @endif
                                </div>

                            </td>
                        </tr>
                    @endforeach
                @endisset
            </tbody>
        </table>
    </div>
</div>
<!--**********************************Table AllTransaction End***********************************-->
