<?php $__env->startSection('title'); ?>
Generate Bank Soal <?php echo e($dataajar->mapel->nama); ?> - <?php echo e($dataajar->kelas->tingkatan); ?> <?php echo e($dataajar->kelas->jurusan); ?> <?php echo e($dataajar->kelas->suffix); ?>

<?php $__env->stopSection(); ?>

<?php $__env->startPush('before-script'); ?>

<?php if(session('status')): ?>
<?php if (isset($component)) { $__componentOriginal6bb91b748cddfa526a1e6a6c5efd3ee0dde567e5 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\Sweetalertsession::class, ['tipe' => ''.e(session('tipe')).'','status' => ''.e(session('status')).'']); ?>
<?php $component->withName('sweetalertsession'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal6bb91b748cddfa526a1e6a6c5efd3ee0dde567e5)): ?>
<?php $component = $__componentOriginal6bb91b748cddfa526a1e6a6c5efd3ee0dde567e5; ?>
<?php unset($__componentOriginal6bb91b748cddfa526a1e6a6c5efd3ee0dde567e5); ?>
<?php endif; ?>
<?php endif; ?>
<?php $__env->stopPush(); ?>


<?php $__env->startSection('content'); ?>
<section class="section">
    <div class="section-header">
        <h1><?php echo $__env->yieldContent('title'); ?></h1>
        <div class="section-header-breadcrumb">
            <div class="breadcrumb-item active"><a href="<?php echo e(route('dashboard')); ?>">Dashboard</a></div>
            <div class="breadcrumb-item"><a href="<?php echo e(route('silabus')); ?>">Silabus</a></div>
            <div class="breadcrumb-item"><?php echo $__env->yieldContent('title'); ?></div>
        </div>
    </div>

    <div class="section-body">
        <div class="card">
            <div class="card-body">

                <?php if (isset($component)) { $__componentOriginal5d28130fb0ac04e020fac49559d0ba25a897e294 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\ButtonCreate::class, ['link' => ''.e(route('dataajar.generatebanksoal.create',$dataajar->id)).'']); ?>
<?php $component->withName('button-create'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5d28130fb0ac04e020fac49559d0ba25a897e294)): ?>
<?php $component = $__componentOriginal5d28130fb0ac04e020fac49559d0ba25a897e294; ?>
<?php unset($__componentOriginal5d28130fb0ac04e020fac49559d0ba25a897e294); ?>
<?php endif; ?>


                <a href="<?php echo e(route('dataajar.banksoal',[$dataajar->id])); ?>"
                    class="btn btn-success btn-sm py-1" data-toggle="tooltip" data-placement="top" title="Lihat Bank Soal"> <i
                    class="far fa-file-archive"></i> Bank Soal</a>

                <?php if (isset($component)) { $__componentOriginal7f6fe7bbf5512b742c0bcffa8025ccbaf91ac921 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\Jsmultidel::class, ['link' => ''.e(route('dataajar.banksoal.multidel',$dataajar->id)).'']); ?>
<?php $component->withName('jsmultidel'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7f6fe7bbf5512b742c0bcffa8025ccbaf91ac921)): ?>
<?php $component = $__componentOriginal7f6fe7bbf5512b742c0bcffa8025ccbaf91ac921; ?>
<?php unset($__componentOriginal7f6fe7bbf5512b742c0bcffa8025ccbaf91ac921); ?>
<?php endif; ?>

                <?php if($datas->count()>0): ?>
                    <?php if (isset($component)) { $__componentOriginalbea8fd2875612672ec60fa7e39941fa4202cfa75 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\Jsdatatable::class, []); ?>
<?php $component->withName('jsdatatable'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalbea8fd2875612672ec60fa7e39941fa4202cfa75)): ?>
<?php $component = $__componentOriginalbea8fd2875612672ec60fa7e39941fa4202cfa75; ?>
<?php unset($__componentOriginalbea8fd2875612672ec60fa7e39941fa4202cfa75); ?>
<?php endif; ?>
                <?php endif; ?>

                <table id="example" class="table table-striped table-bordered mt-1 table-sm" style="width:100%">
                    <thead>
                        <tr style="background-color: #F1F1F1">
                            <th class="text-center py-2 babeng-min-row"> <input type="checkbox" id="chkCheckAll"> All</th>
                            <th >Jumlah Soal</th>
                            <th >Acak Soal</th>
                            <th >Acak Jawaban</th>
                            <th >Tanggal Generate</th>
                            <th >Aksi</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__empty_1 = true; $__currentLoopData = $datas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <tr id="sid<?php echo e($data->id); ?>">
                                <td class="text-center">
                                    <input type="checkbox" name="ids" class="checkBoxClass " value="<?php echo e($data->id); ?>">
                                    <?php echo e(((($loop->index)+1)+(($datas->currentPage()-1)*$datas->perPage()))); ?></td>
                                <td>
                                    <?php echo $data->jml!=null ? $data->jml : 'Data tidak ditemukan'; ?> Soal
                                </td>
                                <td>
                                    <?php echo e($data->soal!=null ? $data->soal : 'Data tidak ditemukan'); ?>

                                </td>
                                <td>
                                    <?php echo e($data->jawaban!=null ? $data->jawaban : 'Data tidak ditemukan'); ?>

                                </td>

                                <td>
                                    <?php echo e($data->jawaban!=null ? Fungsi::tanggalindo($data->tgl) : 'Data tidak ditemukan'); ?>

                                </td>



                                <td class="text-center babeng-min-row">

                                    <a href="<?php echo e(route('dataajar.generatebanksoal.xml',[$dataajar->id,$data->id])); ?>"
                                        class="btn btn-success btn-sm" data-toggle="tooltip" data-placement="top" title="Export XML / Moodle Format"> <i class="fas fa-puzzle-piece" target="_blank"></i></a>
                                    <a href="<?php echo e(route('dataajar.generatebanksoal.pdfsoal',[$dataajar->id,$data->id])); ?>"
                                            class="btn btn-info btn-sm" data-toggle="tooltip" data-placement="top" title="Cetak Soal / .pdf" target="_blank"> <i class="fas fa-file-word"></i> </a>
                                    <a href="<?php echo e(route('dataajar.generatebanksoal.pdfkunci',[$dataajar->id,$data->id])); ?>"
                                                    class="btn btn-info btn-sm" data-toggle="tooltip" data-placement="top" title="Cetak Kunci Jawaban / .pdf" target="_blank"> <i class="far fa-file-word"></i> </a>
                                  <?php if (isset($component)) { $__componentOriginalc82eaddaef5db682d36356a1ab70f5eabde644c5 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\ButtonDelete::class, ['link' => ''.e(route('dataajar.generatebanksoal.delete',[$dataajar->id,$data->id])).'']); ?>
<?php $component->withName('button-delete'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc82eaddaef5db682d36356a1ab70f5eabde644c5)): ?>
<?php $component = $__componentOriginalc82eaddaef5db682d36356a1ab70f5eabde644c5; ?>
<?php unset($__componentOriginalc82eaddaef5db682d36356a1ab70f5eabde644c5); ?>
<?php endif; ?>

                                </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                            <tr>
                                <td colspan="5" class="text-center">Data tidak ditemukan</td>
                            </tr>
                        <?php endif; ?>
                    </tbody>
                </table>

<?php
$cari=$request->cari;
?>
<?php echo e($datas->onEachSide(1)
  ->links()); ?>

<a href="#" class="btn btn-sm  btn-danger mb-2" id="deleteAllSelectedRecord"
            onclick="return  confirm('Anda yakin menghapus data ini? Y/N')"  data-toggle="tooltip" data-placement="top" title="Hapus Terpilih">
            <i class="fas fa-trash-alt mr-2"></i> Hapus Terpilih</i>
        </a>
            </div>
        </div>
    </div>
</section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.default', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Xampp 8.2\htdocs\sim\resources\views/pages/admin/generatebanksoal/index.blade.php ENDPATH**/ ?>