@extends('layouts.master')

@section('title')
    عرض الأسئلة
@endsection

@section('first-css')
@endsection


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

    <!-- row -->
@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">
        <h2>
            عرض اسئلة
            @isset($questions[0]->exam->room->name)
            {{$questions[0]->exam->room->name;}}
            @endisset
            @isset($questions[0]->exam->room->course->title)
            {{$questions[0]->exam->room->course->title;}}
            @endisset
        </h2>
        <div class="link">
            <span class="px-4"> عرض الإختبارات</span>
            <a href="" class="px-4 ">عرض الأسئلة</a>
        </div>
    </div>
</div>
@endsection
    <div class="container-fluid container-fluid-traning bg-white">
        <!--**********************************Tabs Start***********************************-->
        <div class="d-flex flex-wrap align-items-start justify-content-start  mb-3">
            
            <button type="button" class="btn btn-primary  me-1 addNewQuestion" data-bs-toggle="modal" data-bs-target="#addQuestion" 
           data-exam_id ="@isset($questions[0]->exam->room->name){{$questions[0]->exam_id;}}@endisset">
                <i class="mdi mdi-plus-circle ms-2"></i>اضافة سؤال جديد
            </button>
        </div>
        <!--**********************************Tabs End***********************************-->
        <div class="row">
            <div class="col-xl-12 tab-content">
                @include('questions.tables.all')
            </div>
        </div>
    </div>

    <!--**********************************
                        Content body end
            ***********************************-->

    @include('questions.modals.new')
    @include('questions.modals.update')
@endsection
@section('script')
<script src="{{ asset('/js/update/update-question.js') }}"></script>
<script src="{{ asset('/js/add-modal/question.js') }}"></script>
<script src="{{ asset('/js/exam/add-new-qution.js') }}"></script>

@endsection
