
<?php $__env->startSection('title'); ?> পরীক্ষা <?php $__env->stopSection(); ?>
<?php $__env->startSection('exam'); ?> active <?php $__env->stopSection(); ?>
<?php $__env->startSection('exam.index'); ?> active <?php $__env->stopSection(); ?>
<?php $__env->startSection('styles'); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('admin_content'); ?>

<!-- BEGIN: Content-->
<div class="app-content content ">
  <div class="card">

    <div class="card-header">
      <div class="head-label">
        <h4>পরীক্ষা তালিকা</h4>
      </div>
      <div class="dt-action-buttons text-right">
        <div class="dt-buttons d-inline-flex">

          
        </div>
      </div>
    </div>


    <div class="card-body">
      <div class="table-responsive custom-table-modify">
        <table id="myTable" class="table table-bordered">
          <thead>
            <tr>
              <th scope="col">সিরিয়াল</th>
              <th scope="col">আইডি</th>
              <th scope="col">একাডেমিক</th>
              <th scope="col">পরীক্ষা</th>
              <th scope="col">একশন</th>
            </tr>
          </thead>
          <tbody>

            <?php $__currentLoopData = $exams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $exam): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php if(isset($exam) && $exam != null): ?>
            <tr>
              <td><?php echo e($loop->index+1); ?></td>
              <td>
                <?php if(isset($exam->chapterData) && $exam->chapter_id != null): ?>
                <span class=" text-info" style=" font-weight:600;">অধ্যায় পরীক্ষা :</span>
                <?php else: ?>
                <span class=" text-info" style=" font-weight:600;">বিষয় পরীক্ষা :</span>
                <?php endif; ?>
              </td>

              <td class=" text-left">
                <?php if(isset($exam->chapterData) && $exam->chapter_id != null): ?>
                <b>শ্রেণীর নাম: </b> <?php echo e($exam->classData->class_name); ?><br>
                <b>বিভাগের নাম: </b> <?php echo e($exam->departmentData->department_name); ?><br>
                <b>বিষয়ের নাম: </b> <?php echo e($exam->subjectData->subject_name); ?><br>
                <b>অধ্যায়ের নাম: </b> <?php echo e($exam->chapterData->chapter_name); ?><br>
                <?php else: ?>
                <b>শ্রেণীর নাম: </b> <?php echo e($exam->classData->class_name); ?><br>
                <b>বিভাগের নাম: </b> <?php echo e($exam->departmentData->department_name); ?><br>
                <b>বিষয়ের নাম: </b> <?php echo e($exam->subjectData->subject_name); ?><br>
                <?php endif; ?>
                <b>পরীক্ষার নাম: </b> <?php echo e($exam->exam_name); ?><br>
              </td>


              <td class=" text-left">
                <b>প্রশ্নের সংখ্যা: </b> <?php echo e($exam->question_qty); ?><br>
                <b>পরীক্ষার সময়কাল: </b> <?php echo e($exam->exam_duration); ?><br>
                <b>টোটাল নাম্বার: </b> <?php echo e($exam->total_mark); ?><br>
                <b>পাস নাম্বার: </b> <?php echo e($exam->pass_mark); ?><br>
                <b>শুরু তারিখ: </b> <?php echo e($exam->start_date); ?><br>
                <b>শেষ তারিখ: </b> <?php echo e($exam->end_date); ?><br>
              </td>

              <td>
                <div class="dropdown">
                  <button type="button" class="btn btn-sm dropdown-toggle hide-arrow py-0" data-bs-toggle="dropdown">
                    <i data-feather="more-vertical"></i>
                  </button>
                  <div class="dropdown-menu dropdown-menu-end">

                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('exam-edit')): ?>
                    <a class="dropdown-item" href="<?php echo e(url('/exam-edit/'.$exam->id)); ?>">
                      <i data-feather="edit-2" class="me-50"></i>
                      <span>Edit</span>
                    </a>
                    <?php endif; ?>

                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('exam-delete')): ?>
                    <a class="dropdown-item" href="<?php echo e(route('exam.delete', $exam->id)); ?>">
                      <i data-feather="trash" class="me-50"></i>
                      <span>Delete</span>
                    </a>
                    <?php endif; ?>

                  </div>
                </div>
              </td>

            </tr>
            <?php endif; ?>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


          </tbody>
        </table>
      </div>
    </div>
  </div>

</div>
<!-- END: Content-->

<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\Project\Personal-Project\Office-Project\update\testpaper-final\resources\views/admin/exam/index.blade.php ENDPATH**/ ?>