<?php 
if($data_type==1){
?>
  <div class="card">
    <div class="card-header center-header pt-5">
      <select name="data_type" id="data_type" class="custom-text-select">
        <option value="1" selected>Package</option>
        <option value="2">Practice Sets</option>
        <option value="3">Quizzes</option>
      </select>
      <div class="filter-group">
          <select class="form-control search_filter" id="package_examtype_filter" name="examtype_filter">
            @if(!$examType->isEmpty())
              <option value="" selected>All Exam</option>
              @foreach($examType as $types)
                <option value="{{$types->id}}" @if(request()->post('examtype_filter') == $types->id){{'selected'}}@endif>{{$types->exam_type}}</option>
              @endforeach
            @else
              <option value="" selected>All Exam</option>
            @endif
          </select>
          <select class="form-control search_filter" id="package_status_filter" name="status_filter">
              <option value="" selected>Status</option>
              <option value="1" @if(request()->post('status_filter') == 1){{'selected'}} @endif>Under Process</option> 
              <option value="2" @if(request()->post('status_filter') == 2){{'selected'}} @endif>Completed</option> 
              <option value="3" @if(request()->post('status_filter') == 3){{'selected'}} @endif>In Review</option> 
              <option value="4" @if(request()->post('status_filter') == 4){{'selected'}} @endif>Declined</option> 
              <option value="5" @if(request()->post('status_filter') == 5){{'selected'}} @endif>On Sale</option> 
              <option value="6" @if(request()->post('status_filter') == 6){{'selected'}} @endif>Expired</option> 
          </select>
      </div>
    </div>
    <div class="card-body pt-0">
      <p class="text-right font-bold total_no_test_count">Total No of Package(s): 0</p>
      <div class="table-responsive">
          <table
              id="test-package-manager"
              class="table card-table dataTable table-vcenter text-nowrap"
          >
            <thead>
              <tr>
                <th>
                  Package Name
                </th>
                <th>Exam Type</th>
                <th>Test Type</th>
                <th>No Of Test</th>
                <th>Validity</th>
                <th>Price</th>
                <th>Status</th> 
                <th>Action</th>
              </tr>
            </thead>
          </table>
      </div>
    </div>
  </div>
<?php
}else if($data_type==2){
?>
  <div class="card">
    <div class="card-header center-header pt-5">
      <select name="data_type" id="data_type" class="custom-text-select">
        <option value="1" >Package</option>
        <option value="2" selected>Practice Sets</option>
        <option value="3">Quizzes</option>
      </select>
      <div class="filter-group">
            <select class="form-control search_filter" id="practice_status_filter" name="status_filter">
              <option value="" >Select Status</option>
              <option value="1"  @if(request()->post('status_filter') == 1){{'selected'}}@endif>Under Progress</option>
              <option value="2" @if(request()->post('status_filter') == 2){{'selected'}}@endif>Completed</option>
              <option value="3"  @if(request()->post('status_filter') == 3){{'selected'}}@endif>In Review</option>
              <option value="4"  @if(request()->post('status_filter') == 4){{'selected'}}@endif>Declined</option>
            </select>
            <select class="form-control search_filter" id="practice_examtype_filter" name="examtype_filter">
              <option value="" >Exam Type</option>
              @if(!$examType->isEmpty())
                @foreach($examType as $types)
                    <option value="{{$types->id}}"  @if(request()->post('examtype_filter') == $types->id){{'selected'}}@endif>{{$types->exam_type}}</option>
                @endforeach
              @endif
            </select>
            <select class="form-control search_filter" id="practice_diff_filter" name="diff_filter">
              <option value="" >Difficulty Level</option>
              <option value="1"  @if(request()->post('diff_filter') == 1){{'selected'}}@endif>Easy</option>
              <option value="2"  @if(request()->post('diff_filter') == 2){{'selected'}}@endif>Mediium</option>
              <option value="3" @if(request()->post('diff_filter') == 3){{'selected'}}@endif >Hard</option>
            </select>
      </div>
    </div>
    <div class="card-body pt-0">
      <!-- <p class="text-right font-bold">Total No of Test: 456</p> -->
      <div class="table-responsive">
          <table
          id="practice-set-manager"
          class="table card-table dataTable table-hover table-vcenter text-nowrap"
          >
          <thead>
            <tr>
              <th>Practice Sets</th>
              <th>Exam Type</th>
              <th>Total Subject</th>
              <th>Total Chapter</th>
              <th>Total Question</th>
              <th>Status</th>
              <th>Action</th>
            </tr>
          </thead>
          </table>
      </div>
    </div>
  </div>
<?php
}else if($data_type==3){
?>
  <div class="card">
    <div class="card-header center-header pt-5">
      <select name="data_type" id="data_type" class="custom-text-select">
        <option value="1">Package</option>
        <option value="2">Practice Sets</option>
        <option value="3" selected>Quizzes</option>
      </select>
      <div class="filter-group">
          <select class="form-control search_filter" id="quiz_status_filter" name="status_filter">
              <option value="" >Select Status</option>
              <option value="1"  @if(request()->post('status_filter') == 1){{'selected'}}@endif>Under Progress</option>
              <option value="2" @if(request()->post('status_filter') == 2){{'selected'}}@endif>Completed</option>
              <option value="3"  @if(request()->post('status_filter') == 3){{'selected'}}@endif>In Review</option>
              <option value="4"  @if(request()->post('status_filter') == 4){{'selected'}}@endif>Declined</option>
          </select>
          <select class="form-control search_filter" id="quiz_examtype_filter" name="examtype_filter">
            <option value="" >Exam Type</option>
            @if(!$examType->isEmpty())
              @foreach($examType as $types)
                  <option value="{{$types->id}}"  @if(request()->post('examtype_filter') == $types->id){{'selected'}}@endif>{{$types->exam_type}}</option>
              @endforeach
            @endif
          </select>
          <select class="form-control search_filter" id="quiz_diff_filter" name="diff_filter">
            <option value="" >Difficulty Level</option>
            <option value="1"  @if(request()->post('diff_filter') == 1){{'selected'}}@endif>Easy</option>
            <option value="2"  @if(request()->post('diff_filter') == 2){{'selected'}}@endif>Mediium</option>
            <option value="3" @if(request()->post('diff_filter') == 3){{'selected'}}@endif >Hard</option>
          </select>
      </div>
    </div>
    <div class="card-body pt-0">
      <!-- <p class="text-right font-bold">Total No of Test: 456</p> -->
      <div class="table-responsive">
          <table id="quiz-manager" class="table card-table dataTable table-hover table-vcenter text-nowrap">
          <thead>
            <tr>
              <th>Quiz Name</th>
              <th>Exam Type</th>
              <th>No. Of Question</th>
              <th>Duration</th>
              <th>Status</th>
              <th>Action</th>
            </tr>
          </thead>
          </table>
      </div>
    </div>
  </div>
<?php
}else{
}
?>
<script type="text/javascript">
  $(document).ready(function () {
    create_custom_dropdowns();
  });
</script>
<script type="text/javascript" src="{{asset('js/dashboard.js')}}"></script>
              