@extends('layouts.master')

@section('title')
تقارير عامة 
@endsection

@section('first-css')
@endsection

@section('content-body')
    <!--**********************************
                            Content body start
                        ***********************************-->
    @include('massages')
@section('route-path')
    <div class="container-fluid container-fluid-traning px-0">
        <div class="d-flex flex-wrap align-items-end justify-content-between  mb-3">
            <h1>
                تقارير عامة 
            </h1>
            <div class="link">
                <a href="" class="px-4 "  >تقارير عامة 

                </a>
            </div>
        </div>
    </div>
@endsection
<!-- row -->
<div class="container-fluid container-fluid-traning bg-white">
    <!--**********************************Tabs Start***********************************-->
    <!--**********************************Tabs End***********************************-->
    <div class="row">
        <div class="col-xl-12 tab-content">
            <!--**********************************Table AllTransaction Start***********************************-->

            <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_all',$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_all',$room->id)}}">عرض</a>
                                   </td>
            
                                </tr>
                            @endforeach
                        @endisset
                    </tbody>
                </table>
            </div>
            </div>
            <!--**********************************Table AllTransaction End***********************************-->
        </div>
    </div>
</div>

<!--**********************************
                     
    Content body end
***********************************-->
@endsection
@section('script')
@endsection
