 <div class="table-responsive">
    <table id="example" class="table table-bordered align-middle" style="width:100%">
        <thead class="table-light">
            <tr>
                <th class="thbutton">Sl No</th>
                <th>Subject</th>
                <th>Description</th>
                <th>Scheduled Date</th>
                <th>Class</th>
                <th>Course</th>
                <th>Student</th>
                <th>Request Date</th>
                <th class="thbutton">Edit</th>
                <th class="thbutton">Delete</th>
            </tr>
        </thead>
        <tbody>
            @php $i=1; @endphp
            @if(count($doubt_sessions)>0)
                @foreach($doubt_sessions as $key=> $list)
                    <tr>
                        <td class="text-left">{!! $i++ !!}</td>
                        <td class="text-left">{!! $list->subject !!}</td>
                        <td class="text-left">{!! $list->description !!}</td>
                        <td class="text-left">{!! formatedDate($list->scheduled_date)  !!}</td>
                        <td class="text-left">{!! $list->class !!}</td>
                        <td class="text-left">{!! $list->course !!}</td>
                        <td class="text-left">{!! $list->student !!}</td>
                        <td class="text-left">{{ $list->created_at ? formatedDate($list->created_at) : 'N/A' }}</td>
                        <td class="thbutton">
                            <a data-id="{{ $list->id }}" class="btn btn-warning edit edit_doubt_sessions" type="button" data-bs-toggle="modal" data-bs-target="#commonModal" id="edit_doubt_sessions">
                                <i class="bi bi-pencil-square text-white"></i>
                            </a>
                        </td>
                        <td class="thbutton">
                            <a data-url="{{ route('doubt-sessions.destroy', $list->id) }}" class="btn btn-danger deleteDataCustom" class="text-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Delete">
                                <i class="bi bi-trash text-white"></i>
                            </a>
                        </td>
                    </tr>
                @endforeach
            @else
            <tr>
                <td colspan="13">No Data Found</td>
            </tr>
            @endif
        </tbody>
    </table>
</div>
<nav class="row align-items-center mt-3">
    <div class="col-md-10">
        {!! $doubt_sessions->onEachSide(0)->render('courses.pagination') !!}
    </div>
    <div class="col-lg-2 col-md-2 col-2 dataTables_length" id="example_length" style="text-align: right;">
        <i class="bi bi-funnel" style=" top: 11px;left: 20px;"></i>
        <select class="form-select sorting sorting-box" id="" name="example_length" aria-controls="example" style="padding-left: 30px;">
            <option value="10">Show: 10</option>
            <option value="30">Show: 30</option>
            <option value="50">Show: 50</option>
        </select>
    </div>
</nav>
</div>

