@extends('layouts.master')

@section('title')
    إدارة
    @isset($room->name)
        {{ $room->name }}
    @endisset
@endsection

@section('first-css')
@endsection

@section('content-body')
    <!--**********************************
                                Content body start
                            ***********************************-->
    @include('massages')

    <!-- row -->
    <div class="container-fluid container-fluid-traning bg-white">
        <!--**********************************Tabs Start***********************************-->
        <div class="d-flex flex-wrap align-items-center mb-3">
            @if (Auth::user()->role == 0)
            <div class="mb-3 ms-auto">
                <div class="card-tabs style-1 mt-3 mt-sm-0">
                    <ul class="nav nav-tabs" role="tablist">
                        <li class="nav-item">
                            <a class="nav-link @if (Auth::user()->role == 0) active @endif" href="javascript:void(0);" data-bs-toggle="tab" id="is-attendance-tab" data-bs-target="#is-attendance" role="tab">الدروس المنجزة</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link @if(Auth::user()->role == 1||Auth::user()->role == 3) active @endif " href="javascript:void(0);" data-bs-toggle="tab" id="Wait-attendancw-tab" data-bs-target="#wait-attendance" role="tab"> الدروس المتبقية</a>
                        </li>
                    </ul>
                </div>
            </div>
            @endif
            {{-- <button type="button" class="btn btn-secondary  me-1" data-bs-toggle="modal" data-bs-target="">
                <i class="mdi mdi-plus-circle ms-2"></i> الإختبارات
            </button>
            <button type="button" class="btn btn-primary  me-1" data-bs-toggle="modal" data-bs-target="">
                <i class="mdi mdi-plus-circle ms-2"></i>الإستبيانات
            </button> --}}
        </div>
        <!--**********************************Tabs End***********************************-->
        <div class="row">
            <div class="col-xl-12 tab-content">
                @if (Auth::user()->role == 0 || Auth::user()->role == 1)
                    @include('lessons.tables.is-attendance')
                @elseif(Auth::user()->role == 0 || Auth::user()->role == 3)
                    @include('lessons.tables.wait-attendance')
                @endif
            </div>
        </div>
    </div>

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